Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.001356/0.001356, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001505/0.001505, allocations: 161.4 kB / 24.56 MB, free: 20 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.027/1.027, allocations: 177.2 MB / 205 MB, free: 5.289 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_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.092e-05/3.306e-05, allocations: 2.312 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009631/0.009664, allocations: 7.156 MB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005324/0.01499, allocations: 2.337 MB / 282.5 MB, free: 7.832 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001029/0.01602, allocations: 19.94 kB / 282.5 MB, free: 7.812 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.01776, allocations: 480.8 kB / 283 MB, free: 7.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001372/0.01913, allocations: 424.7 kB / 283.4 MB, free: 6.922 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005869/0.01972, allocations: 207.7 kB / 283.6 MB, free: 6.719 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.02138, allocations: 1.249 MB / 284.8 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006786/0.02206, allocations: 324.4 kB / 285.2 MB, free: 5.121 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001281/0.02334, allocations: 0.7054 MB / 285.9 MB, free: 4.414 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007657/0.0241, allocations: 394.8 kB / 286.2 MB, free: 4.027 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002944/0.0244, allocations: 116 kB / 286.4 MB, free: 3.914 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004384/0.02483, allocations: 148 kB / 286.5 MB, free: 3.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.02503, allocations: 239.1 kB / 286.7 MB, free: 3.535 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005535/0.02558, allocations: 375.1 kB / 287.1 MB, free: 3.168 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001001/0.02658, allocations: 0.7783 MB / 287.9 MB, free: 2.387 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.02659, allocations: 0 / 287.9 MB, free: 2.387 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.02659, allocations: 0 / 287.9 MB, free: 2.387 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.379e-05/0.02661, allocations: 0 / 287.9 MB, free: 2.387 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.001662/0.02827, allocations: 1.305 MB / 289.2 MB, free: 1.043 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.02831, allocations: 12.03 kB / 289.2 MB, free: 1.031 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003988/0.02871, allocations: 204.2 kB / 289.4 MB, free: 0.832 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007616/0.02947, allocations: 0.5948 MB / 290 MB, free: 212 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.267e-05/0.02952, allocations: 58.38 kB / 290 MB, free: 156 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.554e-05/0.02961, allocations: 80.38 kB / 290.1 MB, free: 76 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1352/0.1648, allocations: 0.6553 MB / 290.8 MB, free: 24.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.053e-05/0.1648, allocations: 9.234 kB / 290.8 MB, free: 24.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.755e-05/0.1649, allocations: 32.44 kB / 290.8 MB, free: 24.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.1649, allocations: 21.31 kB / 290.8 MB, free: 24.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006478/0.1655, allocations: 283.9 kB / 291.1 MB, free: 24.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003036/0.1686, allocations: 3.251 MB / 294.4 MB, free: 22.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003596/0.1689, allocations: 158.1 kB / 294.5 MB, free: 22.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.169, allocations: 62.67 kB / 294.6 MB, free: 22.92 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.169, allocations: 5.406 kB / 294.6 MB, free: 22.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.1691, allocations: 39.44 kB / 294.6 MB, free: 22.88 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 2.454e-06/0.1691, allocations: 0.9375 kB / 294.6 MB, free: 22.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.00133/0.1704, allocations: 0.7209 MB / 295.4 MB, free: 22.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.1704, allocations: 85.3 kB / 295.4 MB, free: 22.44 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007359/0.1712, allocations: 0.6836 MB / 296.1 MB, free: 22.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.1712, allocations: 30.23 kB / 296.1 MB, free: 22.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002762/0.1715, allocations: 0.5699 MB / 296.7 MB, free: 21.87 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.096e-05/0.1715, allocations: 107.7 kB / 296.8 MB, free: 21.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.1717, allocations: 119.3 kB / 296.9 MB, free: 21.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1718, allocations: 0.5531 MB / 297.5 MB, free: 21.28 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.1719, allocations: 61.78 kB / 297.6 MB, free: 21.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.1722, allocations: 0.501 MB / 298.1 MB, free: 20.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.1726, allocations: 0.5821 MB / 298.6 MB, free: 20.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.1726, allocations: 2.281 kB / 298.6 MB, free: 20.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006576/0.1733, allocations: 0.5168 MB / 299.2 MB, free: 20 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.1733, allocations: 9.344 kB / 299.2 MB, free: 20 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.1733, allocations: 11.14 kB / 299.2 MB, free: 20 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.1735, allocations: 31.42 kB / 299.2 MB, free: 19.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/0.1737, allocations: 135.2 kB / 299.3 MB, free: 19.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006511/0.1744, allocations: 1.748 MB / 301.1 MB, free: 18.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.1747, allocations: 29.33 kB / 301.1 MB, free: 18.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.1747, allocations: 34.3 kB / 301.1 MB, free: 18.21 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001625/0.1749, allocations: 200.3 kB / 301.3 MB, free: 18.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.328e-05/0.1749, allocations: 78.81 kB / 301.4 MB, free: 17.98 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003175/0.1752, allocations: 232 kB / 301.6 MB, free: 17.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.1752, allocations: 9.469 kB / 301.7 MB, free: 17.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.1753, allocations: 0 / 301.7 MB, free: 17.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.1753, allocations: 2.422 kB / 301.7 MB, free: 17.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.1763, allocations: 0.9144 MB / 302.6 MB, free: 17.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.1764, allocations: 2.375 kB / 302.6 MB, free: 17.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.1765, allocations: 54.3 kB / 302.6 MB, free: 17.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.423e-05/0.1766, allocations: 25.05 kB / 302.7 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.1766, allocations: 8.719 kB / 302.7 MB, free: 17.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004523/0.177, allocations: 1.734 MB / 304.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.177, allocations: 1.25 kB / 304.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004091/0.1775, allocations: 0.4912 MB / 304.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.1776, allocations: 92.3 kB / 305 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.866e-05/0.1776, allocations: 8.375 kB / 305 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.1778, allocations: 18.8 kB / 305 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.6e-05/0.1778, allocations: 28.52 kB / 305 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.1778, allocations: 10.78 kB / 305 MB, free: 15.01 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004202/0.1783, allocations: 434.1 kB / 305.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1783, allocations: 0 / 305.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005418/0.1788, allocations: 160.1 kB / 305.6 MB, free: 14.8 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0002017/0.179, allocations: 124.9 kB / 305.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005572/0.1796, allocations: 435.1 kB / 306.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.1796, allocations: 1.438 kB / 306.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001689/0.1797, allocations: 250.9 kB / 306.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005619/0.1803, allocations: 175.8 kB / 306.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.1825, allocations: 1.342 MB / 307.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001186/0.1826, allocations: 148.1 kB / 308.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002576/0.1828, allocations: 86.23 kB / 308.2 MB, free: 13.24 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.557e-05/0.1829, allocations: 45.06 kB / 308.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of SimCode: time 1.172e-06/0.1829, allocations: 0 / 308.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of Templates: time 0.01241/0.1953, allocations: 8.01 MB / 316.2 MB, free: 8.5 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.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.305948313791305]