Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001437/0.001437, allocations: 84.34 kB / 20.96 MB, free: 3.449 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.001525/0.001525, allocations: 165.3 kB / 24.27 MB, free: 144 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 1.509/1.509, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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_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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.341e-05/2.528e-05, allocations: 2.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01398/0.014, allocations: 10.25 MB / 282.6 MB, free: 7.512 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00625/0.02025, allocations: 3.09 MB / 285.7 MB, free: 4.414 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007056/0.02096, allocations: 39.81 kB / 285.7 MB, free: 4.375 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.02251, allocations: 0.6284 MB / 286.3 MB, free: 3.742 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001573/0.02409, allocations: 0.7597 MB / 287.1 MB, free: 2.977 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007739/0.02486, allocations: 403.4 kB / 287.5 MB, free: 2.582 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002681/0.02754, allocations: 2.342 MB / 289.8 MB, free: 240 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1102/0.1378, allocations: 0.6071 MB / 290.4 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002319/0.1401, allocations: 1.307 MB / 291.7 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008661/0.141, allocations: 0.6535 MB / 292.4 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002632/0.1412, allocations: 218.5 kB / 292.6 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004372/0.1417, allocations: 253.3 kB / 292.9 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002593/0.1419, allocations: 439.4 kB / 293.3 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006972/0.1426, allocations: 0.6982 MB / 294 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002831/0.1454, allocations: 2.685 MB / 296.7 MB, free: 16.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1454, allocations: 0.5625 kB / 296.7 MB, free: 16.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1454, allocations: 0 / 296.7 MB, free: 16.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.716e-05/0.1455, allocations: 0.8438 kB / 296.7 MB, free: 16.05 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.003265/0.1488, allocations: 2.03 MB / 298.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.1488, allocations: 8.312 kB / 298.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009168/0.1497, allocations: 387.2 kB / 299.1 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/0.1513, allocations: 1.003 MB / 300.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.029e-05/0.1514, allocations: 113.7 kB / 300.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002201/0.1516, allocations: 159.6 kB / 300.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002257/0.1539, allocations: 1.589 MB / 301.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.774e-05/0.1539, allocations: 10.12 kB / 302 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/0.1541, allocations: 71.06 kB / 302 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.997e-05/0.1541, allocations: 38.5 kB / 302.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.1557, allocations: 0.9688 MB / 303 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005666/0.1614, allocations: 5.817 MB / 308.8 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006707/0.1621, allocations: 375.7 kB / 309.2 MB, free: 8.609 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000373/0.1625, allocations: 195.2 kB / 309.4 MB, free: 8.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.1625, allocations: 14.39 kB / 309.4 MB, free: 8.516 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004342/0.1629, allocations: 326.2 kB / 309.7 MB, free: 8.258 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.863e-06/0.1629, allocations: 0 / 309.7 MB, free: 8.258 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.00273/0.1656, allocations: 1.555 MB / 311.3 MB, free: 7.316 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.1657, allocations: 164.7 kB / 311.5 MB, free: 7.125 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001156/0.1668, allocations: 1.114 MB / 312.6 MB, free: 6.484 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.159e-05/0.1669, allocations: 36.83 kB / 312.6 MB, free: 6.445 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003834/0.1673, allocations: 0.8987 MB / 313.5 MB, free: 5.652 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.1674, allocations: 214.2 kB / 313.7 MB, free: 5.473 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/0.1676, allocations: 220.1 kB / 313.9 MB, free: 5.336 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.323e-05/0.1677, allocations: 352.2 kB / 314.3 MB, free: 4.996 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000385/0.168, allocations: 253.9 kB / 314.5 MB, free: 4.859 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005917/0.1686, allocations: 0.9273 MB / 315.4 MB, free: 3.828 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009837/0.1696, allocations: 1.128 MB / 316.6 MB, free: 2.727 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.1696, allocations: 4 kB / 316.6 MB, free: 2.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001524/0.1711, allocations: 1.247 MB / 317.8 MB, free: 1.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.1712, allocations: 45.83 kB / 317.9 MB, free: 1.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.1712, allocations: 24 kB / 317.9 MB, free: 1.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002447/0.1714, allocations: 61.7 kB / 318 MB, free: 1.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006946/0.1721, allocations: 266 kB / 318.2 MB, free: 1.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001959/0.1741, allocations: 2.523 MB / 320.7 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009328/0.175, allocations: 72.17 kB / 320.8 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.1751, allocations: 60 kB / 320.9 MB, free: 14.36 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.000739/0.1759, allocations: 358.9 kB / 321.2 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000205/0.1761, allocations: 139.2 kB / 321.4 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.1772, allocations: 0.5411 MB / 321.9 MB, free: 13.33 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.1772, allocations: 4 kB / 321.9 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1772, allocations: 4 kB / 321.9 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.1773, allocations: 6.797 kB / 321.9 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/0.18, allocations: 1.547 MB / 323.5 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.18, allocations: 4 kB / 323.5 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000461/0.1805, allocations: 102.9 kB / 323.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001679/0.1806, allocations: 49.62 kB / 323.6 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.494e-05/0.1807, allocations: 12 kB / 323.6 MB, free: 11.56 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002324/0.183, allocations: 2.499 MB / 326.1 MB, free: 8.879 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.183, allocations: 4 kB / 326.1 MB, free: 8.875 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.1848, allocations: 0.9284 MB / 327 MB, free: 7.891 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003785/0.1851, allocations: 159.2 kB / 327.2 MB, free: 7.734 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.1853, allocations: 16 kB / 327.2 MB, free: 7.719 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005137/0.1858, allocations: 31.97 kB / 327.3 MB, free: 7.688 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.1859, allocations: 59.33 kB / 327.3 MB, free: 7.633 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.111e-05/0.186, allocations: 22.94 kB / 327.3 MB, free: 7.613 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001217/0.1872, allocations: 0.7194 MB / 328.1 MB, free: 6.891 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1872, allocations: 4 kB / 328.1 MB, free: 6.887 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00117/0.1884, allocations: 300 kB / 328.3 MB, free: 6.594 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.0002598/0.1886, allocations: 126.9 kB / 328.5 MB, free: 6.465 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.1902, allocations: 0.9284 MB / 329.4 MB, free: 5.559 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1902, allocations: 4.25 kB / 329.4 MB, free: 5.555 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007248/0.191, allocations: 453.7 kB / 329.8 MB, free: 5.102 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.1924, allocations: 313.2 kB / 330.2 MB, free: 4.828 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004254/0.1966, allocations: 2.45 MB / 332.6 MB, free: 2.305 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007536/0.1974, allocations: 0.5922 MB / 333.2 MB, free: 1.676 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005154/0.1979, allocations: 154.1 kB / 333.3 MB, free: 1.523 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.1981, allocations: 76.5 kB / 333.4 MB, free: 1.445 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1981, allocations: 2.297 kB / 333.4 MB, free: 1.445 MB / 282.7 MB Notification: Performance of Templates: time 0.02838/0.2265, allocations: 14.39 MB / 347.8 MB, free: 3.41 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.05837503192015]