Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.0009327/0.0009327, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001058/0.001058, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9631/0.9631, allocations: 177.2 MB / 205 MB, free: 5.594 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_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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.229e-05/2.383e-05, allocations: 2.312 kB / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.009536/0.00956, allocations: 11.72 MB / 284.7 MB, free: 5.727 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005239/0.0148, allocations: 3.199 MB / 287.9 MB, free: 2.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.01589, allocations: 43.81 kB / 288 MB, free: 2.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001432/0.01732, allocations: 0.6323 MB / 288.6 MB, free: 1.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001433/0.01876, allocations: 0.7674 MB / 289.4 MB, free: 1.066 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008997/0.01966, allocations: 403.4 kB / 289.8 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1142/0.1338, allocations: 2.323 MB / 292.1 MB, free: 16.78 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009573/0.1348, allocations: 0.6045 MB / 292.7 MB, free: 16.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001846/0.1366, allocations: 1.331 MB / 294 MB, free: 16.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.1378, allocations: 0.7058 MB / 294.7 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00041/0.1382, allocations: 213.9 kB / 294.9 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004551/0.1386, allocations: 247.2 kB / 295.2 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.1388, allocations: 438 kB / 295.6 MB, free: 16.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008999/0.1397, allocations: 0.6939 MB / 296.3 MB, free: 16.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001551/0.1413, allocations: 1.394 MB / 297.7 MB, free: 16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1413, allocations: 3.844 kB / 297.7 MB, free: 16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1413, allocations: 0 / 297.7 MB, free: 16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.025e-05/0.1414, allocations: 1.75 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.002914/0.1443, allocations: 2.139 MB / 299.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.1443, allocations: 11.34 kB / 299.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006841/0.145, allocations: 386.6 kB / 300.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.1462, allocations: 0.965 MB / 301.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.533e-05/0.1463, allocations: 116.4 kB / 301.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001457/0.1464, allocations: 161.1 kB / 301.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.1479, allocations: 1.284 MB / 302.7 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.461e-05/0.148, allocations: 10.09 kB / 302.7 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.415e-05/0.1481, allocations: 65.69 kB / 302.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.768e-05/0.1481, allocations: 38.5 kB / 302.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009011/0.149, allocations: 0.5454 MB / 303.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0046/0.1536, allocations: 6.436 MB / 309.8 MB, free: 8.137 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004225/0.154, allocations: 274.4 kB / 310.1 MB, free: 8.039 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.1542, allocations: 129.9 kB / 310.2 MB, free: 8.008 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.1542, allocations: 13.97 kB / 310.2 MB, free: 8.004 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/0.1545, allocations: 271.1 kB / 310.5 MB, free: 7.809 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.953e-06/0.1545, allocations: 0 / 310.5 MB, free: 7.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001691/0.1562, allocations: 1.273 MB / 311.8 MB, free: 7.102 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.1562, allocations: 161.8 kB / 311.9 MB, free: 6.914 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008393/0.1571, allocations: 1.08 MB / 313 MB, free: 6.445 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.1571, allocations: 41.2 kB / 313.1 MB, free: 6.402 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003443/0.1574, allocations: 0.9571 MB / 314 MB, free: 5.578 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.149e-05/0.1575, allocations: 210.5 kB / 314.2 MB, free: 5.402 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.1577, allocations: 224 kB / 314.4 MB, free: 5.258 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.904e-05/0.1578, allocations: 0.5186 MB / 315 MB, free: 4.742 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.158, allocations: 155 kB / 315.1 MB, free: 4.668 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003735/0.1583, allocations: 1.074 MB / 316.2 MB, free: 3.348 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006701/0.159, allocations: 1.171 MB / 317.4 MB, free: 2.133 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.159, allocations: 6.688 kB / 317.4 MB, free: 2.133 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0009515/0.16, allocations: 1.046 MB / 318.4 MB, free: 1.285 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.16, allocations: 42.58 kB / 318.4 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.16, allocations: 20 kB / 318.5 MB, free: 1.219 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001696/0.1602, allocations: 67.34 kB / 318.5 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004149/0.1606, allocations: 265.2 kB / 318.8 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/0.1619, allocations: 3.492 MB / 322.3 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000491/0.1624, allocations: 59.94 kB / 322.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/0.1625, allocations: 66.94 kB / 322.4 MB, free: 13.08 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.0002587/0.1627, allocations: 256.2 kB / 322.7 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.1629, allocations: 139.2 kB / 322.8 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004897/0.1633, allocations: 423.8 kB / 323.2 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.1634, allocations: 7.984 kB / 323.2 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1634, allocations: 0 / 323.2 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.1634, allocations: 7.938 kB / 323.2 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.1649, allocations: 1.524 MB / 324.7 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.758e-06/0.1649, allocations: 4 kB / 324.7 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.1651, allocations: 102.9 kB / 324.8 MB, free: 10.56 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001031/0.1653, allocations: 55.75 kB / 324.9 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.1653, allocations: 12 kB / 324.9 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/0.167, allocations: 3.465 MB / 328.4 MB, free: 6.797 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.167, allocations: 7.375 kB / 328.4 MB, free: 6.793 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008684/0.1679, allocations: 0.8021 MB / 329.2 MB, free: 5.906 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000267/0.1681, allocations: 167.1 kB / 329.4 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.1682, allocations: 16.12 kB / 329.4 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003458/0.1686, allocations: 31.98 kB / 329.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.1687, allocations: 51.33 kB / 329.4 MB, free: 5.648 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.824e-05/0.1687, allocations: 23.98 kB / 329.5 MB, free: 5.625 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007335/0.1695, allocations: 0.6292 MB / 330.1 MB, free: 4.992 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1695, allocations: 0 / 330.1 MB, free: 4.992 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001006/0.1705, allocations: 300 kB / 330.4 MB, free: 4.699 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.0002115/0.1707, allocations: 138.8 kB / 330.5 MB, free: 4.559 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.1717, allocations: 0.9183 MB / 331.4 MB, free: 3.652 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.1717, allocations: 4 kB / 331.5 MB, free: 3.648 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003791/0.1721, allocations: 0.4911 MB / 331.9 MB, free: 3.137 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.1732, allocations: 315.7 kB / 332.3 MB, free: 2.859 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00377/0.1769, allocations: 2.389 MB / 334.6 MB, free: 388 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.1771, allocations: 232.2 kB / 334.9 MB, free: 128 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004274/0.1775, allocations: 150.2 kB / 335 MB, free: 15.97 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.1777, allocations: 80.5 kB / 335.1 MB, free: 15.89 MB / 298.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1777, allocations: 0 / 335.1 MB, free: 15.89 MB / 298.7 MB Notification: Performance of Templates: time 0.02592/0.2036, allocations: 15.33 MB / 350.4 MB, free: 0.9219 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.2109140967950225]