Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9557/0.9557, allocations: 173.3 MB / 201.1 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.333e-05/2.441e-05, allocations: 6.25 kB / 268 MB, free: 6.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009404/0.009428, allocations: 12.07 MB / 280.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005425/0.01485, allocations: 3.234 MB / 283.3 MB, free: 7.031 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009081/0.01576, allocations: 39.88 kB / 283.4 MB, free: 6.992 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001324/0.01709, allocations: 0.6477 MB / 284 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001374/0.01846, allocations: 0.8217 MB / 284.8 MB, free: 5.512 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006508/0.01911, allocations: 403.5 kB / 285.2 MB, free: 5.117 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002238/0.02135, allocations: 2.509 MB / 287.7 MB, free: 2.602 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007894/0.02214, allocations: 0.607 MB / 288.3 MB, free: 1.941 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00166/0.0238, allocations: 1.415 MB / 289.7 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1185/0.1423, allocations: 0.758 MB / 290.5 MB, free: 18.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006036/0.1429, allocations: 225.3 kB / 290.7 MB, free: 18.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007757/0.1437, allocations: 263.4 kB / 291 MB, free: 18.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002454/0.1439, allocations: 467 kB / 291.4 MB, free: 18.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001042/0.145, allocations: 0.7352 MB / 292.2 MB, free: 18.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001859/0.1468, allocations: 1.482 MB / 293.7 MB, free: 18.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1468, allocations: 3.156 kB / 293.7 MB, free: 18.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1468, allocations: 0 / 293.7 MB, free: 18.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.742e-05/0.1469, allocations: 0 / 293.7 MB, free: 18.58 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.002843/0.1497, allocations: 2.232 MB / 295.9 MB, free: 17.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.1498, allocations: 11.05 kB / 295.9 MB, free: 17.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007229/0.1505, allocations: 418 kB / 296.3 MB, free: 17.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.1518, allocations: 1.036 MB / 297.3 MB, free: 16.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.454e-05/0.1519, allocations: 114.1 kB / 297.5 MB, free: 16.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/0.152, allocations: 161.4 kB / 297.6 MB, free: 16.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.1537, allocations: 1.268 MB / 298.9 MB, free: 16.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.668e-05/0.1537, allocations: 11.78 kB / 298.9 MB, free: 16.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.869e-05/0.1538, allocations: 67.88 kB / 299 MB, free: 16.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.429e-05/0.1538, allocations: 38.28 kB / 299 MB, free: 16.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.155, allocations: 0.5637 MB / 299.6 MB, free: 16.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004936/0.16, allocations: 5.919 MB / 305.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007708/0.1607, allocations: 430 kB / 305.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004402/0.1612, allocations: 303.3 kB / 306.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.1612, allocations: 13.62 kB / 306.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.1612, allocations: 46.14 kB / 306.3 MB, free: 12.49 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.334e-06/0.1613, allocations: 0 / 306.3 MB, free: 12.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002256/0.1635, allocations: 1.652 MB / 307.9 MB, free: 11.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.1635, allocations: 111.7 kB / 308 MB, free: 11.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009234/0.1645, allocations: 1.135 MB / 309.2 MB, free: 11.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.1645, allocations: 37.7 kB / 309.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/0.1648, allocations: 0.9465 MB / 310.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.1649, allocations: 275.2 kB / 310.4 MB, free: 10.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.1651, allocations: 212.2 kB / 310.6 MB, free: 9.961 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.316e-05/0.1652, allocations: 0.5198 MB / 311.1 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.1654, allocations: 138 kB / 311.3 MB, free: 9.438 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003641/0.1657, allocations: 0.8485 MB / 312.1 MB, free: 8.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006681/0.1664, allocations: 1.014 MB / 313.1 MB, free: 7.543 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/0.1664, allocations: 6.609 kB / 313.1 MB, free: 7.543 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001093/0.1675, allocations: 1.024 MB / 314.2 MB, free: 7.227 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.1675, allocations: 9.625 kB / 314.2 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.1675, allocations: 17.09 kB / 314.2 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003861/0.1679, allocations: 144.9 kB / 314.3 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004538/0.1684, allocations: 256.6 kB / 314.6 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.1701, allocations: 5.612 MB / 320.2 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004854/0.1705, allocations: 52.19 kB / 320.2 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-05/0.1706, allocations: 56.23 kB / 320.3 MB, free: 1.527 MB / 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.0002549/0.1708, allocations: 240 kB / 320.5 MB, free: 1.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.171, allocations: 159.3 kB / 320.7 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007014/0.1717, allocations: 0.5907 MB / 321.3 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/0.1717, allocations: 10.97 kB / 321.3 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1717, allocations: 0 / 321.3 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1717, allocations: 3.984 kB / 321.3 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/0.1738, allocations: 1.838 MB / 323.1 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.1738, allocations: 7.938 kB / 323.1 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003122/0.1741, allocations: 126.2 kB / 323.3 MB, free: 15.17 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003731/0.1745, allocations: 160 kB / 323.4 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.1745, allocations: 16 kB / 323.4 MB, free: 14.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002485/0.177, allocations: 5.684 MB / 329.1 MB, free: 8.984 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.177, allocations: 8.125 kB / 329.1 MB, free: 8.977 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.1782, allocations: 1.025 MB / 330.1 MB, free: 7.867 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002856/0.1785, allocations: 199 kB / 330.3 MB, free: 7.672 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.943e-05/0.1786, allocations: 22.89 kB / 330.4 MB, free: 7.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.1789, allocations: 31.98 kB / 330.4 MB, free: 7.621 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.179, allocations: 74.7 kB / 330.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.782e-05/0.179, allocations: 23.98 kB / 330.5 MB, free: 7.531 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006381/0.1796, allocations: 0.6785 MB / 331.2 MB, free: 6.848 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1796, allocations: 0 / 331.2 MB, free: 6.848 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009148/0.1805, allocations: 320 kB / 331.5 MB, free: 6.535 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.000221/0.1808, allocations: 146.2 kB / 331.6 MB, free: 6.395 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.1818, allocations: 1.049 MB / 332.7 MB, free: 5.34 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.1818, allocations: 4.188 kB / 332.7 MB, free: 5.336 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005098/0.1823, allocations: 0.7443 MB / 333.4 MB, free: 4.555 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009298/0.1833, allocations: 356.1 kB / 333.8 MB, free: 4.227 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003846/0.1871, allocations: 2.691 MB / 336.5 MB, free: 1.449 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001822/0.1873, allocations: 249 kB / 336.7 MB, free: 1.184 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003946/0.1877, allocations: 158.8 kB / 336.9 MB, free: 1.023 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.1879, allocations: 88.48 kB / 336.9 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of SimCode: time 1.072e-06/0.1879, allocations: 4 kB / 336.9 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of Templates: time 0.02524/0.2131, allocations: 18.39 MB / 355.3 MB, free: 14.88 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.308342956006527]