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.001026/0.001026, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001171/0.001171, allocations: 165 kB / 24.56 MB, free: 16 kB / 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.9297/0.9297, allocations: 177.2 MB / 205 MB, free: 5.297 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.262e-06/1.262e-06, allocations: 0 / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.01e-05/2.136e-05, allocations: 8.984 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01061/0.01064, allocations: 12.08 MB / 285.1 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005818/0.01645, allocations: 3.269 MB / 288.3 MB, free: 1.961 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.01751, allocations: 47.81 kB / 288.4 MB, free: 1.914 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.01887, allocations: 0.6438 MB / 289 MB, free: 1.266 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001799/0.02067, allocations: 0.8178 MB / 289.9 MB, free: 452 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006481/0.02132, allocations: 407.5 kB / 290.3 MB, free: 44 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1209/0.1422, allocations: 2.504 MB / 292.8 MB, free: 16.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008083/0.143, allocations: 0.6061 MB / 293.4 MB, free: 16.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001449/0.1445, allocations: 1.421 MB / 294.8 MB, free: 16.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007756/0.1453, allocations: 0.762 MB / 295.5 MB, free: 16.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002381/0.1455, allocations: 224.4 kB / 295.8 MB, free: 16.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000405/0.1459, allocations: 264.3 kB / 296 MB, free: 16.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.1461, allocations: 462.9 kB / 296.5 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005646/0.1467, allocations: 0.7387 MB / 297.2 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001339/0.148, allocations: 1.48 MB / 298.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.148, allocations: 0 / 298.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.148, allocations: 0 / 298.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.121e-05/0.148, allocations: 0.8125 kB / 298.7 MB, free: 15.36 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.002216/0.1503, allocations: 2.24 MB / 300.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.1503, allocations: 10.94 kB / 300.9 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006444/0.1509, allocations: 418.8 kB / 301.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.152, allocations: 1.03 MB / 302.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.711e-05/0.1521, allocations: 114.1 kB / 302.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.1522, allocations: 160.1 kB / 302.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.1536, allocations: 1.269 MB / 303.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.711e-05/0.1536, allocations: 13.23 kB / 303.9 MB, free: 12.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.678e-05/0.1537, allocations: 70.97 kB / 304 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.756e-05/0.1537, allocations: 37.88 kB / 304 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008606/0.1546, allocations: 0.5667 MB / 304.6 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003674/0.1582, allocations: 5.913 MB / 310.5 MB, free: 8.102 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006346/0.1589, allocations: 428.9 kB / 310.9 MB, free: 7.973 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003677/0.1592, allocations: 303.5 kB / 311.2 MB, free: 7.906 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.1593, allocations: 17.72 kB / 311.3 MB, free: 7.895 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.1593, allocations: 44.8 kB / 311.3 MB, free: 7.848 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 1.704e-06/0.1593, allocations: 0 / 311.3 MB, free: 7.848 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001911/0.1612, allocations: 1.655 MB / 312.9 MB, free: 6.988 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.1612, allocations: 113.7 kB / 313.1 MB, free: 6.863 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007988/0.162, allocations: 1.13 MB / 314.2 MB, free: 6.043 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.1621, allocations: 41.7 kB / 314.2 MB, free: 5.996 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/0.1624, allocations: 0.9424 MB / 315.2 MB, free: 5.047 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.908e-05/0.1625, allocations: 275.8 kB / 315.4 MB, free: 4.781 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.1626, allocations: 208.5 kB / 315.6 MB, free: 4.566 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.051e-05/0.1627, allocations: 0.5226 MB / 316.2 MB, free: 4.039 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.1628, allocations: 142.5 kB / 316.3 MB, free: 3.902 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000344/0.1632, allocations: 0.8446 MB / 317.2 MB, free: 2.754 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006052/0.1638, allocations: 1.011 MB / 318.2 MB, free: 1.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1638, allocations: 4 kB / 318.2 MB, free: 1.516 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0009431/0.1647, allocations: 1.024 MB / 319.2 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1648, allocations: 14.03 kB / 319.2 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.1648, allocations: 16 kB / 319.2 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003226/0.1651, allocations: 144.1 kB / 319.4 MB, free: 404 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004107/0.1655, allocations: 254 kB / 319.6 MB, free: 168 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00245/0.168, allocations: 5.622 MB / 325.2 MB, free: 10.22 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/0.1683, allocations: 56.06 kB / 325.3 MB, free: 10.17 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.389e-05/0.1684, allocations: 52 kB / 325.3 MB, free: 10.12 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.0002415/0.1686, allocations: 237.9 kB / 325.6 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.1688, allocations: 151.2 kB / 325.7 MB, free: 9.742 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008424/0.1696, allocations: 0.5964 MB / 326.3 MB, free: 9.133 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.1696, allocations: 8 kB / 326.3 MB, free: 9.125 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.1696, allocations: 0 / 326.3 MB, free: 9.125 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.1696, allocations: 7.984 kB / 326.3 MB, free: 9.117 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.1717, allocations: 1.836 MB / 328.2 MB, free: 7.207 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.1717, allocations: 11.88 kB / 328.2 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002968/0.172, allocations: 123.2 kB / 328.3 MB, free: 7.082 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003498/0.1723, allocations: 157.1 kB / 328.5 MB, free: 6.918 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-05/0.1724, allocations: 16 kB / 328.5 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002371/0.1747, allocations: 5.685 MB / 334.2 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.1747, allocations: 11.5 kB / 334.2 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.1758, allocations: 1.018 MB / 335.2 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000246/0.176, allocations: 191 kB / 335.4 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.949e-05/0.1761, allocations: 28.3 kB / 335.4 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002734/0.1764, allocations: 31.98 kB / 335.4 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.1765, allocations: 71.7 kB / 335.5 MB, free: 15.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.1765, allocations: 20 kB / 335.5 MB, free: 15.45 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006128/0.1771, allocations: 0.6746 MB / 336.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1771, allocations: 0 / 336.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007996/0.1779, allocations: 332 kB / 336.5 MB, free: 14.45 MB / 298.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.0002081/0.1781, allocations: 143.3 kB / 336.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009368/0.1791, allocations: 1.054 MB / 337.7 MB, free: 13.26 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1791, allocations: 4 kB / 337.7 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00048/0.1795, allocations: 0.7513 MB / 338.5 MB, free: 12.47 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008875/0.1804, allocations: 350.5 kB / 338.8 MB, free: 12.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003379/0.1838, allocations: 2.703 MB / 341.5 MB, free: 9.355 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.184, allocations: 245 kB / 341.7 MB, free: 9.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003734/0.1844, allocations: 158.8 kB / 341.9 MB, free: 8.93 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.1845, allocations: 88.48 kB / 342 MB, free: 8.844 MB / 298.7 MB Notification: Performance of SimCode: time 1.162e-06/0.1845, allocations: 0 / 342 MB, free: 8.844 MB / 298.7 MB Notification: Performance of Templates: time 0.02165/0.2062, allocations: 18.44 MB / 360.4 MB, free: 6.754 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.399715135805309]