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.001142/0.001142, allocations: 71.75 kB / 21.69 MB, free: 2.859 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.005154/0.005154, allocations: 160.1 kB / 24.99 MB, free: 9.324 MB / 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 1.006/1.006, allocations: 177.1 MB / 205.3 MB, free: 5.633 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 2.295e-06/2.295e-06, allocations: 4 kB / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.271e-05, allocations: 6.312 kB / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.009405/0.009428, allocations: 11.66 MB / 284.7 MB, free: 6.113 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005014/0.01444, allocations: 3.203 MB / 287.9 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009024/0.01534, allocations: 39.81 kB / 288 MB, free: 2.863 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.01654, allocations: 0.6245 MB / 288.6 MB, free: 2.234 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.01764, allocations: 0.7636 MB / 289.4 MB, free: 1.465 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005263/0.01817, allocations: 407.4 kB / 289.8 MB, free: 1.066 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1183/0.1365, allocations: 2.33 MB / 292.1 MB, free: 16.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00112/0.1376, allocations: 0.6081 MB / 292.7 MB, free: 16.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002041/0.1397, allocations: 1.314 MB / 294 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008881/0.1405, allocations: 0.7191 MB / 294.7 MB, free: 16.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002593/0.1408, allocations: 216.9 kB / 294.9 MB, free: 16.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004174/0.1412, allocations: 255.2 kB / 295.2 MB, free: 16.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002375/0.1415, allocations: 442.1 kB / 295.6 MB, free: 16.31 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007756/0.1422, allocations: 0.7032 MB / 296.3 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001502/0.1437, allocations: 1.398 MB / 297.7 MB, free: 16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1437, allocations: 3.188 kB / 297.7 MB, free: 16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1437, allocations: 0.7188 kB / 297.7 MB, free: 16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.257e-05/0.1438, allocations: 1.766 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.002453/0.1462, allocations: 2.147 MB / 299.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.1463, allocations: 9.594 kB / 299.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006215/0.1469, allocations: 392.4 kB / 300.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.148, allocations: 0.9827 MB / 301.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.478e-05/0.1481, allocations: 115.1 kB / 301.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.1482, allocations: 160.7 kB / 301.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.1497, allocations: 1.28 MB / 302.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.22e-05/0.1497, allocations: 10.36 kB / 302.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.676e-05/0.1498, allocations: 73.12 kB / 302.9 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.933e-05/0.1498, allocations: 37.88 kB / 302.9 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000893/0.1507, allocations: 0.5497 MB / 303.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00413/0.1548, allocations: 6.427 MB / 309.9 MB, free: 8.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003946/0.1552, allocations: 274 kB / 310.2 MB, free: 8.172 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.1554, allocations: 130.2 kB / 310.3 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.1554, allocations: 11.5 kB / 310.3 MB, free: 8.137 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002621/0.1557, allocations: 272.5 kB / 310.6 MB, free: 7.941 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.885e-06/0.1557, allocations: 0 / 310.6 MB, free: 7.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.00162/0.1573, allocations: 1.272 MB / 311.8 MB, free: 7.234 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.1574, allocations: 165.5 kB / 312 MB, free: 7.043 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008121/0.1582, allocations: 1.073 MB / 313.1 MB, free: 6.582 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.1582, allocations: 40.89 kB / 313.1 MB, free: 6.539 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000332/0.1585, allocations: 0.9622 MB / 314.1 MB, free: 5.746 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.321e-05/0.1586, allocations: 209.7 kB / 314.3 MB, free: 5.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.1588, allocations: 222.7 kB / 314.5 MB, free: 5.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.201e-05/0.1588, allocations: 0.5179 MB / 315 MB, free: 4.914 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.159, allocations: 150 kB / 315.2 MB, free: 4.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003668/0.1594, allocations: 1.073 MB / 316.2 MB, free: 3.523 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006432/0.16, allocations: 1.174 MB / 317.4 MB, free: 2.309 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.16, allocations: 3.812 kB / 317.4 MB, free: 2.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001116/0.1611, allocations: 1.047 MB / 318.5 MB, free: 1.582 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.1612, allocations: 45.08 kB / 318.5 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.1612, allocations: 16.84 kB / 318.5 MB, free: 1.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00017/0.1614, allocations: 75.28 kB / 318.6 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004343/0.1618, allocations: 264.1 kB / 318.9 MB, free: 1.199 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.1633, allocations: 3.494 MB / 322.3 MB, free: 13.49 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000527/0.1639, allocations: 59.94 kB / 322.4 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-05/0.1639, allocations: 64 kB / 322.5 MB, free: 13.37 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.0003021/0.1642, allocations: 253 kB / 322.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.1643, allocations: 135.2 kB / 322.8 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005097/0.1649, allocations: 431 kB / 323.3 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1649, allocations: 8 kB / 323.3 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.1649, allocations: 0 / 323.3 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1649, allocations: 3.938 kB / 323.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.1665, allocations: 1.527 MB / 324.8 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.1665, allocations: 0 / 324.8 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.1668, allocations: 102.4 kB / 324.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001132/0.1669, allocations: 55.75 kB / 325 MB, free: 10.8 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.1669, allocations: 16 kB / 325 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001463/0.1684, allocations: 3.46 MB / 328.4 MB, free: 7.098 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1684, allocations: 4 kB / 328.4 MB, free: 7.094 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007078/0.1691, allocations: 0.8139 MB / 329.3 MB, free: 6.199 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002211/0.1693, allocations: 163.1 kB / 329.4 MB, free: 6.039 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.212e-05/0.1694, allocations: 16.09 kB / 329.4 MB, free: 6.023 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.1696, allocations: 31.98 kB / 329.5 MB, free: 5.992 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.838e-05/0.1697, allocations: 55.23 kB / 329.5 MB, free: 5.941 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.1697, allocations: 23.98 kB / 329.5 MB, free: 5.918 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005981/0.1703, allocations: 0.6295 MB / 330.2 MB, free: 5.285 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1703, allocations: 0 / 330.2 MB, free: 5.285 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008586/0.1712, allocations: 300 kB / 330.5 MB, free: 4.992 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.000253/0.1714, allocations: 137.7 kB / 330.6 MB, free: 4.855 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009872/0.1724, allocations: 0.9186 MB / 331.5 MB, free: 3.945 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1724, allocations: 0 / 331.5 MB, free: 3.945 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003391/0.1728, allocations: 0.491 MB / 332 MB, free: 3.434 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008759/0.1736, allocations: 317.1 kB / 332.3 MB, free: 3.156 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.1767, allocations: 2.393 MB / 334.7 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001566/0.1768, allocations: 228.2 kB / 334.9 MB, free: 432 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000336/0.1772, allocations: 158.1 kB / 335.1 MB, free: 272 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.1773, allocations: 76.5 kB / 335.2 MB, free: 192 kB / 282.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1773, allocations: 0 / 335.2 MB, free: 192 kB / 282.7 MB Notification: Performance of Templates: time 0.01933/0.1966, allocations: 14.44 MB / 349.6 MB, free: 2.094 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.2694537760689855]