Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009214/0.0009214, allocations: 163.5 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9837/0.9837, allocations: 177 MB / 205.2 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=25000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 273 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.127e-05, allocations: 2.312 kB / 273 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01014/0.01016, allocations: 9.554 MB / 282.6 MB, free: 8.121 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005266/0.01543, allocations: 3.092 MB / 285.7 MB, free: 5.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008286/0.01626, allocations: 35.81 kB / 285.7 MB, free: 4.984 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001358/0.01761, allocations: 0.5664 MB / 286.3 MB, free: 4.414 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001123/0.01874, allocations: 0.6085 MB / 286.9 MB, free: 3.801 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005616/0.0193, allocations: 319.4 kB / 287.2 MB, free: 3.488 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001568/0.02087, allocations: 1.831 MB / 289 MB, free: 1.652 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006295/0.0215, allocations: 437.2 kB / 289.4 MB, free: 1.203 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001237/0.02273, allocations: 1.045 MB / 290.5 MB, free: 160 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1096/0.1323, allocations: 0.5592 MB / 291 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004367/0.1328, allocations: 158.7 kB / 291.2 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004929/0.1333, allocations: 196.4 kB / 291.4 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000282/0.1336, allocations: 342.5 kB / 291.7 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.1347, allocations: 0.5662 MB / 292.3 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001588/0.1363, allocations: 1.159 MB / 293.5 MB, free: 16.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1363, allocations: 2.406 kB / 293.5 MB, free: 16.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1363, allocations: 0 / 293.5 MB, free: 16.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.942e-05/0.1364, allocations: 3.609 kB / 293.5 MB, free: 16.79 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.002966/0.1393, allocations: 1.866 MB / 295.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.1394, allocations: 14.83 kB / 295.3 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006418/0.14, allocations: 293 kB / 295.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.1413, allocations: 0.7671 MB / 296.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/0.1414, allocations: 164.1 kB / 296.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.1415, allocations: 120.8 kB / 296.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.143, allocations: 1.371 MB / 298 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.887e-05/0.1431, allocations: 7.312 kB / 298.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.258e-05/0.1432, allocations: 50.02 kB / 298.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.536e-05/0.1432, allocations: 25.19 kB / 298.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009674/0.1441, allocations: 426.4 kB / 298.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004397/0.1485, allocations: 3.325 MB / 301.9 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009751/0.1495, allocations: 406 kB / 302.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002492/0.1498, allocations: 148.8 kB / 302.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.01e-05/0.1498, allocations: 15.11 kB / 302.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003563/0.1502, allocations: 239.3 kB / 302.7 MB, free: 12.56 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.885e-06/0.1502, allocations: 2.734 kB / 302.7 MB, free: 12.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002793/0.153, allocations: 1.449 MB / 304.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.67e-05/0.153, allocations: 479.9 kB / 304.6 MB, free: 11.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.1541, allocations: 0.9475 MB / 305.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.205e-05/0.1541, allocations: 39.92 kB / 305.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003653/0.1545, allocations: 0.7367 MB / 306.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.1546, allocations: 240.5 kB / 306.5 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.1549, allocations: 205.5 kB / 306.7 MB, free: 9.957 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.939e-05/0.1549, allocations: 0.5104 MB / 307.2 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.1552, allocations: 186 kB / 307.4 MB, free: 9.379 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004957/0.1557, allocations: 1.23 MB / 308.7 MB, free: 7.953 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007112/0.1564, allocations: 0.8722 MB / 309.5 MB, free: 7.152 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.1564, allocations: 2.719 kB / 309.5 MB, free: 7.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001279/0.1577, allocations: 0.9918 MB / 310.5 MB, free: 6.754 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.923e-05/0.1577, allocations: 70.5 kB / 310.6 MB, free: 6.688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/0.1578, allocations: 11.34 kB / 310.6 MB, free: 6.688 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004127/0.1582, allocations: 152.5 kB / 310.8 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004737/0.1586, allocations: 204.3 kB / 311 MB, free: 6.637 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.1612, allocations: 4.364 MB / 315.3 MB, free: 2.664 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006605/0.1618, allocations: 57.08 kB / 315.4 MB, free: 2.641 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.1619, allocations: 50.12 kB / 315.4 MB, free: 2.633 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.000265/0.1622, allocations: 232.7 kB / 315.6 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.1623, allocations: 140.4 kB / 315.8 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007727/0.1631, allocations: 0.5135 MB / 316.3 MB, free: 2.156 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1631, allocations: 10.22 kB / 316.3 MB, free: 2.152 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.1631, allocations: 0 / 316.3 MB, free: 2.152 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006343/0.1637, allocations: 0.7769 MB / 317.1 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001788/0.1655, allocations: 1.417 MB / 318.5 MB, free: 0.582 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.1655, allocations: 7.312 kB / 318.5 MB, free: 0.582 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003219/0.1658, allocations: 105.1 kB / 318.6 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002842/0.1661, allocations: 117.2 kB / 318.7 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.1661, allocations: 19.06 kB / 318.7 MB, free: 496 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002575/0.1687, allocations: 4.165 MB / 322.9 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.1687, allocations: 4 kB / 322.9 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.1698, allocations: 0.8202 MB / 323.7 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003295/0.1701, allocations: 163.2 kB / 323.9 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.1702, allocations: 16 kB / 323.9 MB, free: 11.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000414/0.1707, allocations: 43.91 kB / 324 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.1708, allocations: 62.55 kB / 324 MB, free: 11.15 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.1708, allocations: 23.06 kB / 324 MB, free: 11.13 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006873/0.1715, allocations: 0.5719 MB / 324.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1715, allocations: 0 / 324.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001104/0.1726, allocations: 304 kB / 324.9 MB, free: 10.25 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.0002239/0.1728, allocations: 131.8 kB / 325 MB, free: 10.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.1742, allocations: 1.074 MB / 326.1 MB, free: 9.012 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1742, allocations: 0 / 326.1 MB, free: 9.012 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005744/0.1748, allocations: 0.5707 MB / 326.7 MB, free: 8.418 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.1759, allocations: 305.2 kB / 327 MB, free: 8.152 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003596/0.1795, allocations: 2.056 MB / 329 MB, free: 6.059 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.1796, allocations: 205.7 kB / 329.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004387/0.1801, allocations: 124.7 kB / 329.4 MB, free: 5.707 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.1802, allocations: 72.48 kB / 329.4 MB, free: 5.637 MB / 282.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1802, allocations: 4 kB / 329.4 MB, free: 5.633 MB / 282.7 MB Notification: Performance of Templates: time 0.02283/0.2031, allocations: 17.22 MB / 346.7 MB, free: 4.828 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 4.905462831025943]