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.0009697/0.0009697, allocations: 76.08 kB / 21.18 MB, free: 3.383 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.0009465/0.0009465, allocations: 141.1 kB / 24.54 MB, free: 28 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 0.9056/0.9056, allocations: 173.3 MB / 201.1 MB, free: 9.336 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.563e-06/1.563e-06, allocations: 0 / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.826e-05, allocations: 6.25 kB / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.008425/0.008454, allocations: 9.584 MB / 277.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004606/0.01306, allocations: 3.057 MB / 280.7 MB, free: 9.707 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006807/0.01374, allocations: 35.81 kB / 280.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.01507, allocations: 0.5664 MB / 281.3 MB, free: 9.102 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009684/0.01604, allocations: 0.6084 MB / 281.9 MB, free: 8.488 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004826/0.01652, allocations: 327.4 kB / 282.2 MB, free: 8.168 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.01786, allocations: 1.832 MB / 284 MB, free: 6.328 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000582/0.01844, allocations: 425.3 kB / 284.4 MB, free: 5.887 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.0195, allocations: 1.048 MB / 285.5 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006675/0.02017, allocations: 0.5609 MB / 286 MB, free: 4.273 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001521/0.02032, allocations: 156 kB / 286.2 MB, free: 4.121 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.02056, allocations: 192 kB / 286.4 MB, free: 3.934 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.02072, allocations: 338.7 kB / 286.7 MB, free: 3.602 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004068/0.02113, allocations: 0.5651 MB / 287.3 MB, free: 3.035 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009608/0.02209, allocations: 1.164 MB / 288.4 MB, free: 1.867 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.02209, allocations: 0 / 288.4 MB, free: 1.867 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.0221, allocations: 0 / 288.4 MB, free: 1.867 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.02211, allocations: 0 / 288.4 MB, free: 1.867 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.1115/0.1336, allocations: 1.849 MB / 290.3 MB, free: 28.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1337, allocations: 12.47 kB / 290.3 MB, free: 28.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006159/0.1343, allocations: 291.8 kB / 290.6 MB, free: 28.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.1354, allocations: 0.7413 MB / 291.3 MB, free: 27.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.1355, allocations: 166.8 kB / 291.5 MB, free: 27.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.1357, allocations: 122.4 kB / 291.6 MB, free: 27.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1369, allocations: 1.362 MB / 293 MB, free: 27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.281e-05/0.137, allocations: 3.906 kB / 293 MB, free: 27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-05/0.137, allocations: 47.09 kB / 293 MB, free: 27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.137, allocations: 31.3 kB / 293.1 MB, free: 27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007492/0.1378, allocations: 424.9 kB / 293.5 MB, free: 26.99 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003756/0.1416, allocations: 3.326 MB / 296.8 MB, free: 25.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008496/0.1424, allocations: 411.6 kB / 297.2 MB, free: 25.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.1426, allocations: 147 kB / 297.3 MB, free: 25.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.842e-05/0.1427, allocations: 12.44 kB / 297.4 MB, free: 25.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003292/0.143, allocations: 244.5 kB / 297.6 MB, free: 25.45 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 3.306e-06/0.143, allocations: 0 / 297.6 MB, free: 25.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.002517/0.1455, allocations: 1.448 MB / 299 MB, free: 24.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.229e-05/0.1456, allocations: 478.9 kB / 299.5 MB, free: 24.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009692/0.1466, allocations: 0.9504 MB / 300.5 MB, free: 23.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.1466, allocations: 39.73 kB / 300.5 MB, free: 23.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003295/0.1469, allocations: 0.7291 MB / 301.2 MB, free: 23.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.147, allocations: 247 kB / 301.5 MB, free: 23.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001835/0.1472, allocations: 205.3 kB / 301.7 MB, free: 22.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.089e-05/0.1473, allocations: 0.51 MB / 302.2 MB, free: 22.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.1475, allocations: 182.2 kB / 302.4 MB, free: 22.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004857/0.148, allocations: 1.226 MB / 303.6 MB, free: 20.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006737/0.1487, allocations: 0.8773 MB / 304.5 MB, free: 20.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.1487, allocations: 3.906 kB / 304.5 MB, free: 20.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001196/0.1499, allocations: 0.9983 MB / 305.5 MB, free: 19.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.15, allocations: 65.38 kB / 305.5 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.15, allocations: 15.75 kB / 305.5 MB, free: 19.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003862/0.1504, allocations: 149.8 kB / 305.7 MB, free: 19.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003897/0.1507, allocations: 196.2 kB / 305.9 MB, free: 19.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002228/0.153, allocations: 4.37 MB / 310.2 MB, free: 15.63 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005714/0.1535, allocations: 64.06 kB / 310.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.193e-05/0.1536, allocations: 45.64 kB / 310.4 MB, free: 15.6 MB / 266.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 {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002755/0.1539, allocations: 227.9 kB / 310.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.154, allocations: 139.4 kB / 310.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006654/0.1546, allocations: 0.5128 MB / 311.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1546, allocations: 10.86 kB / 311.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.1546, allocations: 2.188 kB / 311.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005074/0.1552, allocations: 0.7797 MB / 312 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001555/0.1567, allocations: 1.416 MB / 313.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.1567, allocations: 2.875 kB / 313.4 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002486/0.157, allocations: 101.5 kB / 313.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002486/0.1572, allocations: 117.8 kB / 313.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.1572, allocations: 12.78 kB / 313.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/0.1588, allocations: 4.182 MB / 317.8 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.1588, allocations: 4 kB / 317.8 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007281/0.1595, allocations: 0.8264 MB / 318.7 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.1598, allocations: 163.2 kB / 318.8 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.942e-05/0.1598, allocations: 16 kB / 318.9 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000279/0.1601, allocations: 32.05 kB / 318.9 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.1602, allocations: 65.16 kB / 318.9 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.1603, allocations: 20 kB / 319 MB, free: 8.211 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004208/0.1607, allocations: 0.5719 MB / 319.5 MB, free: 7.629 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1607, allocations: 4 kB / 319.5 MB, free: 7.625 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007191/0.1614, allocations: 300 kB / 319.8 MB, free: 7.332 MB / 266.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.0001987/0.1616, allocations: 135.1 kB / 320 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.1626, allocations: 1.076 MB / 321 MB, free: 6.047 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1626, allocations: 0 / 321 MB, free: 6.047 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003783/0.163, allocations: 0.578 MB / 321.6 MB, free: 5.434 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007577/0.1637, allocations: 300.6 kB / 321.9 MB, free: 5.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.1661, allocations: 2.05 MB / 324 MB, free: 3.055 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001141/0.1663, allocations: 205.7 kB / 324.2 MB, free: 2.824 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003098/0.1666, allocations: 128.6 kB / 324.3 MB, free: 2.695 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.1667, allocations: 72.5 kB / 324.4 MB, free: 2.625 MB / 266.7 MB Notification: Performance of SimCode: time 1.312e-06/0.1667, allocations: 0 / 324.4 MB, free: 2.625 MB / 266.7 MB Notification: Performance of Templates: time 0.02255/0.1892, allocations: 18.15 MB / 342.5 MB, free: 0.8438 MB / 282.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.5213153208605945]