Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001623/0.001623, allocations: 202.5 kB / 8.542 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009387/0.0009386, allocations: 89.25 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.78e-06/5.811e-06, allocations: 0 / 343.1 MB, free: 8.746 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08152/0.08154, allocations: 51.48 MB / 394.6 MB, free: 5.223 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.233/0.3145, allocations: 99.81 MB / 494.4 MB, free: 9.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.3148, allocations: 84.91 kB / 494.5 MB, free: 9.477 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.08155/0.3963, allocations: 30.25 MB / 0.5125 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.059e-05/0.3965, allocations: 32 kB / 0.5125 GB, free: 0.5547 MB / 378.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.002632/0.3991, allocations: 1.391 MB / 0.5139 GB, free: 15.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.3991, allocations: 12.03 kB / 0.5139 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007041/0.3998, allocations: 206.1 kB / 0.5141 GB, free: 14.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.4015, allocations: 0.8554 MB / 0.5149 GB, free: 13.99 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.4017, allocations: 79.84 kB / 0.515 GB, free: 13.9 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.4018, allocations: 67.98 kB / 0.515 GB, free: 13.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0013/0.4031, allocations: 0.6291 MB / 0.5156 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.4047, allocations: 0.9314 MB / 0.5166 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.754e-05/0.4047, allocations: 11.98 kB / 0.5166 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.393e-05/0.4048, allocations: 4 kB / 0.5166 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.276e-05/0.4048, allocations: 28 kB / 0.5166 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00572/0.4106, allocations: 3.747 MB / 0.5203 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005868/0.4112, allocations: 317.8 kB / 0.5206 GB, free: 7.906 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003524/0.4115, allocations: 220.9 kB / 0.5208 GB, free: 7.691 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.948e-05/0.4116, allocations: 16.48 kB / 0.5208 GB, free: 7.676 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004084/0.412, allocations: 251.7 kB / 0.521 GB, free: 7.414 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 2.435e-06/0.412, allocations: 5.062 kB / 0.521 GB, free: 7.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.002691/0.4147, allocations: 1.391 MB / 0.5224 GB, free: 5.957 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002004/0.4149, allocations: 479.3 kB / 0.5229 GB, free: 5.379 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.416, allocations: 0.7324 MB / 0.5236 GB, free: 4.629 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.523e-05/0.4161, allocations: 33.69 kB / 0.5236 GB, free: 4.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003267/0.4164, allocations: 0.5054 MB / 0.5241 GB, free: 4.074 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.4166, allocations: 236.6 kB / 0.5243 GB, free: 3.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.39e-05/0.4166, allocations: 0 / 0.5243 GB, free: 3.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.4167, allocations: 341.9 kB / 0.5246 GB, free: 3.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.4171, allocations: 202.6 kB / 0.5248 GB, free: 3.301 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006174/0.4177, allocations: 0.6407 MB / 0.5255 GB, free: 2.457 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004968/0.4182, allocations: 304.5 kB / 0.5258 GB, free: 2.16 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.4182, allocations: 4.75 kB / 0.5258 GB, free: 2.156 MB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001733/0.42, allocations: 0.9303 MB / 0.5267 GB, free: 1.211 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.42, allocations: 8 kB / 0.5267 GB, free: 1.203 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.42, allocations: 12 kB / 0.5267 GB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006754/0.4207, allocations: 181.7 kB / 0.5269 GB, free: 1.008 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007535/0.4215, allocations: 219.6 kB / 0.5271 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003802/0.4253, allocations: 3.353 MB / 0.5303 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008316/0.4261, allocations: 56.03 kB / 0.5304 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.638e-05/0.4262, allocations: 55.92 kB / 0.5304 GB, free: 13.11 MB / 410.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001735/0.4264, allocations: 144.8 kB / 0.5306 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.4266, allocations: 110.7 kB / 0.5307 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00128/0.4279, allocations: 0.6252 MB / 0.5313 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.4279, allocations: 8 kB / 0.5313 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.4279, allocations: 4 kB / 0.5313 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001098/0.429, allocations: 0.8757 MB / 0.5322 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00254/0.4315, allocations: 1.584 MB / 0.5337 GB, free: 9.551 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.4316, allocations: 7.984 kB / 0.5337 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005525/0.4321, allocations: 120 kB / 0.5338 GB, free: 9.426 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000435/0.4326, allocations: 129.4 kB / 0.534 GB, free: 9.297 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.903e-05/0.4326, allocations: 7.984 kB / 0.534 GB, free: 9.289 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002853/0.4355, allocations: 3.107 MB / 0.537 GB, free: 5.949 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4355, allocations: 4.156 kB / 0.537 GB, free: 5.945 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001529/0.437, allocations: 1.038 MB / 0.538 GB, free: 4.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003973/0.4374, allocations: 235.7 kB / 0.5382 GB, free: 4.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.4376, allocations: 7.984 kB / 0.5383 GB, free: 4.562 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005855/0.4382, allocations: 35.97 kB / 0.5383 GB, free: 4.527 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.861e-05/0.4383, allocations: 48.34 kB / 0.5383 GB, free: 4.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.796e-05/0.4384, allocations: 19.98 kB / 0.5384 GB, free: 4.461 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000726/0.4391, allocations: 0.5411 MB / 0.5389 GB, free: 3.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001164/0.4403, allocations: 292.2 kB / 0.5392 GB, free: 3.625 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004553/0.4407, allocations: 324.5 kB / 0.5395 GB, free: 3.312 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.4425, allocations: 0.8742 MB / 0.5403 GB, free: 2.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.4425, allocations: 4 kB / 0.5403 GB, free: 2.406 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006803/0.4432, allocations: 473.9 kB / 0.5408 GB, free: 1.926 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.4442, allocations: 238.7 kB / 0.541 GB, free: 1.703 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.4474, allocations: 1.588 MB / 0.5426 GB, free: 52 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009437/0.4484, allocations: 1.182 MB / 0.5437 GB, free: 14.84 MB / 426.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4484, allocations: 0 / 0.5437 GB, free: 14.84 MB / 426.7 MB Notification: Performance of Templates: time 0.02924/0.4776, allocations: 14.79 MB / 0.5582 GB, free: 276 kB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches