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.0009891/0.0009891, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0009901/0.0009901, allocations: 142 kB / 24.97 MB, free: 8.895 MB / 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.8996/0.8996, allocations: 173.4 MB / 201.5 MB, free: 9.312 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.783e-06/1.783e-06, allocations: 0 / 268.1 MB, free: 6.699 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.189e-05/2.367e-05, allocations: 2.312 kB / 268.1 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.02103/0.02106, allocations: 12.02 MB / 280.1 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005461/0.02652, allocations: 3.222 MB / 283.3 MB, free: 7.383 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001184/0.0277, allocations: 43.81 kB / 283.4 MB, free: 7.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.02904, allocations: 0.6399 MB / 284 MB, free: 6.695 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001412/0.03045, allocations: 0.8179 MB / 284.8 MB, free: 5.871 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005496/0.031, allocations: 403.5 kB / 285.2 MB, free: 5.477 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001927/0.03293, allocations: 2.509 MB / 287.7 MB, free: 2.961 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006826/0.03361, allocations: 0.6109 MB / 288.3 MB, free: 2.297 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00125/0.03486, allocations: 1.407 MB / 289.8 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006621/0.03553, allocations: 0.7751 MB / 290.5 MB, free: 112 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.1166/0.1522, allocations: 229.9 kB / 290.8 MB, free: 19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007759/0.1529, allocations: 262.1 kB / 291 MB, free: 19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.1532, allocations: 471.8 kB / 291.5 MB, free: 19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009812/0.1542, allocations: 0.7414 MB / 292.2 MB, free: 19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001801/0.156, allocations: 1.495 MB / 293.7 MB, free: 18.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.156, allocations: 0.875 kB / 293.7 MB, free: 18.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.156, allocations: 0 / 293.7 MB, free: 18.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.681e-05/0.1561, allocations: 0 / 293.7 MB, free: 18.84 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.002674/0.1587, allocations: 2.241 MB / 295.9 MB, free: 17.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.1588, allocations: 10.39 kB / 296 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000742/0.1595, allocations: 419.8 kB / 296.4 MB, free: 17.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001302/0.1608, allocations: 1.052 MB / 297.4 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.282e-05/0.1609, allocations: 116.4 kB / 297.5 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.161, allocations: 159.9 kB / 297.7 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.1626, allocations: 1.271 MB / 299 MB, free: 16.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.626e-05/0.1626, allocations: 8.219 kB / 299 MB, free: 16.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.136e-05/0.1627, allocations: 69.03 kB / 299 MB, free: 16.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/0.1627, allocations: 39.25 kB / 299.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.1637, allocations: 0.5644 MB / 299.6 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004747/0.1685, allocations: 5.918 MB / 305.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007502/0.1692, allocations: 426.6 kB / 306 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004227/0.1697, allocations: 307.7 kB / 306.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.515e-05/0.1697, allocations: 13.03 kB / 306.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.1697, allocations: 40.8 kB / 306.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.504e-06/0.1697, allocations: 1.375 kB / 306.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002256/0.172, allocations: 1.655 MB / 308 MB, free: 12.06 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.172, allocations: 113.3 kB / 308.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008848/0.1729, allocations: 1.131 MB / 309.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.1729, allocations: 41.7 kB / 309.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003202/0.1732, allocations: 0.9459 MB / 310.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.887e-05/0.1733, allocations: 280.9 kB / 310.5 MB, free: 10.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.1735, allocations: 210.8 kB / 310.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.774e-05/0.1736, allocations: 0.5175 MB / 311.2 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.1738, allocations: 141.2 kB / 311.3 MB, free: 9.828 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.1741, allocations: 0.8428 MB / 312.2 MB, free: 8.883 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006488/0.1748, allocations: 1.015 MB / 313.2 MB, free: 7.934 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1748, allocations: 3.656 kB / 313.2 MB, free: 7.934 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001041/0.1758, allocations: 1.024 MB / 314.2 MB, free: 7.617 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.1758, allocations: 13.28 kB / 314.2 MB, free: 7.613 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.1758, allocations: 17.06 kB / 314.3 MB, free: 7.613 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003813/0.1762, allocations: 145.5 kB / 314.4 MB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004257/0.1767, allocations: 250.8 kB / 314.6 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.1782, allocations: 5.62 MB / 320.3 MB, free: 1.992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004552/0.1787, allocations: 57.03 kB / 320.3 MB, free: 1.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.1787, allocations: 55.12 kB / 320.4 MB, free: 1.957 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.0002509/0.179, allocations: 239.2 kB / 320.6 MB, free: 1.758 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.1791, allocations: 153.8 kB / 320.8 MB, free: 1.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006665/0.1798, allocations: 0.5944 MB / 321.4 MB, free: 1.395 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.1798, allocations: 7.188 kB / 321.4 MB, free: 1.395 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.1798, allocations: 0 / 321.4 MB, free: 1.395 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1798, allocations: 7.484 kB / 321.4 MB, free: 1.391 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.1816, allocations: 1.829 MB / 323.2 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.1816, allocations: 8.406 kB / 323.2 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/0.1819, allocations: 131.6 kB / 323.3 MB, free: 15.65 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003496/0.1822, allocations: 159.5 kB / 323.5 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.1823, allocations: 16 kB / 323.5 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002517/0.1848, allocations: 5.683 MB / 329.2 MB, free: 9.457 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.1848, allocations: 7.938 kB / 329.2 MB, free: 9.449 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.1858, allocations: 1.028 MB / 330.2 MB, free: 8.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.1861, allocations: 194.1 kB / 330.4 MB, free: 8.152 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.026e-05/0.1862, allocations: 23.94 kB / 330.4 MB, free: 8.129 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/0.1865, allocations: 32.62 kB / 330.5 MB, free: 8.098 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.1866, allocations: 68.28 kB / 330.5 MB, free: 8.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.1866, allocations: 23.98 kB / 330.6 MB, free: 8.012 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006227/0.1872, allocations: 0.6785 MB / 331.2 MB, free: 7.328 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1872, allocations: 2.734 kB / 331.2 MB, free: 7.328 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008494/0.1881, allocations: 328 kB / 331.6 MB, free: 7.008 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.0002069/0.1883, allocations: 138.7 kB / 331.7 MB, free: 6.875 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009935/0.1893, allocations: 1.056 MB / 332.8 MB, free: 5.816 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1893, allocations: 0 / 332.8 MB, free: 5.816 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007389/0.19, allocations: 0.7468 MB / 333.5 MB, free: 5.031 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009211/0.1909, allocations: 350.8 kB / 333.8 MB, free: 4.707 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003435/0.1944, allocations: 2.694 MB / 336.5 MB, free: 1.926 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.1945, allocations: 247.8 kB / 336.8 MB, free: 1.664 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003851/0.1949, allocations: 162.8 kB / 336.9 MB, free: 1.5 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.1951, allocations: 88.48 kB / 337 MB, free: 1.414 MB / 282.7 MB Notification: Performance of SimCode: time 1.022e-06/0.1951, allocations: 0 / 337 MB, free: 1.414 MB / 282.7 MB Notification: Performance of Templates: time 0.02313/0.2182, allocations: 17.34 MB / 354.4 MB, free: 396 kB / 298.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.3330751308239996]