Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 90.23 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001467/0.001468, allocations: 174.6 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 223.3 MB / 241.6 MB, free: 100 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002826/0.0002826, allocations: 4 kB / 301.5 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1066, allocations: 50.42 MB / 352 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009037/0.1157, allocations: 7.628 MB / 359.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005128/0.1209, allocations: 2.637 MB / 362.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.122, allocations: 27.94 kB / 362.2 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001674/0.1237, allocations: 481.4 kB / 362.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001583/0.1253, allocations: 373.3 kB / 363.1 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009478/0.1263, allocations: 315.7 kB / 363.4 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001675/0.128, allocations: 1.428 MB / 364.8 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007522/0.1287, allocations: 0.5212 MB / 365.3 MB, free: 6.094 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005056/0.1292, allocations: 457.7 kB / 365.8 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005254/0.1298, allocations: 0.5206 MB / 366.3 MB, free: 5.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.1299, allocations: 60 kB / 366.4 MB, free: 5.062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002696/0.1302, allocations: 99.98 kB / 366.5 MB, free: 4.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001613/0.1303, allocations: 199 kB / 366.7 MB, free: 4.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004608/0.1308, allocations: 0.5999 MB / 367.3 MB, free: 4.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001344/0.1322, allocations: 1.584 MB / 368.8 MB, free: 2.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1322, allocations: 0 / 368.8 MB, free: 2.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1322, allocations: 0 / 368.8 MB, free: 2.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.1322, allocations: 4 kB / 368.8 MB, free: 2.566 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.00204/0.1343, allocations: 1.316 MB / 370.2 MB, free: 1.195 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.1343, allocations: 8.031 kB / 370.2 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001662/0.1345, allocations: 148.3 kB / 370.3 MB, free: 1.035 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005904/0.1351, allocations: 195.3 kB / 370.5 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.1362, allocations: 0.7705 MB / 371.3 MB, free: 32 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1939/0.3301, allocations: 69.2 kB / 371.3 MB, free: 23.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004988/0.3306, allocations: 100.5 kB / 371.4 MB, free: 23.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002342/0.333, allocations: 0.9585 MB / 372.4 MB, free: 23.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.124e-05/0.333, allocations: 10.83 kB / 372.4 MB, free: 23.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.72e-05/0.3331, allocations: 38.47 kB / 372.4 MB, free: 23.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.485e-05/0.3332, allocations: 23.81 kB / 372.5 MB, free: 23.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.3346, allocations: 0.653 MB / 373.1 MB, free: 23.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005426/0.3401, allocations: 4.143 MB / 377.3 MB, free: 21.37 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009942/0.3411, allocations: 461.1 kB / 377.7 MB, free: 21.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/0.3414, allocations: 169.9 kB / 377.9 MB, free: 21.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.3414, allocations: 9.766 kB / 377.9 MB, free: 21.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.3414, allocations: 38.34 kB / 377.9 MB, free: 21.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.175e-06/0.3415, allocations: 0 / 377.9 MB, free: 21.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002329/0.3438, allocations: 1.351 MB / 379.3 MB, free: 20.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.3438, allocations: 110.6 kB / 379.4 MB, free: 20.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001263/0.3451, allocations: 0.8881 MB / 380.3 MB, free: 19.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.3452, allocations: 35.3 kB / 380.3 MB, free: 19.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004585/0.3456, allocations: 0.5903 MB / 380.9 MB, free: 19.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.3458, allocations: 149.2 kB / 381 MB, free: 19.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.831e-05/0.3459, allocations: 64.36 kB / 381.1 MB, free: 19.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.346, allocations: 338.1 kB / 381.4 MB, free: 18.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.3464, allocations: 171.3 kB / 381.6 MB, free: 18.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005787/0.347, allocations: 0.4935 MB / 382.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/0.3478, allocations: 0.6915 MB / 382.8 MB, free: 17.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.3478, allocations: 3.531 kB / 382.8 MB, free: 17.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001342/0.3492, allocations: 0.7604 MB / 383.6 MB, free: 17.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.3493, allocations: 404.3 kB / 384 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.3494, allocations: 10.48 kB / 384 MB, free: 16.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001539/0.3495, allocations: 32.8 kB / 384 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005895/0.3501, allocations: 177.5 kB / 384.2 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007408/0.3509, allocations: 1.298 MB / 385.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005402/0.3514, allocations: 47.36 kB / 385.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.3515, allocations: 34 kB / 385.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.743e-06/0.3515, allocations: 3.766 kB / 385.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009174/0.3524, allocations: 0.6162 MB / 386.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.3524, allocations: 10.06 kB / 386.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.351e-05/0.3525, allocations: 36.83 kB / 386.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005361/0.3531, allocations: 170.5 kB / 386.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000606/0.3537, allocations: 1.289 MB / 387.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004718/0.3542, allocations: 36.52 kB / 387.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.285e-05/0.3542, allocations: 32.59 kB / 387.7 MB, free: 13.74 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003915/0.3546, allocations: 339.6 kB / 388.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.3548, allocations: 91.03 kB / 388.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000825/0.3556, allocations: 445.5 kB / 388.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3556, allocations: 5.094 kB / 388.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3556, allocations: 0.5625 kB / 388.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.3556, allocations: 7.141 kB / 388.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.3577, allocations: 1.396 MB / 390 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3577, allocations: 2.969 kB / 390 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003798/0.3581, allocations: 76.45 kB / 390.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.711e-05/0.3582, allocations: 26.97 kB / 390.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.3582, allocations: 21.06 kB / 390.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005818/0.3588, allocations: 1.271 MB / 391.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3588, allocations: 6.625 kB / 391.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009921/0.3598, allocations: 0.7347 MB / 392.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.36, allocations: 201.9 kB / 392.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.504e-05/0.3601, allocations: 10.45 kB / 392.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003957/0.3605, allocations: 26.56 kB / 392.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.707e-05/0.3606, allocations: 35.47 kB / 392.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.3606, allocations: 9.469 kB / 392.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000809/0.3615, allocations: 0.604 MB / 393 MB, free: 10.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3615, allocations: 1.031 kB / 393 MB, free: 10.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001284/0.3628, allocations: 351.2 kB / 393.4 MB, free: 10.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001276/0.364, allocations: 1.288 MB / 394.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.3655, allocations: 0.9912 MB / 395.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.3655, allocations: 1.25 kB / 395.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003729/0.3659, allocations: 295.1 kB / 395.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.3672, allocations: 222.5 kB / 396.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009955/0.3772, allocations: 8.73 MB / 404.9 MB, free: 1.199 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.3776, allocations: 1.025 MB / 405.9 MB, free: 144 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005588/0.3782, allocations: 131.2 kB / 406 MB, free: 8 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004994/0.3787, allocations: 395.3 kB / 406.4 MB, free: 15.62 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3787, allocations: 0 / 406.4 MB, free: 15.62 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03709/0.4158, allocations: 18.58 MB / 425 MB, free: 13.37 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001943/0.416, allocations: 251.5 kB / 425.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.413/2.829, allocations: 3.625 kB / 425.2 MB, free: 13.11 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches