Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.0008864/0.0008864, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009637/0.0009637, allocations: 171.9 kB / 24.92 MB, free: 8.723 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 0.9639/0.9639, allocations: 177.1 MB / 205.3 MB, free: 5.105 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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.052e-06/1.052e-06, allocations: 0 / 273.5 MB, free: 1.121 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.823e-05/1.928e-05, allocations: 2.312 kB / 273.5 MB, free: 1.117 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009292/0.009311, allocations: 11.8 MB / 285.3 MB, free: 5.262 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005874/0.01519, allocations: 3.385 MB / 288.7 MB, free: 1.867 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009183/0.0161, allocations: 43.81 kB / 288.7 MB, free: 1.824 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001295/0.0174, allocations: 0.6594 MB / 289.4 MB, free: 1.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001469/0.01887, allocations: 0.814 MB / 290.2 MB, free: 348 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1122/0.1311, allocations: 406.7 kB / 290.6 MB, free: 16.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00327/0.1343, allocations: 2.512 MB / 293.1 MB, free: 16.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009996/0.1353, allocations: 0.6328 MB / 293.8 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.1374, allocations: 1.42 MB / 295.2 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001213/0.1387, allocations: 0.7638 MB / 295.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004928/0.1392, allocations: 224.3 kB / 296.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004947/0.1396, allocations: 269.5 kB / 296.4 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002466/0.1399, allocations: 466.7 kB / 296.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001002/0.1409, allocations: 0.7393 MB / 297.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001747/0.1426, allocations: 1.479 MB / 299.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1426, allocations: 1.719 kB / 299.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1426, allocations: 1.219 kB / 299.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.435e-05/0.1427, allocations: 0.5 kB / 299.1 MB, free: 15.19 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002688/0.1454, allocations: 2.073 MB / 301.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.1454, allocations: 9.781 kB / 301.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006831/0.1461, allocations: 351.2 kB / 301.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.1473, allocations: 0.7934 MB / 302.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.996e-05/0.1474, allocations: 117.6 kB / 302.4 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/0.1475, allocations: 163.4 kB / 302.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.1487, allocations: 1.17 MB / 303.8 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.141e-05/0.1487, allocations: 16.02 kB / 303.8 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.709e-05/0.1488, allocations: 70 kB / 303.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.723e-05/0.1488, allocations: 36.84 kB / 303.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000712/0.1495, allocations: 398.4 kB / 304.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004568/0.1541, allocations: 4.696 MB / 309 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005291/0.1546, allocations: 364.8 kB / 309.3 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002825/0.1549, allocations: 264.8 kB / 309.6 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.1549, allocations: 10.59 kB / 309.6 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.1549, allocations: 41.59 kB / 309.6 MB, free: 9.711 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.374e-06/0.1549, allocations: 0 / 309.6 MB, free: 9.711 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.00169/0.1566, allocations: 1.226 MB / 310.9 MB, free: 9.277 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.716e-05/0.1567, allocations: 119.7 kB / 311 MB, free: 9.148 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006227/0.1573, allocations: 1.006 MB / 312 MB, free: 8.816 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.1573, allocations: 37.7 kB / 312 MB, free: 8.773 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.1575, allocations: 0.7349 MB / 312.8 MB, free: 8.086 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.828e-05/0.1576, allocations: 270.3 kB / 313 MB, free: 7.836 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.1577, allocations: 210.2 kB / 313.2 MB, free: 7.645 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.425e-05/0.1578, allocations: 352.4 kB / 313.6 MB, free: 7.316 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.635e-05/0.1579, allocations: 98.56 kB / 313.7 MB, free: 7.223 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.1581, allocations: 0.6154 MB / 314.3 MB, free: 6.414 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004336/0.1585, allocations: 0.7826 MB / 315.1 MB, free: 5.516 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.1585, allocations: 4 kB / 315.1 MB, free: 5.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0006902/0.1592, allocations: 0.7535 MB / 315.8 MB, free: 4.844 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.1592, allocations: 12 kB / 315.8 MB, free: 4.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.1592, allocations: 16 kB / 315.8 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003242/0.1596, allocations: 161.9 kB / 316 MB, free: 4.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004337/0.16, allocations: 272.7 kB / 316.3 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.1612, allocations: 3.776 MB / 320 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004263/0.1617, allocations: 55.94 kB / 320.1 MB, free: 392 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.679e-05/0.1617, allocations: 44 kB / 320.1 MB, free: 348 kB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001949/0.1619, allocations: 202.4 kB / 320.3 MB, free: 156 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.549e-05/0.162, allocations: 91.91 kB / 320.4 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005346/0.1625, allocations: 471.7 kB / 320.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1625, allocations: 8 kB / 320.9 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1625, allocations: 4 kB / 320.9 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.1625, allocations: 7.922 kB / 320.9 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.164, allocations: 1.213 MB / 322.1 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.164, allocations: 7.938 kB / 322.1 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/0.1643, allocations: 138.6 kB / 322.3 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003416/0.1646, allocations: 166 kB / 322.4 MB, free: 14.13 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.758e-05/0.1647, allocations: 23.98 kB / 322.5 MB, free: 14.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00213/0.1668, allocations: 3.834 MB / 326.3 MB, free: 10.08 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.1668, allocations: 4.188 kB / 326.3 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007308/0.1675, allocations: 0.7457 MB / 327 MB, free: 9.289 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.1678, allocations: 130 kB / 327.2 MB, free: 9.164 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.302e-05/0.1678, allocations: 28.05 kB / 327.2 MB, free: 9.137 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002552/0.1681, allocations: 31.98 kB / 327.2 MB, free: 9.105 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.863e-05/0.1682, allocations: 64.08 kB / 327.3 MB, free: 9.047 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.1682, allocations: 20 kB / 327.3 MB, free: 9.027 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003787/0.1686, allocations: 475.9 kB / 327.8 MB, free: 8.609 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1686, allocations: 0 / 327.8 MB, free: 8.609 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000864/0.1695, allocations: 324 kB / 328.1 MB, free: 8.293 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001943/0.1697, allocations: 119.8 kB / 328.2 MB, free: 8.172 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007512/0.1704, allocations: 0.8174 MB / 329 MB, free: 7.387 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.068e-05/0.1704, allocations: 21.81 kB / 329 MB, free: 7.367 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003886/0.1708, allocations: 0.5562 MB / 329.6 MB, free: 6.805 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008092/0.1716, allocations: 355.5 kB / 329.9 MB, free: 6.484 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003523/0.1752, allocations: 2.541 MB / 332.5 MB, free: 3.887 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001922/0.1753, allocations: 249 kB / 332.7 MB, free: 3.617 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004076/0.1758, allocations: 162.8 kB / 332.9 MB, free: 3.453 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005008/0.1763, allocations: 343.3 kB / 333.2 MB, free: 3.121 MB / 282.7 MB Notification: Performance of SimCode: time 1.423e-06/0.1763, allocations: 0 / 333.2 MB, free: 3.121 MB / 282.7 MB Notification: Performance of Templates: time 0.0273/0.2036, allocations: 18.8 MB / 352 MB, free: 0.7109 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.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.183465245179832]