Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.001161/0.001161, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001106/0.001106, allocations: 146.2 kB / 24.89 MB, free: 8.785 MB / 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 0.9492/0.9492, allocations: 173.4 MB / 201.5 MB, free: 8.242 MB / 186.7 MB " [Timeout remaining time 179] 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_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 268.5 MB, free: 9.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.093e-05/1.195e-05, allocations: 5.266 kB / 268.5 MB, free: 9.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.006912/0.006924, allocations: 9.392 MB / 277.9 MB, free: 320 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003237/0.01016, allocations: 3.165 MB / 281.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004004/0.01056, allocations: 35.88 kB / 281.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009177/0.01148, allocations: 0.5781 MB / 281.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00073/0.01221, allocations: 0.6162 MB / 282.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000392/0.0126, allocations: 319.3 kB / 282.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001177/0.01378, allocations: 1.832 MB / 284.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004687/0.01425, allocations: 441.3 kB / 284.9 MB, free: 9.277 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008528/0.0151, allocations: 1.044 MB / 285.9 MB, free: 8.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005434/0.01564, allocations: 0.5686 MB / 286.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.01578, allocations: 156 kB / 286.7 MB, free: 7.508 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002387/0.01602, allocations: 192 kB / 286.9 MB, free: 7.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001613/0.01618, allocations: 338.7 kB / 287.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003718/0.01655, allocations: 0.5612 MB / 287.7 MB, free: 6.426 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.0176, allocations: 1.164 MB / 288.9 MB, free: 5.258 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.01761, allocations: 0 / 288.9 MB, free: 5.258 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.01761, allocations: 4 kB / 288.9 MB, free: 5.254 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.01762, allocations: 0 / 288.9 MB, free: 5.254 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002002/0.01962, allocations: 1.699 MB / 290.6 MB, free: 3.508 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.927e-05/0.01965, allocations: 12.03 kB / 290.6 MB, free: 3.496 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004658/0.02012, allocations: 248.6 kB / 290.9 MB, free: 3.254 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008547/0.02097, allocations: 0.5827 MB / 291.4 MB, free: 2.641 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.02109, allocations: 167.8 kB / 291.6 MB, free: 2.457 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.02122, allocations: 124.3 kB / 291.7 MB, free: 2.336 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.02231, allocations: 1.267 MB / 293 MB, free: 0.875 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.166e-05/0.02234, allocations: 7.891 kB / 293 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.256e-05/0.0224, allocations: 44 kB / 293.1 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.02242, allocations: 28 kB / 293.1 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004894/0.02291, allocations: 293.8 kB / 293.4 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00338/0.02629, allocations: 2.67 MB / 296 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006924/0.02699, allocations: 351.6 kB / 296.4 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.02714, allocations: 106.8 kB / 296.5 MB, free: 13.24 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.245e-05/0.02717, allocations: 20.42 kB / 296.5 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002531/0.02742, allocations: 215.9 kB / 296.7 MB, free: 13 MB / 282.7 MB Notification: Performance of pre-optimization done (n=62): time 2.103e-06/0.02743, allocations: 0 / 296.7 MB, free: 13 MB / 282.7 MB Notification: Performance of matching and sorting (n=65): time 0.001999/0.02942, allocations: 1.087 MB / 297.8 MB, free: 11.87 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001459/0.02957, allocations: 487.2 kB / 298.3 MB, free: 11.29 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007498/0.03032, allocations: 0.8422 MB / 299.1 MB, free: 10.42 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.03036, allocations: 37.7 kB / 299.2 MB, free: 10.38 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003017/0.03066, allocations: 0.5558 MB / 299.7 MB, free: 9.816 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.0308, allocations: 238 kB / 299.9 MB, free: 9.582 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002072/0.03101, allocations: 198.8 kB / 300.1 MB, free: 9.383 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.504e-05/0.03111, allocations: 353.8 kB / 300.5 MB, free: 9.031 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001615/0.03127, allocations: 138 kB / 300.6 MB, free: 8.883 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005274/0.0318, allocations: 1.005 MB / 301.6 MB, free: 7.559 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006025/0.0324, allocations: 0.6871 MB / 302.3 MB, free: 6.703 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.0324, allocations: 7.938 kB / 302.3 MB, free: 6.695 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0009113/0.03332, allocations: 0.7556 MB / 303.1 MB, free: 5.902 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.254e-05/0.03336, allocations: 71.39 kB / 303.1 MB, free: 5.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.03337, allocations: 12 kB / 303.2 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003363/0.03371, allocations: 140.5 kB / 303.3 MB, free: 5.668 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005336/0.03424, allocations: 227 kB / 303.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/0.03654, allocations: 3.013 MB / 306.5 MB, free: 2.266 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004743/0.03701, allocations: 56.06 kB / 306.6 MB, free: 2.211 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.981e-05/0.03706, allocations: 43.98 kB / 306.6 MB, free: 2.168 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002063/0.03727, allocations: 181.6 kB / 306.8 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.03737, allocations: 87.91 kB / 306.9 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005624/0.03794, allocations: 409.7 kB / 307.3 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.03794, allocations: 7.938 kB / 307.3 MB, free: 1.473 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.285e-06/0.03794, allocations: 0 / 307.3 MB, free: 1.473 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005273/0.03847, allocations: 0.67 MB / 308 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.03973, allocations: 0.9297 MB / 308.9 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.03973, allocations: 4 kB / 308.9 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003651/0.0401, allocations: 121.9 kB / 309 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002457/0.04034, allocations: 101.8 kB / 309.1 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.04037, allocations: 19.92 kB / 309.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001876/0.04225, allocations: 2.841 MB / 312 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.04225, allocations: 0 / 312 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006632/0.04292, allocations: 0.5883 MB / 312.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.04313, allocations: 107.2 kB / 312.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.056e-05/0.04322, allocations: 24.12 kB / 312.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003403/0.04356, allocations: 27.98 kB / 312.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.902e-05/0.04366, allocations: 56.39 kB / 312.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.04369, allocations: 15.94 kB / 312.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004055/0.0441, allocations: 410.8 kB / 313.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0441, allocations: 0 / 313.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007912/0.04489, allocations: 304 kB / 313.5 MB, free: 10.88 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * 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 (52): * Single equations (assignments): 48 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001618/0.04505, allocations: 124.2 kB / 313.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009151/0.04597, allocations: 0.888 MB / 314.5 MB, free: 9.801 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.211e-05/0.04599, allocations: 12.5 kB / 314.5 MB, free: 9.789 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004194/0.04641, allocations: 453.8 kB / 315 MB, free: 9.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008102/0.04722, allocations: 292.5 kB / 315.2 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002711/0.04993, allocations: 1.965 MB / 317.2 MB, free: 7.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/0.0501, allocations: 209.6 kB / 317.4 MB, free: 6.785 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003651/0.05046, allocations: 128.8 kB / 317.5 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006244/0.05109, allocations: 357.1 kB / 317.9 MB, free: 6.305 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.05109, allocations: 0 / 317.9 MB, free: 6.305 MB / 298.7 MB Notification: Performance of Templates: time 0.02579/0.07688, allocations: 18.51 MB / 336.4 MB, free: 4.148 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 5.077213726937771]