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.001384/0.001384, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001724/0.001724, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.029/1.029, allocations: 177 MB / 204.8 MB, free: 5.57 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 2.194e-06/2.194e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.213e-05/2.433e-05, allocations: 2.312 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01415/0.01417, allocations: 11.73 MB / 284.6 MB, free: 5.645 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006776/0.02095, allocations: 3.207 MB / 287.9 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001424/0.02237, allocations: 43.81 kB / 287.9 MB, free: 2.387 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001804/0.02418, allocations: 0.6244 MB / 288.5 MB, free: 1.758 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002057/0.02624, allocations: 0.7636 MB / 289.3 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008472/0.02708, allocations: 403.5 kB / 289.7 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1216/0.1486, allocations: 2.33 MB / 292 MB, free: 16.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008716/0.1495, allocations: 0.6051 MB / 292.6 MB, free: 16.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001486/0.151, allocations: 1.336 MB / 293.9 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009023/0.1519, allocations: 0.6991 MB / 294.6 MB, free: 16.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002821/0.1522, allocations: 213.2 kB / 294.9 MB, free: 16.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004148/0.1526, allocations: 252.3 kB / 295.1 MB, free: 16.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002238/0.1528, allocations: 436.9 kB / 295.5 MB, free: 16.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007227/0.1535, allocations: 0.696 MB / 296.2 MB, free: 16.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001342/0.1549, allocations: 1.396 MB / 297.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1549, allocations: 0 / 297.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1549, allocations: 0.6562 kB / 297.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.772e-05/0.1549, allocations: 1.125 kB / 297.6 MB, free: 15.93 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.002584/0.1575, allocations: 2.139 MB / 299.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.1575, allocations: 14.92 kB / 299.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000641/0.1582, allocations: 387.5 kB / 300.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.1593, allocations: 0.9614 MB / 301.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.597e-05/0.1594, allocations: 117.8 kB / 301.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.1595, allocations: 164.8 kB / 301.4 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.1609, allocations: 1.277 MB / 302.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.787e-05/0.161, allocations: 19.98 kB / 302.7 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.082e-05/0.161, allocations: 65.91 kB / 302.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.031e-05/0.1611, allocations: 38.16 kB / 302.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000905/0.162, allocations: 0.5387 MB / 303.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004312/0.1663, allocations: 6.44 MB / 309.8 MB, free: 8.059 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.1666, allocations: 266.1 kB / 310 MB, free: 7.965 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.1668, allocations: 133.9 kB / 310.2 MB, free: 7.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.1668, allocations: 7.812 kB / 310.2 MB, free: 7.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002277/0.1671, allocations: 274.1 kB / 310.4 MB, free: 7.734 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.563e-06/0.1671, allocations: 1.125 kB / 310.4 MB, free: 7.734 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.00148/0.1686, allocations: 1.274 MB / 311.7 MB, free: 7.027 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.1686, allocations: 164.1 kB / 311.9 MB, free: 6.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007787/0.1694, allocations: 1.074 MB / 312.9 MB, free: 6.375 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.1694, allocations: 37.27 kB / 313 MB, free: 6.336 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.1697, allocations: 0.9587 MB / 313.9 MB, free: 5.512 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.416e-05/0.1698, allocations: 209.4 kB / 314.1 MB, free: 5.336 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.17, allocations: 229.7 kB / 314.4 MB, free: 5.188 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.605e-05/0.17, allocations: 0.5168 MB / 314.9 MB, free: 4.672 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.1702, allocations: 152.8 kB / 315 MB, free: 4.598 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003731/0.1706, allocations: 1.074 MB / 316.1 MB, free: 3.277 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006275/0.1712, allocations: 1.168 MB / 317.3 MB, free: 2.062 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.1712, allocations: 6.312 kB / 317.3 MB, free: 2.062 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0009187/0.1721, allocations: 1.05 MB / 318.3 MB, free: 1.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/0.1721, allocations: 45.69 kB / 318.4 MB, free: 1.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.1722, allocations: 16 kB / 318.4 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001522/0.1723, allocations: 67.36 kB / 318.5 MB, free: 1.039 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004043/0.1727, allocations: 267.6 kB / 318.7 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.174, allocations: 3.484 MB / 322.2 MB, free: 13.1 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/0.1744, allocations: 68.19 kB / 322.3 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.051e-05/0.1745, allocations: 63.98 kB / 322.3 MB, free: 12.97 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.0002324/0.1747, allocations: 245.3 kB / 322.6 MB, free: 12.74 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.1748, allocations: 143.2 kB / 322.7 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000458/0.1752, allocations: 420.1 kB / 323.1 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1753, allocations: 8 kB / 323.1 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.1753, allocations: 4 kB / 323.1 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.1753, allocations: 7.922 kB / 323.1 MB, free: 12.15 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.1768, allocations: 1.524 MB / 324.7 MB, free: 10.56 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1768, allocations: 8.094 kB / 324.7 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.177, allocations: 98.8 kB / 324.8 MB, free: 10.46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.402e-05/0.1771, allocations: 51.28 kB / 324.8 MB, free: 10.4 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.1771, allocations: 16 kB / 324.8 MB, free: 10.39 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001168/0.1783, allocations: 3.471 MB / 328.3 MB, free: 6.699 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1783, allocations: 8 kB / 328.3 MB, free: 6.691 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000642/0.1789, allocations: 0.8017 MB / 329.1 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001922/0.1791, allocations: 167.1 kB / 329.3 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.992e-05/0.1792, allocations: 16 kB / 329.3 MB, free: 5.629 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.1794, allocations: 27.98 kB / 329.3 MB, free: 5.602 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.2e-05/0.1795, allocations: 59.31 kB / 329.4 MB, free: 5.547 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.1795, allocations: 16 kB / 329.4 MB, free: 5.531 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000543/0.1801, allocations: 0.63 MB / 330 MB, free: 4.895 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1801, allocations: 4 kB / 330 MB, free: 4.891 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006308/0.1807, allocations: 296 kB / 330.3 MB, free: 4.602 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.0001643/0.1809, allocations: 138.3 kB / 330.5 MB, free: 4.461 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007518/0.1816, allocations: 0.9236 MB / 331.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1816, allocations: 1.875 kB / 331.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002902/0.1819, allocations: 0.4942 MB / 331.9 MB, free: 3.035 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007765/0.1827, allocations: 307 kB / 332.2 MB, free: 2.773 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.1852, allocations: 2.405 MB / 334.6 MB, free: 284 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/0.1854, allocations: 224.2 kB / 334.8 MB, free: 32 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003027/0.1857, allocations: 154.1 kB / 334.9 MB, free: 15.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.1858, allocations: 80.48 kB / 335 MB, free: 15.8 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1858, allocations: 0 / 335 MB, free: 15.8 MB / 298.7 MB Notification: Performance of Templates: time 0.01913/0.2049, allocations: 15.32 MB / 350.3 MB, free: 0.8242 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.1553074750117958]