Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001283/0.001283, allocations: 88.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 165.1 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9774/0.9774, allocations: 177 MB / 205.2 MB, free: 5.07 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.779e-06/4.779e-06, allocations: 4 kB / 273.4 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.397e-05/2.875e-05, allocations: 2.312 kB / 273.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01185/0.01188, allocations: 11.42 MB / 284.9 MB, free: 5.562 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007035/0.01891, allocations: 3.327 MB / 288.2 MB, free: 2.227 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00196/0.02087, allocations: 43.81 kB / 288.2 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.0228, allocations: 0.64 MB / 288.9 MB, free: 1.539 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00205/0.02485, allocations: 0.7597 MB / 289.6 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007746/0.02563, allocations: 403.5 kB / 290 MB, free: 388 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1238/0.1494, allocations: 2.333 MB / 292.4 MB, free: 16.81 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001082/0.1505, allocations: 0.6306 MB / 293 MB, free: 16.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.1524, allocations: 1.331 MB / 294.3 MB, free: 16.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001138/0.1536, allocations: 0.7099 MB / 295 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003216/0.1539, allocations: 213.8 kB / 295.2 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004458/0.1543, allocations: 254.2 kB / 295.5 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002297/0.1546, allocations: 437.4 kB / 295.9 MB, free: 16.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009088/0.1555, allocations: 0.6981 MB / 296.6 MB, free: 16.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001701/0.1572, allocations: 1.395 MB / 298 MB, free: 15.97 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1572, allocations: 0 / 298 MB, free: 15.97 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1572, allocations: 0 / 298 MB, free: 15.97 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.229e-05/0.1572, allocations: 1.25 kB / 298 MB, free: 15.97 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002431/0.1597, allocations: 1.99 MB / 300 MB, free: 14.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.1597, allocations: 13.83 kB / 300 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006346/0.1603, allocations: 323.8 kB / 300.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.1613, allocations: 0.7437 MB / 301.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.396e-05/0.1614, allocations: 115 kB / 301.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.1615, allocations: 159.5 kB / 301.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.1627, allocations: 1.181 MB / 302.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.562e-05/0.1628, allocations: 6.703 kB / 302.5 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.979e-05/0.1628, allocations: 67.06 kB / 302.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.61e-05/0.1629, allocations: 38.09 kB / 302.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005586/0.1634, allocations: 387.3 kB / 303 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004023/0.1674, allocations: 5.106 MB / 308.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.1677, allocations: 229.4 kB / 308.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.1678, allocations: 101.8 kB / 308.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.1679, allocations: 16.5 kB / 308.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001998/0.1681, allocations: 244.4 kB / 308.7 MB, free: 9.938 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.905e-06/0.1681, allocations: 0 / 308.7 MB, free: 9.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001262/0.1693, allocations: 0.945 MB / 309.6 MB, free: 9.555 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.1694, allocations: 161.8 kB / 309.8 MB, free: 9.367 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005884/0.17, allocations: 0.9626 MB / 310.8 MB, free: 9.129 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.17, allocations: 41.52 kB / 310.8 MB, free: 9.086 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002416/0.1702, allocations: 0.7836 MB / 311.6 MB, free: 8.543 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.861e-05/0.1703, allocations: 211.3 kB / 311.8 MB, free: 8.395 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.1704, allocations: 225 kB / 312 MB, free: 8.289 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.367e-05/0.1705, allocations: 352.2 kB / 312.3 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.342e-05/0.1706, allocations: 120.2 kB / 312.5 MB, free: 7.953 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002468/0.1708, allocations: 0.7982 MB / 313.3 MB, free: 7.066 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004591/0.1713, allocations: 0.9067 MB / 314.2 MB, free: 6.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.1713, allocations: 3.094 kB / 314.2 MB, free: 6.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0006348/0.1719, allocations: 0.8043 MB / 315 MB, free: 5.582 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.172, allocations: 42.61 kB / 315 MB, free: 5.535 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.172, allocations: 23.47 kB / 315 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001308/0.1721, allocations: 61.3 kB / 315.1 MB, free: 5.453 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004267/0.1725, allocations: 288.5 kB / 315.4 MB, free: 5.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007661/0.1733, allocations: 2.336 MB / 317.7 MB, free: 2.723 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005588/0.1738, allocations: 72.11 kB / 317.8 MB, free: 2.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.1739, allocations: 52 kB / 317.8 MB, free: 2.602 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002203/0.1741, allocations: 199.4 kB / 318 MB, free: 2.422 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.054e-05/0.1742, allocations: 87.84 kB / 318.1 MB, free: 2.336 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003004/0.1745, allocations: 335.3 kB / 318.4 MB, free: 1.992 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1745, allocations: 4 kB / 318.4 MB, free: 1.988 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.1745, allocations: 4 kB / 318.5 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1745, allocations: 3.984 kB / 318.5 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009633/0.1755, allocations: 1.014 MB / 319.5 MB, free: 1.035 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.1755, allocations: 4 kB / 319.5 MB, free: 1.031 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.1757, allocations: 115.3 kB / 319.6 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.953e-05/0.1758, allocations: 33.7 kB / 319.6 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.1758, allocations: 16 kB / 319.6 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007726/0.1766, allocations: 2.319 MB / 322 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1766, allocations: 4 kB / 322 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004602/0.177, allocations: 0.576 MB / 322.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/0.1772, allocations: 107.2 kB / 322.6 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.727e-05/0.1773, allocations: 16 kB / 322.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.1775, allocations: 27.98 kB / 322.7 MB, free: 13.64 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.473e-05/0.1776, allocations: 55.14 kB / 322.7 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.1776, allocations: 19.98 kB / 322.8 MB, free: 13.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003572/0.1779, allocations: 453.3 kB / 323.2 MB, free: 13.17 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1779, allocations: 4 kB / 323.2 MB, free: 13.16 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007729/0.1787, allocations: 300 kB / 323.5 MB, free: 12.87 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001711/0.1789, allocations: 123 kB / 323.6 MB, free: 12.76 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006388/0.1795, allocations: 0.7665 MB / 324.4 MB, free: 12.03 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-05/0.1796, allocations: 17.81 kB / 324.4 MB, free: 12.01 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002407/0.1798, allocations: 370 kB / 324.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007302/0.1805, allocations: 325.7 kB / 325.1 MB, free: 11.35 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002907/0.1834, allocations: 2.265 MB / 327.3 MB, free: 9.031 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.1836, allocations: 228.2 kB / 327.6 MB, free: 8.777 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003838/0.184, allocations: 158.1 kB / 327.7 MB, free: 8.621 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004344/0.1844, allocations: 321.1 kB / 328 MB, free: 8.309 MB / 282.7 MB Notification: Performance of SimCode: time 1.392e-06/0.1844, allocations: 0 / 328 MB, free: 8.309 MB / 282.7 MB Notification: Performance of Templates: time 0.02117/0.2056, allocations: 15.56 MB / 343.6 MB, free: 9.121 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.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.2555359029211104]