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.001205/0.001205, allocations: 67.77 kB / 21.69 MB, free: 2.852 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.004399/0.004399, allocations: 165.5 kB / 24.99 MB, free: 8.742 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.9991/0.9991, allocations: 177.1 MB / 205.3 MB, free: 5.648 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 2.074e-06/2.074e-06, allocations: 0 / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.413e-05/2.62e-05, allocations: 2.312 kB / 273.1 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01099/0.01102, allocations: 9.554 MB / 282.6 MB, free: 8.223 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006275/0.01729, allocations: 3.096 MB / 285.7 MB, free: 5.117 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001389/0.01868, allocations: 27.88 kB / 285.8 MB, free: 5.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001269/0.01995, allocations: 0.5664 MB / 286.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001227/0.02118, allocations: 0.6123 MB / 286.9 MB, free: 3.902 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005589/0.02173, allocations: 315.5 kB / 287.2 MB, free: 3.594 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001455/0.02319, allocations: 1.836 MB / 289.1 MB, free: 1.754 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005414/0.02373, allocations: 433.3 kB / 289.5 MB, free: 1.305 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.02475, allocations: 1.048 MB / 290.6 MB, free: 260 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1093/0.134, allocations: 0.5564 MB / 291.1 MB, free: 16.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004246/0.1344, allocations: 159 kB / 291.3 MB, free: 16.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000518/0.135, allocations: 201.4 kB / 291.5 MB, free: 16.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001908/0.1351, allocations: 342.8 kB / 291.8 MB, free: 16.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005949/0.1357, allocations: 0.5612 MB / 292.4 MB, free: 16.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.1371, allocations: 1.164 MB / 293.5 MB, free: 16.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1371, allocations: 1.906 kB / 293.5 MB, free: 16.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1371, allocations: 0 / 293.5 MB, free: 16.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.222e-05/0.1371, allocations: 1.438 kB / 293.5 MB, free: 16.23 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.002068/0.1392, allocations: 1.864 MB / 295.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.1392, allocations: 10.38 kB / 295.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004703/0.1397, allocations: 299.6 kB / 295.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009118/0.1406, allocations: 0.7642 MB / 296.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.1407, allocations: 162.1 kB / 296.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.1408, allocations: 120.6 kB / 296.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.142, allocations: 1.367 MB / 298.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.961e-05/0.142, allocations: 8.766 kB / 298.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.148e-05/0.1421, allocations: 48.53 kB / 298.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.1421, allocations: 26.03 kB / 298.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007466/0.1428, allocations: 425.5 kB / 298.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004606/0.1474, allocations: 3.335 MB / 301.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.1485, allocations: 402.2 kB / 302.3 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/0.1488, allocations: 148 kB / 302.5 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.772e-05/0.1489, allocations: 15.91 kB / 302.5 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002793/0.1492, allocations: 236.5 kB / 302.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 1.994e-06/0.1492, allocations: 0 / 302.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002829/0.152, allocations: 1.452 MB / 304.2 MB, free: 11.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.291e-05/0.1521, allocations: 479.3 kB / 304.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008545/0.1529, allocations: 0.9488 MB / 305.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/0.1529, allocations: 43.39 kB / 305.6 MB, free: 10.63 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002817/0.1532, allocations: 0.7302 MB / 306.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.1533, allocations: 246.2 kB / 306.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.1535, allocations: 198.5 kB / 306.8 MB, free: 9.746 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.438e-05/0.1536, allocations: 0.519 MB / 307.3 MB, free: 9.242 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002255/0.1538, allocations: 183.8 kB / 307.5 MB, free: 9.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000422/0.1542, allocations: 1.225 MB / 308.7 MB, free: 7.738 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005983/0.1548, allocations: 0.8818 MB / 309.6 MB, free: 6.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.93e-06/0.1548, allocations: 3.719 kB / 309.6 MB, free: 6.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001027/0.1559, allocations: 0.9885 MB / 310.6 MB, free: 6.539 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.361e-05/0.1559, allocations: 68.23 kB / 310.7 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.1559, allocations: 10.28 kB / 310.7 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003631/0.1563, allocations: 153.7 kB / 310.8 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.1567, allocations: 207 kB / 311 MB, free: 6.426 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/0.1589, allocations: 4.367 MB / 315.4 MB, free: 2.449 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004167/0.1593, allocations: 56.58 kB / 315.4 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.374e-05/0.1593, allocations: 49.55 kB / 315.5 MB, free: 2.418 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.0002077/0.1595, allocations: 236.8 kB / 315.7 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.1596, allocations: 141.4 kB / 315.9 MB, free: 2.148 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006139/0.1603, allocations: 0.5091 MB / 316.4 MB, free: 1.938 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1603, allocations: 7.125 kB / 316.4 MB, free: 1.938 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1603, allocations: 3.047 kB / 316.4 MB, free: 1.938 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005125/0.1608, allocations: 0.7796 MB / 317.2 MB, free: 1.301 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001374/0.1622, allocations: 1.418 MB / 318.6 MB, free: 416 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1622, allocations: 0 / 318.6 MB, free: 416 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002487/0.1624, allocations: 102.3 kB / 318.7 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002292/0.1626, allocations: 122.7 kB / 318.8 MB, free: 328 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/0.1627, allocations: 15.47 kB / 318.8 MB, free: 316 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002144/0.1648, allocations: 4.178 MB / 323 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1648, allocations: 4 kB / 323 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008583/0.1657, allocations: 0.8199 MB / 323.8 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002288/0.1659, allocations: 159.2 kB / 324 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.542e-05/0.166, allocations: 20 kB / 324 MB, free: 11.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002992/0.1663, allocations: 43.25 kB / 324 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.1664, allocations: 56.34 kB / 324.1 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.588e-05/0.1665, allocations: 24.11 kB / 324.1 MB, free: 11.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005303/0.167, allocations: 0.5719 MB / 324.7 MB, free: 10.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.167, allocations: 0 / 324.7 MB, free: 10.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007179/0.1677, allocations: 304 kB / 325 MB, free: 10.17 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.0002737/0.168, allocations: 133.9 kB / 325.1 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.169, allocations: 1.073 MB / 326.2 MB, free: 8.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.1691, allocations: 4 kB / 326.2 MB, free: 8.926 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004596/0.1695, allocations: 0.5708 MB / 326.8 MB, free: 8.336 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009272/0.1704, allocations: 299.3 kB / 327 MB, free: 8.074 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002779/0.1732, allocations: 2.053 MB / 329.1 MB, free: 5.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000167/0.1734, allocations: 205.7 kB / 329.3 MB, free: 5.754 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003265/0.1737, allocations: 128.7 kB / 329.4 MB, free: 5.625 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.1738, allocations: 76.48 kB / 329.5 MB, free: 5.551 MB / 282.7 MB Notification: Performance of SimCode: time 1.493e-06/0.1738, allocations: 0 / 329.5 MB, free: 5.551 MB / 282.7 MB Notification: Performance of Templates: time 0.02059/0.1944, allocations: 17.24 MB / 346.7 MB, free: 4.738 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.804051290964708]