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.0009327/0.0009327, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.0009865/0.0009865, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 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.8762/0.8762, allocations: 177.1 MB / 206.1 MB, free: 4.473 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.462e-06/1.462e-06, allocations: 0 / 274.2 MB, free: 4.375 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.072e-05/2.218e-05, allocations: 6.641 kB / 274.2 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007668/0.00769, allocations: 9.36 MB / 283.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003347/0.01104, allocations: 3.072 MB / 286.6 MB, free: 7.902 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004311/0.01147, allocations: 35.81 kB / 286.7 MB, free: 7.867 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000951/0.01242, allocations: 0.5664 MB / 287.2 MB, free: 7.297 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007538/0.01317, allocations: 0.6123 MB / 287.9 MB, free: 6.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004127/0.01359, allocations: 327.4 kB / 288.2 MB, free: 6.359 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.0148, allocations: 1.825 MB / 290 MB, free: 4.527 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004788/0.01528, allocations: 433.2 kB / 290.4 MB, free: 4.074 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008798/0.01616, allocations: 1.044 MB / 291.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005384/0.0167, allocations: 0.5648 MB / 292 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001375/0.01684, allocations: 156 kB / 292.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.01706, allocations: 192 kB / 292.4 MB, free: 2.121 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001763/0.01724, allocations: 342.7 kB / 292.7 MB, free: 1.785 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003986/0.01764, allocations: 0.5612 MB / 293.3 MB, free: 1.223 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009281/0.01857, allocations: 1.164 MB / 294.4 MB, free: 56 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.01857, allocations: 0 / 294.4 MB, free: 56 kB / 266.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.01857, allocations: 0 / 294.4 MB, free: 56 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.01858, allocations: 0 / 294.4 MB, free: 56 kB / 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.001841/0.02043, allocations: 1.878 MB / 296.3 MB, free: 14.11 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.02046, allocations: 12.03 kB / 296.3 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004062/0.02087, allocations: 279.9 kB / 296.6 MB, free: 13.83 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007514/0.02162, allocations: 0.7334 MB / 297.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.02173, allocations: 167.8 kB / 297.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.02184, allocations: 116.3 kB / 297.6 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009752/0.02281, allocations: 1.301 MB / 298.9 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.02284, allocations: 3.938 kB / 298.9 MB, free: 11.24 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-05/0.0229, allocations: 52 kB / 299 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.02292, allocations: 28 kB / 299 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004258/0.02334, allocations: 337.6 kB / 299.3 MB, free: 10.83 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003211/0.02655, allocations: 3.359 MB / 302.7 MB, free: 7.316 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006315/0.02718, allocations: 376 kB / 303.1 MB, free: 6.938 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.02733, allocations: 128.2 kB / 303.2 MB, free: 6.812 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.02736, allocations: 16.5 kB / 303.2 MB, free: 6.797 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/0.0276, allocations: 222 kB / 303.4 MB, free: 6.559 MB / 282.7 MB Notification: Performance of pre-optimization done (n=62): time 1.733e-06/0.02761, allocations: 0 / 303.4 MB, free: 6.559 MB / 282.7 MB Notification: Performance of matching and sorting (n=65): time 0.001848/0.02945, allocations: 1.2 MB / 304.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/0.0296, allocations: 483.3 kB / 305.1 MB, free: 4.734 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006742/0.03028, allocations: 0.9224 MB / 306 MB, free: 3.789 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.03031, allocations: 41.7 kB / 306 MB, free: 3.742 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003817/0.0307, allocations: 0.7402 MB / 306.8 MB, free: 2.992 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.03082, allocations: 238 kB / 307 MB, free: 2.758 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.03101, allocations: 212.4 kB / 307.2 MB, free: 2.543 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.03115, allocations: 0.5159 MB / 307.7 MB, free: 2.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.0313, allocations: 149.9 kB / 307.9 MB, free: 1.859 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006207/0.03192, allocations: 1.197 MB / 309.1 MB, free: 272 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006296/0.03255, allocations: 0.8348 MB / 309.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.03255, allocations: 4 kB / 309.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0009531/0.03351, allocations: 0.9401 MB / 310.9 MB, free: 14.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.435e-05/0.03355, allocations: 59.41 kB / 310.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.03356, allocations: 15.94 kB / 310.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003277/0.03389, allocations: 154.3 kB / 311.1 MB, free: 13.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003683/0.03426, allocations: 207.7 kB / 311.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/0.03679, allocations: 4.282 MB / 315.6 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003933/0.03718, allocations: 51.94 kB / 315.6 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.973e-05/0.03722, allocations: 43.98 kB / 315.7 MB, free: 9.176 MB / 298.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.0002229/0.03745, allocations: 236.5 kB / 315.9 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.03756, allocations: 135.3 kB / 316 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005702/0.03813, allocations: 483.2 kB / 316.5 MB, free: 8.309 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.03814, allocations: 7.938 kB / 316.5 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.03814, allocations: 0 / 316.5 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000549/0.03869, allocations: 0.7458 MB / 317.3 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.03996, allocations: 1.23 MB / 318.5 MB, free: 6.141 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.03997, allocations: 4.219 kB / 318.5 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.04021, allocations: 103.9 kB / 318.6 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002293/0.04044, allocations: 107.3 kB / 318.7 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.04046, allocations: 16 kB / 318.7 MB, free: 5.906 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001946/0.04241, allocations: 4.097 MB / 322.8 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.04241, allocations: 7.938 kB / 322.8 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006752/0.04309, allocations: 0.7621 MB / 323.6 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.0433, allocations: 179.1 kB / 323.8 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.314e-05/0.04338, allocations: 12 kB / 323.8 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.04366, allocations: 39.97 kB / 323.8 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.98e-05/0.04374, allocations: 52.34 kB / 323.9 MB, free: 492 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.04376, allocations: 19.98 kB / 323.9 MB, free: 472 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003654/0.04412, allocations: 0.5133 MB / 324.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04412, allocations: 0 / 324.4 MB, free: 15.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006496/0.04477, allocations: 311.9 kB / 324.7 MB, free: 15.63 MB / 314.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.0001803/0.04495, allocations: 143 kB / 324.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009131/0.04587, allocations: 1.028 MB / 325.9 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.04587, allocations: 0 / 325.9 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004086/0.04628, allocations: 0.5615 MB / 326.4 MB, free: 13.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007449/0.04702, allocations: 292.4 kB / 326.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.0495, allocations: 2.058 MB / 328.8 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001416/0.04965, allocations: 205.7 kB / 329 MB, free: 11.15 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003002/0.04995, allocations: 124.7 kB / 329.1 MB, free: 11.03 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005317/0.05048, allocations: 405.9 kB / 329.5 MB, free: 10.63 MB / 314.7 MB Notification: Performance of SimCode: time 7.11e-07/0.05048, allocations: 0 / 329.5 MB, free: 10.63 MB / 314.7 MB Notification: Performance of Templates: time 0.02202/0.0725, allocations: 18.82 MB / 348.3 MB, free: 8.145 MB / 330.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.5006370367482305]