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.001037/0.001037, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001468/0.002505, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009315/0.0009315, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001323/0.002255, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8534/0.8534, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1418/0.9952, allocations: 52.48 MB / 238.5 MB, free: 7.652 MB / 234.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.433e-06/1.433e-06, allocations: 0 / 239.8 MB, free: 6.371 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.936e-05/2.079e-05, allocations: 6.312 kB / 239.8 MB, free: 6.363 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01577/0.01579, allocations: 9.443 MB / 249.2 MB, free: 12.89 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.02711, allocations: 3.191 MB / 252.4 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009312/0.02805, allocations: 35.81 kB / 252.4 MB, free: 9.68 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004326/0.03237, allocations: 0.5742 MB / 253 MB, free: 9.102 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001262/0.03363, allocations: 0.62 MB / 253.6 MB, free: 8.477 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000507/0.03414, allocations: 323.4 kB / 253.9 MB, free: 8.16 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00141/0.03555, allocations: 1.836 MB / 255.8 MB, free: 6.316 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005585/0.03611, allocations: 441.3 kB / 256.2 MB, free: 5.844 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001361/0.03747, allocations: 1.22 MB / 257.4 MB, free: 4.609 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007199/0.03819, allocations: 0.5647 MB / 258 MB, free: 4.043 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001922/0.03838, allocations: 156 kB / 258.1 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003181/0.0387, allocations: 200 kB / 258.3 MB, free: 3.695 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.03885, allocations: 247.1 kB / 258.6 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000388/0.03924, allocations: 479.1 kB / 259.1 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.04033, allocations: 1.09 MB / 260.1 MB, free: 1.891 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.13e-05/0.04034, allocations: 0 / 260.1 MB, free: 1.891 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.04034, allocations: 0 / 260.1 MB, free: 1.891 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.666e-05/0.04038, allocations: 0 / 260.1 MB, free: 1.891 MB / 250.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.002003/0.04238, allocations: 2.015 MB / 262.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.04242, allocations: 12.03 kB / 262.2 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004008/0.04282, allocations: 317.8 kB / 262.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007522/0.04357, allocations: 0.5826 MB / 263.1 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.937e-05/0.04367, allocations: 163.8 kB / 263.2 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.401e-05/0.04376, allocations: 120.3 kB / 263.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008536/0.04462, allocations: 1.265 MB / 264.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/0.04464, allocations: 11.88 kB / 264.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.849e-05/0.04469, allocations: 59.88 kB / 264.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.04471, allocations: 32 kB / 264.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003617/0.04507, allocations: 285.8 kB / 265 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.04789, allocations: 2.69 MB / 267.7 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000528/0.04841, allocations: 330.8 kB / 268 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.04853, allocations: 106.8 kB / 268.1 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.363e-05/0.04856, allocations: 20.44 kB / 268.1 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/0.04876, allocations: 215.8 kB / 268.3 MB, free: 9.215 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.124e-06/0.04876, allocations: 0 / 268.3 MB, free: 9.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.001607/0.05037, allocations: 1.11 MB / 269.4 MB, free: 8.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.162e-05/0.0504, allocations: 68.06 kB / 269.5 MB, free: 7.992 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005354/0.05094, allocations: 0.8422 MB / 270.4 MB, free: 7.129 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.05097, allocations: 37.7 kB / 270.4 MB, free: 7.086 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.0512, allocations: 0.5519 MB / 270.9 MB, free: 6.527 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.05131, allocations: 242 kB / 271.2 MB, free: 6.289 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.05146, allocations: 202.7 kB / 271.4 MB, free: 6.082 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.669e-05/0.05153, allocations: 345.9 kB / 271.7 MB, free: 5.738 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.05165, allocations: 142 kB / 271.9 MB, free: 5.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004445/0.05209, allocations: 1.005 MB / 272.9 MB, free: 4.262 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004836/0.05258, allocations: 0.7306 MB / 273.6 MB, free: 3.363 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.05258, allocations: 8 kB / 273.6 MB, free: 3.355 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0006614/0.05324, allocations: 0.7593 MB / 274.4 MB, free: 2.559 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.05328, allocations: 67.39 kB / 274.4 MB, free: 2.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.05329, allocations: 12 kB / 274.4 MB, free: 2.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002682/0.05356, allocations: 137.1 kB / 274.6 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000384/0.05394, allocations: 239.6 kB / 274.8 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/0.05578, allocations: 3.02 MB / 277.8 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000343/0.05612, allocations: 59.86 kB / 277.9 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.05616, allocations: 36 kB / 277.9 MB, free: 14.82 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.0001725/0.05633, allocations: 181.5 kB / 278.1 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.557e-05/0.05641, allocations: 95.89 kB / 278.2 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004289/0.05684, allocations: 401.6 kB / 278.6 MB, free: 14.13 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.05684, allocations: 11.94 kB / 278.6 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.05684, allocations: 3.984 kB / 278.6 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004615/0.05731, allocations: 0.6662 MB / 279.3 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009201/0.05823, allocations: 0.9257 MB / 280.2 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.05823, allocations: 0 / 280.2 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.05849, allocations: 128.1 kB / 280.3 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.05864, allocations: 107.2 kB / 280.4 MB, free: 12.13 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001967/0.05884, allocations: 105.6 kB / 280.5 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.086e-05/0.05886, allocations: 15.98 kB / 280.5 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.06027, allocations: 2.85 MB / 283.4 MB, free: 8.977 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.06027, allocations: 0 / 283.4 MB, free: 8.977 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004825/0.06076, allocations: 0.5923 MB / 284 MB, free: 8.344 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.49e-05/0.06082, allocations: 20 kB / 284 MB, free: 8.324 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.06106, allocations: 27.98 kB / 284 MB, free: 8.297 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.853e-05/0.06114, allocations: 60.33 kB / 284.1 MB, free: 8.238 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.06116, allocations: 19.92 kB / 284.1 MB, free: 8.219 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002901/0.06145, allocations: 410.9 kB / 284.5 MB, free: 7.805 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06145, allocations: 0 / 284.5 MB, free: 7.805 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005397/0.06199, allocations: 304 kB / 284.8 MB, free: 7.508 MB / 282.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.0001524/0.06215, allocations: 116.3 kB / 284.9 MB, free: 7.387 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007084/0.06285, allocations: 0.9018 MB / 285.8 MB, free: 6.43 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.511e-05/0.06288, allocations: 20.59 kB / 285.8 MB, free: 6.41 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004212/0.0633, allocations: 494.6 kB / 286.3 MB, free: 5.902 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/0.06458, allocations: 2.812 MB / 289.1 MB, free: 2.527 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.07663, allocations: 2.081 MB / 291.2 MB, free: 388 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001481/0.07678, allocations: 221.7 kB / 291.4 MB, free: 144 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003477/0.07713, allocations: 132.9 kB / 291.6 MB, free: 8 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005051/0.07763, allocations: 361.1 kB / 291.9 MB, free: 15.66 MB / 298.7 MB Notification: Performance of SimCode: time 1.233e-06/0.07763, allocations: 0 / 291.9 MB, free: 15.66 MB / 298.7 MB Notification: Performance of Templates: time 0.02259/0.1002, allocations: 19.75 MB / 311.7 MB, free: 12.26 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 4.626332375220954]