Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 78.28 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 152 kB / 24.81 MB, free: 9.273 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.07/1.07, allocations: 173.3 MB / 201.4 MB, free: 9.23 MB / 186.7 MB " [Timeout remaining time 179] 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: 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.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.888e-05/2.065e-05, allocations: 2.312 kB / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007868/0.007888, allocations: 9.342 MB / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005061/0.01295, allocations: 3.049 MB / 280.8 MB, free: 9.734 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009699/0.01392, allocations: 31.88 kB / 280.9 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00115/0.01507, allocations: 0.5548 MB / 281.4 MB, free: 9.145 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.01612, allocations: 0.62 MB / 282 MB, free: 8.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004583/0.01657, allocations: 319.4 kB / 282.3 MB, free: 8.207 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.01787, allocations: 1.828 MB / 284.2 MB, free: 6.371 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004888/0.01836, allocations: 433.2 kB / 284.6 MB, free: 5.922 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00119/0.01955, allocations: 1.048 MB / 285.6 MB, free: 4.871 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005342/0.02009, allocations: 0.5648 MB / 286.2 MB, free: 4.305 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001356/0.02022, allocations: 156 kB / 286.4 MB, free: 4.152 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.02048, allocations: 196 kB / 286.5 MB, free: 3.961 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.02065, allocations: 338.7 kB / 286.9 MB, free: 3.629 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003688/0.02102, allocations: 0.5612 MB / 287.4 MB, free: 3.066 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.02208, allocations: 1.16 MB / 288.6 MB, free: 1.902 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.02208, allocations: 0 / 288.6 MB, free: 1.902 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.02208, allocations: 4 kB / 288.6 MB, free: 1.898 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.0221, allocations: 0 / 288.6 MB, free: 1.898 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.107/0.1291, allocations: 1.856 MB / 290.5 MB, free: 28.24 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.1291, allocations: 11.55 kB / 290.5 MB, free: 28.24 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006459/0.1298, allocations: 295.5 kB / 290.8 MB, free: 28.19 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.1308, allocations: 0.7301 MB / 291.5 MB, free: 27.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.1309, allocations: 164.6 kB / 291.7 MB, free: 27.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.131, allocations: 118.3 kB / 291.8 MB, free: 27.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.1322, allocations: 1.298 MB / 293.1 MB, free: 26.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/0.1322, allocations: 3.156 kB / 293.1 MB, free: 26.99 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.713e-05/0.1323, allocations: 47.19 kB / 293.1 MB, free: 26.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.557e-05/0.1323, allocations: 29.38 kB / 293.1 MB, free: 26.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005607/0.1329, allocations: 344.7 kB / 293.5 MB, free: 26.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003527/0.1364, allocations: 3.356 MB / 296.8 MB, free: 25.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006945/0.1371, allocations: 382.1 kB / 297.2 MB, free: 25.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.1373, allocations: 122.5 kB / 297.3 MB, free: 25.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.764e-05/0.1373, allocations: 16.27 kB / 297.3 MB, free: 25.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.1375, allocations: 234.8 kB / 297.6 MB, free: 25.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.905e-06/0.1376, allocations: 0 / 297.6 MB, free: 25.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.00201/0.1396, allocations: 1.194 MB / 298.8 MB, free: 25.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.027e-05/0.1396, allocations: 480.3 kB / 299.2 MB, free: 24.58 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008654/0.1405, allocations: 0.9204 MB / 300.2 MB, free: 24.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.972e-05/0.1405, allocations: 38.2 kB / 300.2 MB, free: 24.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003636/0.1409, allocations: 0.7494 MB / 300.9 MB, free: 23.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.141, allocations: 245.8 kB / 301.2 MB, free: 23.64 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/0.1412, allocations: 205.4 kB / 301.4 MB, free: 23.54 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.262e-05/0.1413, allocations: 0.5129 MB / 301.9 MB, free: 23.06 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.1415, allocations: 156.9 kB / 302.1 MB, free: 22.99 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004038/0.1419, allocations: 1.203 MB / 303.3 MB, free: 21.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005568/0.1424, allocations: 0.8313 MB / 304.1 MB, free: 20.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.1424, allocations: 3.438 kB / 304.1 MB, free: 20.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.000995/0.1434, allocations: 0.9335 MB / 305 MB, free: 20.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.268e-05/0.1435, allocations: 66.41 kB / 305.1 MB, free: 20.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.1435, allocations: 12.38 kB / 305.1 MB, free: 20.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003351/0.1438, allocations: 136.7 kB / 305.2 MB, free: 20.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004085/0.1442, allocations: 209.7 kB / 305.4 MB, free: 20.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002093/0.1463, allocations: 4.279 MB / 309.7 MB, free: 16.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004578/0.1468, allocations: 60.53 kB / 309.8 MB, free: 16.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/0.1468, allocations: 42.14 kB / 309.8 MB, free: 16.45 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.0001987/0.147, allocations: 229.1 kB / 310 MB, free: 16.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.1471, allocations: 138.7 kB / 310.2 MB, free: 16.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005207/0.1477, allocations: 476.5 kB / 310.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1477, allocations: 6 kB / 310.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1477, allocations: 5.938 kB / 310.7 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004305/0.1481, allocations: 0.7439 MB / 311.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.1493, allocations: 1.227 MB / 312.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1493, allocations: 2.781 kB / 312.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002299/0.1495, allocations: 107.2 kB / 312.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002143/0.1498, allocations: 111.9 kB / 312.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.1498, allocations: 13.56 kB / 312.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.1512, allocations: 4.095 MB / 316.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1512, allocations: 3.781 kB / 317 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005729/0.1518, allocations: 0.7766 MB / 317.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.152, allocations: 164.1 kB / 317.9 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.836e-05/0.1521, allocations: 24.83 kB / 317.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/0.1523, allocations: 39.2 kB / 318 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.822e-05/0.1524, allocations: 52.39 kB / 318 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.1524, allocations: 16 kB / 318 MB, free: 9.961 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002933/0.1527, allocations: 0.5164 MB / 318.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1527, allocations: 0 / 318.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006953/0.1534, allocations: 311.7 kB / 318.8 MB, free: 9.176 MB / 266.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.0001538/0.1536, allocations: 136.9 kB / 319 MB, free: 9.039 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007631/0.1543, allocations: 1.038 MB / 320 MB, free: 7.945 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1543, allocations: 320 / 320 MB, free: 7.945 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003091/0.1547, allocations: 0.5592 MB / 320.6 MB, free: 7.359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006997/0.1554, allocations: 288.4 kB / 320.9 MB, free: 7.094 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.1579, allocations: 2.06 MB / 322.9 MB, free: 4.992 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001486/0.1581, allocations: 209.6 kB / 323.1 MB, free: 4.758 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003336/0.1584, allocations: 128.6 kB / 323.2 MB, free: 4.629 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000496/0.1589, allocations: 417.9 kB / 323.7 MB, free: 4.219 MB / 266.7 MB Notification: Performance of SimCode: time 1.012e-06/0.1589, allocations: 0 / 323.7 MB, free: 4.219 MB / 266.7 MB Notification: Performance of Templates: time 0.02344/0.1824, allocations: 18.4 MB / 342 MB, free: 2.223 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.562607392203063]