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.001289/0.001289, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001055/0.001055, allocations: 165 kB / 24.99 MB, free: 8.219 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.9863/0.9863, allocations: 177 MB / 205.2 MB, free: 5.586 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.393e-06/1.393e-06, allocations: 0 / 273 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.244e-05/2.384e-05, allocations: 2.312 kB / 273 MB, free: 1.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01193/0.01195, allocations: 11.67 MB / 284.7 MB, free: 6.008 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005711/0.01766, allocations: 3.203 MB / 287.9 MB, free: 2.797 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001335/0.019, allocations: 39.88 kB / 287.9 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001651/0.02065, allocations: 0.6283 MB / 288.5 MB, free: 2.125 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001604/0.02225, allocations: 0.7636 MB / 289.3 MB, free: 1.355 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007269/0.02298, allocations: 403.4 kB / 289.7 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.109/0.1319, allocations: 2.327 MB / 292 MB, free: 16.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009953/0.1329, allocations: 0.6022 MB / 292.6 MB, free: 16.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001802/0.1347, allocations: 1.323 MB / 293.9 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.1358, allocations: 0.7139 MB / 294.7 MB, free: 16.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003609/0.1361, allocations: 216.8 kB / 294.9 MB, free: 16.4 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004439/0.1366, allocations: 252.2 kB / 295.1 MB, free: 16.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.1368, allocations: 445 kB / 295.6 MB, free: 16.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009171/0.1377, allocations: 0.7033 MB / 296.3 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001742/0.1395, allocations: 1.404 MB / 297.7 MB, free: 16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1395, allocations: 0.5156 kB / 297.7 MB, free: 16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1395, allocations: 1.219 kB / 297.7 MB, free: 16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.417e-05/0.1395, allocations: 1.156 kB / 297.7 MB, free: 16 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.003023/0.1425, allocations: 2.146 MB / 299.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.1426, allocations: 19.23 kB / 299.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007128/0.1433, allocations: 385.6 kB / 300.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.1447, allocations: 0.9823 MB / 301.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.519e-05/0.1448, allocations: 113.4 kB / 301.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/0.145, allocations: 161.2 kB / 301.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.1465, allocations: 1.286 MB / 302.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.431e-05/0.1465, allocations: 10.38 kB / 302.8 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.124e-05/0.1466, allocations: 69.69 kB / 302.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-05/0.1467, allocations: 38.5 kB / 302.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009744/0.1476, allocations: 0.5407 MB / 303.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004428/0.1521, allocations: 6.425 MB / 309.8 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003943/0.1525, allocations: 277.9 kB / 310.1 MB, free: 8.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.1526, allocations: 128.1 kB / 310.2 MB, free: 8.059 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.1527, allocations: 16.19 kB / 310.2 MB, free: 8.051 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002579/0.1529, allocations: 272.7 kB / 310.5 MB, free: 7.855 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.053e-06/0.1529, allocations: 0 / 310.5 MB, free: 7.855 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001607/0.1545, allocations: 1.269 MB / 311.8 MB, free: 7.156 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.054e-05/0.1546, allocations: 173.5 kB / 311.9 MB, free: 6.961 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008054/0.1554, allocations: 1.067 MB / 313 MB, free: 6.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.1554, allocations: 41.48 kB / 313.1 MB, free: 6.457 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003183/0.1557, allocations: 0.961 MB / 314 MB, free: 5.652 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.242e-05/0.1558, allocations: 210.1 kB / 314.2 MB, free: 5.477 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000146/0.156, allocations: 231.5 kB / 314.4 MB, free: 5.328 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.381e-05/0.156, allocations: 0.5125 MB / 315 MB, free: 4.816 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/0.1562, allocations: 151 kB / 315.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003827/0.1566, allocations: 1.071 MB / 316.2 MB, free: 3.426 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006256/0.1572, allocations: 1.169 MB / 317.3 MB, free: 2.211 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.134e-06/0.1572, allocations: 6.719 kB / 317.4 MB, free: 2.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0009356/0.1582, allocations: 1.047 MB / 318.4 MB, free: 1.465 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.298e-05/0.1582, allocations: 47.19 kB / 318.4 MB, free: 1.414 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.1582, allocations: 16 kB / 318.5 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/0.1584, allocations: 71.36 kB / 318.5 MB, free: 1.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004114/0.1588, allocations: 268.2 kB / 318.8 MB, free: 1.082 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001557/0.1603, allocations: 3.482 MB / 322.3 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00049/0.1608, allocations: 63.92 kB / 322.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.166e-05/0.1609, allocations: 64.12 kB / 322.4 MB, free: 13.26 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.0002675/0.1611, allocations: 252.7 kB / 322.6 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.1612, allocations: 143.2 kB / 322.8 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004907/0.1617, allocations: 423.7 kB / 323.2 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1617, allocations: 8 kB / 323.2 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1617, allocations: 0 / 323.2 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.1618, allocations: 7.922 kB / 323.2 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.1634, allocations: 1.524 MB / 324.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.1634, allocations: 4 kB / 324.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.1636, allocations: 103.4 kB / 324.8 MB, free: 10.74 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.1637, allocations: 51.3 kB / 324.9 MB, free: 10.68 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.1638, allocations: 16 kB / 324.9 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.1653, allocations: 3.462 MB / 328.4 MB, free: 6.984 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.1653, allocations: 11.47 kB / 328.4 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007286/0.166, allocations: 0.802 MB / 329.2 MB, free: 6.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.1663, allocations: 163.1 kB / 329.3 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.019e-05/0.1663, allocations: 20.12 kB / 329.4 MB, free: 5.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.1666, allocations: 27.92 kB / 329.4 MB, free: 5.883 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.984e-05/0.1667, allocations: 62.78 kB / 329.5 MB, free: 5.828 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.1667, allocations: 20 kB / 329.5 MB, free: 5.809 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005903/0.1673, allocations: 0.6261 MB / 330.1 MB, free: 5.176 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1673, allocations: 0 / 330.1 MB, free: 5.176 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008961/0.1682, allocations: 300 kB / 330.4 MB, free: 4.883 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.0002163/0.1684, allocations: 142.1 kB / 330.5 MB, free: 4.742 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009097/0.1693, allocations: 0.9209 MB / 331.4 MB, free: 3.832 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1693, allocations: 3.844 kB / 331.5 MB, free: 3.832 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003192/0.1696, allocations: 496.1 kB / 331.9 MB, free: 3.324 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008681/0.1705, allocations: 314.6 kB / 332.2 MB, free: 3.059 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003005/0.1735, allocations: 2.41 MB / 334.7 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001682/0.1737, allocations: 224.2 kB / 334.9 MB, free: 324 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003768/0.1741, allocations: 154.1 kB / 335 MB, free: 168 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.1742, allocations: 80.48 kB / 335.1 MB, free: 84 kB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1742, allocations: 0 / 335.1 MB, free: 84 kB / 282.7 MB Notification: Performance of Templates: time 0.02033/0.1945, allocations: 14.41 MB / 349.5 MB, free: 1.996 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.40799556998536]