Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007617/0.0007617, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009259/0.0009259, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9326/0.9326, allocations: 177.1 MB / 205 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.441e-05/1.581e-05, allocations: 2.312 kB / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01898/0.019, allocations: 9.6 MB / 282.6 MB, free: 7.871 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.02941, allocations: 3.104 MB / 285.7 MB, free: 4.758 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005062/0.02992, allocations: 35.81 kB / 285.7 MB, free: 4.723 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.03096, allocations: 0.5665 MB / 286.3 MB, free: 4.152 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001996/0.03296, allocations: 0.6045 MB / 286.9 MB, free: 3.543 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004382/0.0334, allocations: 327.4 kB / 287.2 MB, free: 3.223 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001499/0.0349, allocations: 1.832 MB / 289.1 MB, free: 1.383 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000555/0.03545, allocations: 429.3 kB / 289.5 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1172/0.1527, allocations: 1.042 MB / 290.5 MB, free: 16.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.154, allocations: 0.5627 MB / 291.1 MB, free: 16.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004387/0.1544, allocations: 157.1 kB / 291.2 MB, free: 16.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000446/0.1549, allocations: 193.9 kB / 291.4 MB, free: 16.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001954/0.1551, allocations: 344.1 kB / 291.8 MB, free: 16.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007536/0.1558, allocations: 0.5587 MB / 292.3 MB, free: 16.59 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001548/0.1574, allocations: 1.156 MB / 293.5 MB, free: 16.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.1574, allocations: 0 / 293.5 MB, free: 16.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1574, allocations: 3.812 kB / 293.5 MB, free: 16.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.744e-05/0.1574, allocations: 0 / 293.5 MB, free: 16.48 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002646/0.1601, allocations: 1.853 MB / 295.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.1601, allocations: 9.5 kB / 295.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00056/0.1607, allocations: 293.2 kB / 295.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.1618, allocations: 0.748 MB / 296.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.1619, allocations: 166.2 kB / 296.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.162, allocations: 123.1 kB / 296.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.1635, allocations: 1.366 MB / 298 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.861e-05/0.1635, allocations: 7.391 kB / 298 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.955e-05/0.1636, allocations: 49.47 kB / 298.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.662e-05/0.1636, allocations: 27.14 kB / 298.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008083/0.1644, allocations: 422.7 kB / 298.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003963/0.1684, allocations: 3.327 MB / 301.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008498/0.1692, allocations: 407.8 kB / 302.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.1694, allocations: 143.2 kB / 302.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.345e-05/0.1695, allocations: 14.16 kB / 302.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003182/0.1698, allocations: 248.4 kB / 302.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 3.376e-06/0.1698, allocations: 0 / 302.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002401/0.1722, allocations: 1.451 MB / 304.1 MB, free: 11.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.153e-05/0.1723, allocations: 475 kB / 304.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008657/0.1731, allocations: 0.9482 MB / 305.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.1732, allocations: 43.95 kB / 305.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000299/0.1735, allocations: 0.7313 MB / 306.3 MB, free: 10.06 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.1736, allocations: 247.2 kB / 306.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.1738, allocations: 196.6 kB / 306.7 MB, free: 9.762 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.277e-05/0.1738, allocations: 0.5158 MB / 307.2 MB, free: 9.262 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.1741, allocations: 184.6 kB / 307.4 MB, free: 9.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004117/0.1745, allocations: 1.225 MB / 308.6 MB, free: 7.762 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005727/0.175, allocations: 0.8775 MB / 309.5 MB, free: 6.957 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.175, allocations: 3.031 kB / 309.5 MB, free: 6.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001018/0.1761, allocations: 1.002 MB / 310.5 MB, free: 6.551 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.1761, allocations: 65.03 kB / 310.6 MB, free: 6.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.1761, allocations: 9.781 kB / 310.6 MB, free: 6.488 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003506/0.1765, allocations: 148.5 kB / 310.7 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003535/0.1768, allocations: 212.9 kB / 310.9 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002038/0.1789, allocations: 4.357 MB / 315.3 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004641/0.1793, allocations: 60.72 kB / 315.4 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.958e-05/0.1794, allocations: 45.75 kB / 315.4 MB, free: 2.438 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001975/0.1796, allocations: 232.5 kB / 315.6 MB, free: 2.238 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.44e-05/0.1796, allocations: 139.1 kB / 315.8 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005905/0.1802, allocations: 0.5128 MB / 316.3 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1802, allocations: 8.062 kB / 316.3 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.1802, allocations: 0 / 316.3 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004971/0.1807, allocations: 0.786 MB / 317.1 MB, free: 1.316 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/0.1821, allocations: 1.412 MB / 318.5 MB, free: 440 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1821, allocations: 5.094 kB / 318.5 MB, free: 440 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.1824, allocations: 101 kB / 318.6 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002316/0.1826, allocations: 123.8 kB / 318.7 MB, free: 356 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.1826, allocations: 22.61 kB / 318.7 MB, free: 340 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/0.1847, allocations: 4.162 MB / 322.9 MB, free: 12.03 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.1847, allocations: 4 kB / 322.9 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008346/0.1856, allocations: 0.8308 MB / 323.7 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002379/0.1858, allocations: 161.5 kB / 323.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.088e-05/0.1859, allocations: 28.11 kB / 323.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.1862, allocations: 31.98 kB / 323.9 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.1863, allocations: 56.33 kB / 324 MB, free: 10.87 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.1863, allocations: 20 kB / 324 MB, free: 10.85 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000528/0.1868, allocations: 0.5758 MB / 324.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1868, allocations: 2.297 kB / 324.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007838/0.1876, allocations: 300 kB / 324.9 MB, free: 9.973 MB / 282.7 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,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002124/0.1878, allocations: 134 kB / 325 MB, free: 9.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.1889, allocations: 1.078 MB / 326.1 MB, free: 8.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1889, allocations: 0 / 326.1 MB, free: 8.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000442/0.1893, allocations: 0.572 MB / 326.7 MB, free: 8.137 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000808/0.1902, allocations: 308.2 kB / 327 MB, free: 7.871 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002862/0.193, allocations: 2.055 MB / 329 MB, free: 5.781 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.1932, allocations: 201.7 kB / 329.2 MB, free: 5.559 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003269/0.1935, allocations: 128.6 kB / 329.3 MB, free: 5.43 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.1936, allocations: 68.5 kB / 329.4 MB, free: 5.363 MB / 282.7 MB Notification: Performance of SimCode: time 1.292e-06/0.1936, allocations: 0 / 329.4 MB, free: 5.363 MB / 282.7 MB Notification: Performance of Templates: time 0.02299/0.2166, allocations: 18.2 MB / 347.6 MB, free: 3.594 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 5.557332506868988]