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.001346/0.001346, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001138/0.001138, allocations: 165.8 kB / 24.82 MB, free: 9.266 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.9633/0.9633, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.603e-06/1.603e-06, allocations: 0 / 273.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.148e-05/1.309e-05, allocations: 2.312 kB / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009447/0.00946, allocations: 11.75 MB / 285.2 MB, free: 5.445 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004975/0.01444, allocations: 3.238 MB / 288.4 MB, free: 2.199 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008857/0.01532, allocations: 43.81 kB / 288.4 MB, free: 2.156 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.01662, allocations: 0.6476 MB / 289.1 MB, free: 1.504 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001384/0.01801, allocations: 0.8256 MB / 289.9 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000668/0.01868, allocations: 411.5 kB / 290.3 MB, free: 276 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1162/0.1349, allocations: 2.5 MB / 292.8 MB, free: 16.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009693/0.1359, allocations: 0.6058 MB / 293.4 MB, free: 16.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001847/0.1377, allocations: 1.424 MB / 294.8 MB, free: 16.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.1388, allocations: 0.7566 MB / 295.6 MB, free: 16.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004022/0.1392, allocations: 224.1 kB / 295.8 MB, free: 16.33 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004808/0.1397, allocations: 263.4 kB / 296.1 MB, free: 16.33 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002498/0.14, allocations: 469 kB / 296.5 MB, free: 16.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008285/0.1408, allocations: 0.7378 MB / 297.3 MB, free: 16.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001571/0.1424, allocations: 1.475 MB / 298.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1424, allocations: 0.9688 kB / 298.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1424, allocations: 0.8438 kB / 298.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.752e-05/0.1424, allocations: 0.7812 kB / 298.8 MB, free: 15.59 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.002605/0.145, allocations: 2.26 MB / 301 MB, free: 14.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.1451, allocations: 16.03 kB / 301 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006626/0.1457, allocations: 413.9 kB / 301.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.1469, allocations: 0.9998 MB / 302.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.629e-05/0.1469, allocations: 117 kB / 302.5 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.1471, allocations: 160.7 kB / 302.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.1483, allocations: 1.175 MB / 303.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.659e-05/0.1483, allocations: 11.48 kB / 303.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-05/0.1484, allocations: 72.05 kB / 304 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.1484, allocations: 38.16 kB / 304 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006462/0.1491, allocations: 451.9 kB / 304.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004231/0.1533, allocations: 5.97 MB / 310.4 MB, free: 8.77 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005765/0.1539, allocations: 391.8 kB / 310.8 MB, free: 8.676 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.1542, allocations: 271.1 kB / 311.1 MB, free: 8.625 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.1542, allocations: 17.16 kB / 311.1 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.1542, allocations: 42.91 kB / 311.1 MB, free: 8.574 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 1.873e-06/0.1542, allocations: 0 / 311.1 MB, free: 8.574 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001796/0.156, allocations: 1.331 MB / 312.4 MB, free: 7.941 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.1561, allocations: 117.2 kB / 312.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.1571, allocations: 1.102 MB / 313.7 MB, free: 7.297 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.1571, allocations: 37.7 kB / 313.7 MB, free: 7.254 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004864/0.1576, allocations: 0.9623 MB / 314.7 MB, free: 6.336 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.1578, allocations: 273.3 kB / 314.9 MB, free: 6.086 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/0.158, allocations: 219.1 kB / 315.1 MB, free: 5.883 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.741e-05/0.1581, allocations: 0.5244 MB / 315.7 MB, free: 5.375 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.1583, allocations: 106.5 kB / 315.8 MB, free: 5.273 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002805/0.1586, allocations: 0.8221 MB / 316.6 MB, free: 4.176 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/0.1591, allocations: 0.9647 MB / 317.6 MB, free: 3.016 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.1591, allocations: 4 kB / 317.6 MB, free: 3.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0009138/0.16, allocations: 0.9456 MB / 318.5 MB, free: 2.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.16, allocations: 12 kB / 318.5 MB, free: 2.137 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.16, allocations: 16 kB / 318.5 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000303/0.1604, allocations: 146.2 kB / 318.7 MB, free: 1.973 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003883/0.1607, allocations: 249.5 kB / 318.9 MB, free: 1.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002179/0.1629, allocations: 5.544 MB / 324.5 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004411/0.1634, allocations: 59.88 kB / 324.5 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.693e-05/0.1634, allocations: 47.98 kB / 324.6 MB, free: 11.82 MB / 282.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.0002592/0.1637, allocations: 233.7 kB / 324.8 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.1638, allocations: 151.2 kB / 324.9 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006461/0.1645, allocations: 0.545 MB / 325.5 MB, free: 10.9 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1645, allocations: 8 kB / 325.5 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1645, allocations: 3.938 kB / 325.5 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.81e-06/0.1645, allocations: 3.984 kB / 325.5 MB, free: 10.88 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001765/0.1662, allocations: 1.594 MB / 327.1 MB, free: 9.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.1662, allocations: 4 kB / 327.1 MB, free: 9.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002835/0.1665, allocations: 122.6 kB / 327.2 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003307/0.1669, allocations: 150.4 kB / 327.4 MB, free: 9.062 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.1669, allocations: 20 kB / 327.4 MB, free: 9.043 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002207/0.1691, allocations: 5.617 MB / 333 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.748e-06/0.1691, allocations: 4.188 kB / 333 MB, free: 3.152 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008465/0.1699, allocations: 0.9601 MB / 334 MB, free: 2.121 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002497/0.1702, allocations: 194.5 kB / 334.2 MB, free: 1.934 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.559e-05/0.1703, allocations: 27.98 kB / 334.2 MB, free: 1.906 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/0.1706, allocations: 27.98 kB / 334.2 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.702e-05/0.1706, allocations: 67.61 kB / 334.3 MB, free: 1.816 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.1707, allocations: 23.94 kB / 334.3 MB, free: 1.793 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004427/0.1711, allocations: 0.6154 MB / 334.9 MB, free: 1.227 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1711, allocations: 0 / 334.9 MB, free: 1.227 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008214/0.1719, allocations: 328 kB / 335.2 MB, free: 0.9062 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.0002101/0.1721, allocations: 138.8 kB / 335.4 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008069/0.1729, allocations: 1.004 MB / 336.4 MB, free: 15.78 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1729, allocations: 0 / 336.4 MB, free: 15.78 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000441/0.1734, allocations: 0.733 MB / 337.1 MB, free: 15.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009076/0.1743, allocations: 356 kB / 337.5 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003336/0.1776, allocations: 2.692 MB / 340.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001849/0.1778, allocations: 252.2 kB / 340.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004647/0.1783, allocations: 154.8 kB / 340.5 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00053/0.1788, allocations: 394 kB / 340.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1788, allocations: 0 / 340.9 MB, free: 11.11 MB / 298.7 MB Notification: Performance of Templates: time 0.02379/0.2026, allocations: 18.77 MB / 359.7 MB, free: 8.742 MB / 314.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 -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.3575340965762734]