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.0009027/0.0009027, 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.0008889/0.0008889, allocations: 147 kB / 24.89 MB, free: 8.773 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.8763/0.8763, allocations: 173.4 MB / 201.5 MB, free: 8.273 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 3.476e-06/3.476e-06, allocations: 4 kB / 268.5 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.166e-05/1.514e-05, allocations: 5.266 kB / 268.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007077/0.007092, allocations: 9.354 MB / 277.9 MB, free: 408 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005135/0.01223, allocations: 3.157 MB / 281 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006622/0.01289, allocations: 31.88 kB / 281 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001252/0.01414, allocations: 0.5742 MB / 281.6 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001244/0.01539, allocations: 0.6122 MB / 282.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005629/0.01595, allocations: 331.4 kB / 282.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001731/0.01768, allocations: 1.832 MB / 284.4 MB, free: 9.852 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000604/0.01828, allocations: 437.2 kB / 284.8 MB, free: 9.387 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001277/0.01956, allocations: 1.048 MB / 285.9 MB, free: 8.336 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007584/0.02032, allocations: 0.5648 MB / 286.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001917/0.02051, allocations: 156 kB / 286.6 MB, free: 7.617 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002971/0.02081, allocations: 192 kB / 286.8 MB, free: 7.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002131/0.02102, allocations: 334.7 kB / 287.1 MB, free: 7.102 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005319/0.02155, allocations: 0.569 MB / 287.7 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001199/0.02275, allocations: 1.156 MB / 288.8 MB, free: 5.371 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.02275, allocations: 4 kB / 288.8 MB, free: 5.367 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.02275, allocations: 0 / 288.8 MB, free: 5.367 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.02277, allocations: 0 / 288.8 MB, free: 5.367 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.002122/0.02489, allocations: 1.707 MB / 290.5 MB, free: 3.613 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.02493, allocations: 8.031 kB / 290.5 MB, free: 3.605 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004668/0.02539, allocations: 248.7 kB / 290.8 MB, free: 3.363 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008868/0.02628, allocations: 0.5749 MB / 291.4 MB, free: 2.758 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.0264, allocations: 167.8 kB / 291.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.02654, allocations: 116.3 kB / 291.6 MB, free: 2.461 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.02763, allocations: 1.265 MB / 292.9 MB, free: 1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/0.02766, allocations: 11.83 kB / 292.9 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.81e-05/0.02773, allocations: 48 kB / 293 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.251e-05/0.02775, allocations: 28 kB / 293 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004874/0.02824, allocations: 293.8 kB / 293.3 MB, free: 0.625 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003467/0.0317, allocations: 2.678 MB / 295.9 MB, free: 13.81 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.03275, allocations: 339.6 kB / 296.3 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002559/0.033, allocations: 121.1 kB / 296.4 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.03304, allocations: 16.38 kB / 296.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002487/0.03329, allocations: 215.9 kB / 296.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of pre-optimization done (n=62): time 2.114e-06/0.03329, allocations: 4 kB / 296.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of matching and sorting (n=65): time 0.002007/0.0353, allocations: 1.087 MB / 297.7 MB, free: 11.98 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/0.03545, allocations: 479.3 kB / 298.2 MB, free: 11.4 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007488/0.03619, allocations: 0.8422 MB / 299 MB, free: 10.54 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.03623, allocations: 41.7 kB / 299.1 MB, free: 10.49 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000308/0.03654, allocations: 0.5519 MB / 299.6 MB, free: 9.934 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003883/0.03693, allocations: 242 kB / 299.9 MB, free: 9.695 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002064/0.03714, allocations: 198.7 kB / 300 MB, free: 9.496 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.592e-05/0.03723, allocations: 349.9 kB / 300.4 MB, free: 9.148 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.0374, allocations: 141.9 kB / 300.5 MB, free: 8.996 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005222/0.03792, allocations: 1.001 MB / 301.5 MB, free: 7.676 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005948/0.03851, allocations: 0.6871 MB / 302.2 MB, free: 6.82 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.03852, allocations: 4 kB / 302.2 MB, free: 6.816 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.000902/0.03942, allocations: 0.7594 MB / 303 MB, free: 6.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.651e-05/0.03947, allocations: 71.39 kB / 303 MB, free: 5.938 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.03948, allocations: 12 kB / 303.1 MB, free: 5.926 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000338/0.03982, allocations: 136.7 kB / 303.2 MB, free: 5.789 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004629/0.04028, allocations: 203.7 kB / 303.4 MB, free: 5.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/0.04258, allocations: 3.011 MB / 306.4 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000471/0.04305, allocations: 56.06 kB / 306.5 MB, free: 2.355 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.0431, allocations: 43.98 kB / 306.5 MB, free: 2.312 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.0004265/0.04352, allocations: 185.5 kB / 306.7 MB, free: 2.121 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.04363, allocations: 87.91 kB / 306.8 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000557/0.04419, allocations: 409.7 kB / 307.2 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.04419, allocations: 4 kB / 307.2 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.04419, allocations: 0 / 307.2 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005487/0.04474, allocations: 0.6661 MB / 307.8 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.04601, allocations: 0.9374 MB / 308.8 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.04601, allocations: 4 kB / 308.8 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.04632, allocations: 99.83 kB / 308.9 MB, free: 15.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000241/0.04656, allocations: 105.8 kB / 309 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.04658, allocations: 12 kB / 309 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001815/0.0484, allocations: 2.835 MB / 311.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.0484, allocations: 0 / 311.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006582/0.04906, allocations: 0.5806 MB / 312.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.04928, allocations: 107.2 kB / 312.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.392e-05/0.04937, allocations: 20 kB / 312.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003452/0.04972, allocations: 35.91 kB / 312.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.64e-05/0.0498, allocations: 60.36 kB / 312.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.04983, allocations: 16 kB / 312.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004027/0.05023, allocations: 410.8 kB / 313 MB, free: 11.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05023, allocations: 0 / 313 MB, free: 11.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007966/0.05103, allocations: 304 kB / 313.3 MB, free: 11.05 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.0001746/0.0512, allocations: 132.2 kB / 313.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.05231, allocations: 0.8723 MB / 314.3 MB, free: 9.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.222e-05/0.05233, allocations: 12.5 kB / 314.4 MB, free: 9.969 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004082/0.05274, allocations: 458.1 kB / 314.8 MB, free: 9.496 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008215/0.05356, allocations: 296.1 kB / 315.1 MB, free: 9.207 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.05626, allocations: 1.956 MB / 317 MB, free: 7.188 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.05642, allocations: 201.7 kB / 317.2 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003389/0.05676, allocations: 128.6 kB / 317.4 MB, free: 6.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000599/0.05736, allocations: 357.1 kB / 317.7 MB, free: 6.488 MB / 298.7 MB Notification: Performance of SimCode: time 6.51e-07/0.05736, allocations: 0 / 317.7 MB, free: 6.488 MB / 298.7 MB Notification: Performance of Templates: time 0.02274/0.0801, allocations: 18.35 MB / 336.1 MB, free: 4.5 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 -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.089119420386851]