Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001445/0.001445, allocations: 85.8 kB / 21.42 MB, free: 3.07 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.001566/0.001566, allocations: 165.1 kB / 24.82 MB, free: 8.867 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 1.033/1.033, allocations: 177 MB / 205.1 MB, free: 5.465 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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.041e-05/1.186e-05, allocations: 2.312 kB / 273.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01105/0.01106, allocations: 11.37 MB / 284.7 MB, free: 5.777 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003766/0.01483, allocations: 3.184 MB / 287.9 MB, free: 2.586 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005185/0.01535, allocations: 43.75 kB / 287.9 MB, free: 2.543 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.01652, allocations: 0.6322 MB / 288.6 MB, free: 1.906 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001049/0.01757, allocations: 0.7558 MB / 289.3 MB, free: 1.145 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005304/0.0181, allocations: 407.4 kB / 289.7 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1098/0.1279, allocations: 2.335 MB / 292.1 MB, free: 16.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009282/0.1288, allocations: 0.604 MB / 292.7 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00175/0.1305, allocations: 1.331 MB / 294 MB, free: 16.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000873/0.1314, allocations: 0.7077 MB / 294.7 MB, free: 16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002741/0.1317, allocations: 214 kB / 294.9 MB, free: 16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003961/0.1321, allocations: 253.5 kB / 295.2 MB, free: 16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.1323, allocations: 437 kB / 295.6 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006586/0.1329, allocations: 0.695 MB / 296.3 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001363/0.1343, allocations: 1.388 MB / 297.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1343, allocations: 0.7031 kB / 297.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1343, allocations: 1.25 kB / 297.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.935e-05/0.1344, allocations: 1.031 kB / 297.7 MB, free: 15.6 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002447/0.1368, allocations: 2.163 MB / 299.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.1368, allocations: 15.53 kB / 299.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005918/0.1374, allocations: 386.7 kB / 300.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009857/0.1384, allocations: 0.9443 MB / 301.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.754e-05/0.1385, allocations: 116.5 kB / 301.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.1386, allocations: 157.6 kB / 301.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001149/0.1398, allocations: 1.188 MB / 302.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.775e-05/0.1398, allocations: 15.02 kB / 302.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.33e-05/0.1399, allocations: 70.25 kB / 302.7 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.795e-05/0.1399, allocations: 41.22 kB / 302.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006144/0.1405, allocations: 436.1 kB / 303.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004243/0.1448, allocations: 6.489 MB / 309.7 MB, free: 8.516 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.1451, allocations: 247.3 kB / 309.9 MB, free: 8.441 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.1452, allocations: 113.2 kB / 310 MB, free: 8.418 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.1453, allocations: 10.03 kB / 310 MB, free: 8.418 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/0.1455, allocations: 260.4 kB / 310.3 MB, free: 8.242 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.004e-06/0.1455, allocations: 0 / 310.3 MB, free: 8.242 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001195/0.1467, allocations: 1.01 MB / 311.3 MB, free: 7.727 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.1467, allocations: 168.6 kB / 311.5 MB, free: 7.531 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006592/0.1474, allocations: 1.04 MB / 312.5 MB, free: 7.238 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.1474, allocations: 36.83 kB / 312.5 MB, free: 7.199 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003213/0.1477, allocations: 0.9761 MB / 313.5 MB, free: 6.441 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.375e-05/0.1478, allocations: 213.1 kB / 313.7 MB, free: 6.273 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.148, allocations: 230.3 kB / 313.9 MB, free: 6.148 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.842e-05/0.148, allocations: 0.5203 MB / 314.5 MB, free: 5.652 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.1481, allocations: 130.7 kB / 314.6 MB, free: 5.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003191/0.1485, allocations: 1.05 MB / 315.6 MB, free: 4.312 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005442/0.149, allocations: 1.136 MB / 316.8 MB, free: 3.141 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.149, allocations: 3.562 kB / 316.8 MB, free: 3.141 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0008059/0.1498, allocations: 0.9744 MB / 317.8 MB, free: 2.473 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.184e-05/0.1499, allocations: 46.5 kB / 317.8 MB, free: 2.422 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.1499, allocations: 20 kB / 317.8 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001317/0.15, allocations: 66.55 kB / 317.9 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00038/0.1504, allocations: 268 kB / 318.2 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.1514, allocations: 3.454 MB / 321.6 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.1518, allocations: 64.12 kB / 321.7 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.546e-05/0.1519, allocations: 52 kB / 321.7 MB, free: 14.34 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002222/0.1521, allocations: 250.6 kB / 322 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.1522, allocations: 139.2 kB / 322.1 MB, free: 13.97 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003882/0.1526, allocations: 400.3 kB / 322.5 MB, free: 13.56 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1526, allocations: 4 kB / 322.5 MB, free: 13.56 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1526, allocations: 4 kB / 322.5 MB, free: 13.55 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.1526, allocations: 7.938 kB / 322.5 MB, free: 13.55 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.1538, allocations: 1.311 MB / 323.8 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1538, allocations: 480 / 323.8 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/0.154, allocations: 106.9 kB / 323.9 MB, free: 12.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.799e-05/0.1541, allocations: 43.34 kB / 324 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.1541, allocations: 16 kB / 324 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/0.1553, allocations: 3.419 MB / 327.4 MB, free: 8.496 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1553, allocations: 4 kB / 327.4 MB, free: 8.492 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005838/0.1559, allocations: 0.7751 MB / 328.2 MB, free: 7.648 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.1561, allocations: 162.5 kB / 328.3 MB, free: 7.492 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.733e-05/0.1562, allocations: 12 kB / 328.3 MB, free: 7.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.1564, allocations: 31.97 kB / 328.4 MB, free: 7.449 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.751e-05/0.1565, allocations: 55.33 kB / 328.4 MB, free: 7.398 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.1565, allocations: 16 kB / 328.4 MB, free: 7.383 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003915/0.1569, allocations: 0.5696 MB / 329 MB, free: 6.855 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1569, allocations: 0 / 329 MB, free: 6.855 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006164/0.1575, allocations: 304 kB / 329.3 MB, free: 6.559 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * 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 (54): * Single equations (assignments): 50 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001617/0.1577, allocations: 138.2 kB / 329.5 MB, free: 6.418 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006404/0.1583, allocations: 0.8893 MB / 330.3 MB, free: 5.559 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1583, allocations: 4 kB / 330.3 MB, free: 5.555 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002582/0.1586, allocations: 485.8 kB / 330.8 MB, free: 5.066 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000766/0.1593, allocations: 316.2 kB / 331.1 MB, free: 4.793 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.1618, allocations: 2.394 MB / 333.5 MB, free: 2.316 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.162, allocations: 232.2 kB / 333.7 MB, free: 2.059 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003034/0.1623, allocations: 154.1 kB / 333.9 MB, free: 1.906 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004274/0.1627, allocations: 370 kB / 334.3 MB, free: 1.543 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.1627, allocations: 0 / 334.3 MB, free: 1.543 MB / 282.7 MB Notification: Performance of Templates: time 0.01854/0.1813, allocations: 15.59 MB / 349.8 MB, free: 2.328 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.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.183856057934463]