Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001786/0.001786, allocations: 91.86 kB / 20.96 MB, free: 3.465 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.001811/0.001811, allocations: 149.1 kB / 24.26 MB, free: 168 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 1.516/1.516, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] 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_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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.671e-05/2.785e-05, allocations: 6.25 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01566/0.01569, allocations: 11.62 MB / 278.9 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006706/0.0224, allocations: 3.176 MB / 282.1 MB, free: 7.883 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002427/0.02483, allocations: 43.81 kB / 282.2 MB, free: 7.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002118/0.02694, allocations: 0.6205 MB / 282.8 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002399/0.02934, allocations: 0.7597 MB / 283.5 MB, free: 6.449 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009175/0.03026, allocations: 399.4 kB / 283.9 MB, free: 6.059 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003185/0.03344, allocations: 2.334 MB / 286.3 MB, free: 3.715 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.03454, allocations: 0.6068 MB / 286.9 MB, free: 3.055 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002002/0.03654, allocations: 1.321 MB / 288.2 MB, free: 1.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.03768, allocations: 0.7089 MB / 288.9 MB, free: 1.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000303/0.03798, allocations: 220 kB / 289.1 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005102/0.03849, allocations: 255.9 kB / 289.4 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004205/0.03891, allocations: 446.3 kB / 289.8 MB, free: 120 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1113/0.1502, allocations: 0.6934 MB / 290.5 MB, free: 19.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003216/0.1534, allocations: 2.695 MB / 293.2 MB, free: 19.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1534, allocations: 0 / 293.2 MB, free: 19.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1534, allocations: 0 / 293.2 MB, free: 19.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.283e-05/0.1535, allocations: 0.8438 kB / 293.2 MB, free: 19.01 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.003577/0.157, allocations: 2.308 MB / 295.5 MB, free: 17.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.1571, allocations: 11.81 kB / 295.5 MB, free: 17.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009265/0.158, allocations: 383.4 kB / 295.9 MB, free: 17.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001562/0.1596, allocations: 1.026 MB / 296.9 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.379e-05/0.1596, allocations: 116.2 kB / 297 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002051/0.1598, allocations: 157.6 kB / 297.2 MB, free: 17.47 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.1622, allocations: 1.727 MB / 298.9 MB, free: 17.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.159e-05/0.1622, allocations: 7.516 kB / 298.9 MB, free: 17.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.1624, allocations: 70.81 kB / 299 MB, free: 17.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.213e-05/0.1624, allocations: 37.53 kB / 299 MB, free: 17.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001644/0.164, allocations: 0.9369 MB / 300 MB, free: 16.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007249/0.1713, allocations: 7.895 MB / 307.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006366/0.1719, allocations: 385.3 kB / 308.2 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003384/0.1723, allocations: 202.4 kB / 308.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.892e-05/0.1723, allocations: 8.5 kB / 308.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004176/0.1727, allocations: 348 kB / 308.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.563e-06/0.1727, allocations: 4 kB / 308.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002663/0.1754, allocations: 1.548 MB / 310.3 MB, free: 10.03 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.1754, allocations: 165.4 kB / 310.5 MB, free: 9.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001316/0.1767, allocations: 1.443 MB / 311.9 MB, free: 9.012 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.1768, allocations: 33.7 kB / 312 MB, free: 8.973 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004831/0.1773, allocations: 1.028 MB / 313 MB, free: 8.086 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.1774, allocations: 226.3 kB / 313.2 MB, free: 7.902 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002583/0.1776, allocations: 268.7 kB / 313.5 MB, free: 7.734 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1777, allocations: 0.5601 MB / 314 MB, free: 7.199 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003626/0.1781, allocations: 251.1 kB / 314.3 MB, free: 7.074 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000637/0.1787, allocations: 1.215 MB / 315.5 MB, free: 5.676 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009687/0.1797, allocations: 1.388 MB / 316.9 MB, free: 4.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.1797, allocations: 6.875 kB / 316.9 MB, free: 4.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001491/0.1812, allocations: 1.237 MB / 318.1 MB, free: 3.797 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.1812, allocations: 39.8 kB / 318.2 MB, free: 3.766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.1813, allocations: 20.47 kB / 318.2 MB, free: 3.766 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000208/0.1815, allocations: 74.47 kB / 318.3 MB, free: 3.691 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006617/0.1821, allocations: 264 kB / 318.5 MB, free: 3.453 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/0.1836, allocations: 3.572 MB / 322.1 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008614/0.1845, allocations: 55.94 kB / 322.1 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.848e-05/0.1846, allocations: 64.16 kB / 322.2 MB, free: 15.54 MB / 282.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.0006354/0.1852, allocations: 414 kB / 322.6 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.1854, allocations: 139.2 kB / 322.7 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/0.1865, allocations: 0.5284 MB / 323.3 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.1865, allocations: 6.484 kB / 323.3 MB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.1865, allocations: 4 kB / 323.3 MB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.1865, allocations: 7.922 kB / 323.3 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003412/0.1899, allocations: 2.034 MB / 325.3 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.1899, allocations: 4 kB / 325.3 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00044/0.1904, allocations: 101.1 kB / 325.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001735/0.1905, allocations: 55.28 kB / 325.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.912e-05/0.1906, allocations: 16 kB / 325.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002849/0.1934, allocations: 3.546 MB / 329 MB, free: 8.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.1934, allocations: 10.16 kB / 329.1 MB, free: 8.402 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.195, allocations: 1.021 MB / 330.1 MB, free: 7.309 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003869/0.1954, allocations: 163.1 kB / 330.2 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.1955, allocations: 20.64 kB / 330.3 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000461/0.196, allocations: 23.98 kB / 330.3 MB, free: 7.105 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.1961, allocations: 55.52 kB / 330.3 MB, free: 7.055 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.792e-05/0.1962, allocations: 20 kB / 330.4 MB, free: 7.035 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001262/0.1974, allocations: 0.841 MB / 331.2 MB, free: 6.188 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1974, allocations: 0 / 331.2 MB, free: 6.188 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001207/0.1986, allocations: 304 kB / 331.5 MB, free: 5.891 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.0002433/0.1989, allocations: 131.7 kB / 331.6 MB, free: 5.762 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001802/0.2007, allocations: 1.109 MB / 332.7 MB, free: 4.656 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.2007, allocations: 0 / 332.7 MB, free: 4.656 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007789/0.2015, allocations: 0.5666 MB / 333.3 MB, free: 4.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001448/0.2029, allocations: 314.9 kB / 333.6 MB, free: 3.777 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004363/0.2073, allocations: 2.504 MB / 336.1 MB, free: 1.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007349/0.208, allocations: 0.5922 MB / 336.7 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004915/0.2085, allocations: 150.1 kB / 336.8 MB, free: 408 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.2087, allocations: 83.45 kB / 336.9 MB, free: 328 kB / 282.7 MB Notification: Performance of SimCode: time 7.52e-07/0.2087, allocations: 4 kB / 336.9 MB, free: 324 kB / 282.7 MB Notification: Performance of Templates: time 0.02976/0.2385, allocations: 14.36 MB / 351.3 MB, free: 2.277 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.292088121059351]