Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001403/0.001403, allocations: 88.86 kB / 21.5 MB, free: 2.988 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.00162/0.00162, allocations: 160.9 kB / 24.91 MB, free: 8.719 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.9636/0.9636, allocations: 177 MB / 205.2 MB, free: 5.016 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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.624e-06/1.624e-06, allocations: 0 / 273.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.524e-05/2.686e-05, allocations: 5.266 kB / 273.4 MB, free: 1.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01157/0.01159, allocations: 11.76 MB / 285.2 MB, free: 5.219 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006234/0.01783, allocations: 3.373 MB / 288.5 MB, free: 1.836 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001327/0.01916, allocations: 39.88 kB / 288.6 MB, free: 1.797 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.02084, allocations: 0.6594 MB / 289.2 MB, free: 1.133 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00193/0.02277, allocations: 0.8217 MB / 290 MB, free: 312 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1166/0.1394, allocations: 409.3 kB / 290.4 MB, free: 17.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00313/0.1425, allocations: 2.502 MB / 292.9 MB, free: 16.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/0.1436, allocations: 0.6371 MB / 293.6 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002286/0.1459, allocations: 1.419 MB / 295 MB, free: 16.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001252/0.1471, allocations: 0.7697 MB / 295.8 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004569/0.1476, allocations: 224.7 kB / 296 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005119/0.1481, allocations: 266.6 kB / 296.3 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002697/0.1483, allocations: 463 kB / 296.7 MB, free: 16.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001198/0.1495, allocations: 0.7377 MB / 297.4 MB, free: 16.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002039/0.1516, allocations: 1.486 MB / 298.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.1516, allocations: 0.5938 kB / 298.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1516, allocations: 0 / 298.9 MB, free: 15.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.137e-05/0.1517, allocations: 1.719 kB / 298.9 MB, free: 15.38 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002838/0.1545, allocations: 2.07 MB / 301 MB, free: 14.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.1545, allocations: 9.625 kB / 301 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006555/0.1552, allocations: 348.8 kB / 301.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.1563, allocations: 0.7932 MB / 302.1 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.655e-05/0.1564, allocations: 114.7 kB / 302.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.1565, allocations: 167.5 kB / 302.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.1577, allocations: 1.171 MB / 303.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/0.1577, allocations: 14.55 kB / 303.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.51e-05/0.1578, allocations: 71.17 kB / 303.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.861e-05/0.1578, allocations: 39.84 kB / 303.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005821/0.1584, allocations: 394.2 kB / 304.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003968/0.1624, allocations: 4.699 MB / 308.8 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005455/0.1629, allocations: 366 kB / 309.2 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.1632, allocations: 255.4 kB / 309.4 MB, free: 9.949 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.1632, allocations: 14.56 kB / 309.4 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.1632, allocations: 42.84 kB / 309.5 MB, free: 9.898 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.705e-06/0.1632, allocations: 0 / 309.5 MB, free: 9.898 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001812/0.1651, allocations: 1.225 MB / 310.7 MB, free: 9.469 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.473e-05/0.1651, allocations: 118.7 kB / 310.8 MB, free: 9.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006319/0.1657, allocations: 1.002 MB / 311.8 MB, free: 8.895 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.1657, allocations: 41.7 kB / 311.8 MB, free: 8.848 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.1659, allocations: 0.7297 MB / 312.6 MB, free: 8.164 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.034e-05/0.166, allocations: 276.4 kB / 312.8 MB, free: 7.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.1662, allocations: 204.8 kB / 313 MB, free: 7.723 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.487e-05/0.1662, allocations: 357.5 kB / 313.4 MB, free: 7.391 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.1663, allocations: 96.17 kB / 313.5 MB, free: 7.301 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.1665, allocations: 0.6131 MB / 314.1 MB, free: 6.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004339/0.1669, allocations: 0.7914 MB / 314.9 MB, free: 5.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.167, allocations: 4 kB / 314.9 MB, free: 5.586 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0006787/0.1676, allocations: 0.758 MB / 315.7 MB, free: 4.914 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.1677, allocations: 12 kB / 315.7 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.1677, allocations: 16 kB / 315.7 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003569/0.168, allocations: 155 kB / 315.8 MB, free: 4.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004076/0.1684, allocations: 257.2 kB / 316.1 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.1697, allocations: 3.775 MB / 319.9 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006074/0.1703, allocations: 52.06 kB / 319.9 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.1703, allocations: 47.94 kB / 320 MB, free: 440 kB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.1706, allocations: 200.2 kB / 320.2 MB, free: 248 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.899e-05/0.1707, allocations: 99.89 kB / 320.2 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005622/0.1712, allocations: 471.2 kB / 320.7 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1713, allocations: 4 kB / 320.7 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1713, allocations: 4 kB / 320.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1713, allocations: 3.984 kB / 320.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.1728, allocations: 1.219 MB / 321.9 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.1728, allocations: 4 kB / 321.9 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.1731, allocations: 122.8 kB / 322.1 MB, free: 14.4 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003488/0.1734, allocations: 166.6 kB / 322.2 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/0.1734, allocations: 23.98 kB / 322.3 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001727/0.1752, allocations: 3.831 MB / 326.1 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.1752, allocations: 8.078 kB / 326.1 MB, free: 10.17 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007436/0.1759, allocations: 0.7453 MB / 326.8 MB, free: 9.387 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002804/0.1762, allocations: 127 kB / 327 MB, free: 9.266 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.998e-05/0.1763, allocations: 23.94 kB / 327 MB, free: 9.242 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.1766, allocations: 31.97 kB / 327 MB, free: 9.211 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.78e-05/0.1766, allocations: 67 kB / 327.1 MB, free: 9.152 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.229e-05/0.1767, allocations: 23.98 kB / 327.1 MB, free: 9.129 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003789/0.177, allocations: 474 kB / 327.6 MB, free: 8.711 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.177, allocations: 0 / 327.6 MB, free: 8.711 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009069/0.178, allocations: 328 kB / 327.9 MB, free: 8.391 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001937/0.1781, allocations: 116.3 kB / 328 MB, free: 8.273 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007507/0.1789, allocations: 0.8156 MB / 328.8 MB, free: 7.492 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-05/0.1789, allocations: 25.81 kB / 328.8 MB, free: 7.469 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003714/0.1793, allocations: 0.5486 MB / 329.4 MB, free: 6.91 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008231/0.1801, allocations: 353.1 kB / 329.7 MB, free: 6.594 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003265/0.1834, allocations: 2.546 MB / 332.3 MB, free: 3.996 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.1836, allocations: 253 kB / 332.5 MB, free: 3.723 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004223/0.184, allocations: 158.8 kB / 332.7 MB, free: 3.562 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004782/0.1845, allocations: 341.1 kB / 333 MB, free: 3.23 MB / 282.7 MB Notification: Performance of SimCode: time 1.242e-06/0.1845, allocations: 0 / 333 MB, free: 3.23 MB / 282.7 MB Notification: Performance of Templates: time 0.02467/0.2091, allocations: 18.69 MB / 351.7 MB, free: 0.9258 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2303065629675984]