Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Continuous") translateModel(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Continuous") [: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.001055/0.001055, allocations: 195.1 kB / 8.537 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009095/0.0009095, allocations: 87.67 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1837/0.1837, allocations: 45.14 MB / 383.3 MB, free: 0.582 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.073e-06/7.103e-06, allocations: 4 kB / 452.6 MB, free: 76.23 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1082, allocations: 63.25 MB / 0.5038 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3845/0.4927, allocations: 96.79 MB / 0.5983 GB, free: 6.309 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.493, allocations: 64.42 kB / 0.5983 GB, free: 6.281 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04283/0.5359, allocations: 14.34 MB / 0.6124 GB, free: 10.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.169e-05/0.536, allocations: 23.94 kB / 0.6124 GB, free: 10.32 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001835/0.5379, allocations: 0.9597 MB / 0.6133 GB, free: 9.359 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.5379, allocations: 12.02 kB / 0.6133 GB, free: 9.348 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003834/0.5383, allocations: 110.9 kB / 0.6134 GB, free: 9.238 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009995/0.5393, allocations: 0.5574 MB / 0.614 GB, free: 8.711 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.5394, allocations: 16 kB / 0.614 GB, free: 8.695 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.936e-05/0.5395, allocations: 35.59 kB / 0.614 GB, free: 8.664 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006396/0.5401, allocations: 340.8 kB / 0.6144 GB, free: 8.445 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007762/0.5409, allocations: 0.4889 MB / 0.6148 GB, free: 8.016 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.5409, allocations: 7.938 kB / 0.6148 GB, free: 8.008 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/0.541, allocations: 0 / 0.6148 GB, free: 8.008 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.541, allocations: 12 kB / 0.6148 GB, free: 7.996 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003615/0.5446, allocations: 2.578 MB / 0.6174 GB, free: 5.688 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007609/0.5454, allocations: 452.1 kB / 0.6178 GB, free: 5.344 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002925/0.5457, allocations: 185.8 kB / 0.618 GB, free: 5.219 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.42e-05/0.5458, allocations: 4.094 kB / 0.618 GB, free: 5.215 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.5458, allocations: 45.61 kB / 0.618 GB, free: 5.164 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 2.575e-06/0.5458, allocations: 0 / 0.618 GB, free: 5.164 MB / 410.7 MB Notification: Performance of matching and sorting (n=44): time 0.00143/0.5472, allocations: 0.7776 MB / 0.6188 GB, free: 4.484 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.255e-05/0.5473, allocations: 132.5 kB / 0.6189 GB, free: 4.324 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005583/0.5479, allocations: 0.4901 MB / 0.6194 GB, free: 3.938 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.314e-05/0.5479, allocations: 29.7 kB / 0.6194 GB, free: 3.902 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.5481, allocations: 247.5 kB / 0.6196 GB, free: 3.688 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.5482, allocations: 163.6 kB / 0.6198 GB, free: 3.547 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-05/0.5483, allocations: 0 / 0.6198 GB, free: 3.547 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.5484, allocations: 387.2 kB / 0.6202 GB, free: 3.191 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003127/0.5487, allocations: 193.9 kB / 0.6204 GB, free: 3.074 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004442/0.5492, allocations: 358.1 kB / 0.6207 GB, free: 2.738 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004177/0.5496, allocations: 238 kB / 0.6209 GB, free: 2.582 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.5496, allocations: 7.938 kB / 0.6209 GB, free: 2.574 MB / 410.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001065/0.5507, allocations: 0.6215 MB / 0.6215 GB, free: 2.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006484/0.5514, allocations: 1.749 MB / 0.6233 GB, free: 240 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.5514, allocations: 4 kB / 0.6233 GB, free: 236 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.676e-05/0.5514, allocations: 8 kB / 0.6233 GB, free: 228 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007354/0.5522, allocations: 162.9 kB / 0.6234 GB, free: 72 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/0.5522, allocations: 15.92 kB / 0.6234 GB, free: 56 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005952/0.5528, allocations: 83.58 kB / 0.6235 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.076e-05/0.5529, allocations: 23.62 kB / 0.6235 GB, free: 15.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/0.5529, allocations: 4 kB / 0.6235 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008577/0.5537, allocations: 0.5191 MB / 0.624 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.5537, allocations: 4 kB / 0.624 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.5538, allocations: 11.91 kB / 0.6241 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006574/0.5544, allocations: 159.5 kB / 0.6242 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.5544, allocations: 8 kB / 0.6242 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005343/0.555, allocations: 71.64 kB / 0.6243 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.851e-05/0.555, allocations: 31.61 kB / 0.6243 GB, free: 15.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001542/0.5552, allocations: 120.7 kB / 0.6244 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.5554, allocations: 75.06 kB / 0.6245 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001848/0.5556, allocations: 79.73 kB / 0.6246 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.5556, allocations: 4 kB / 0.6246 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.5556, allocations: 4 kB / 0.6246 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.5556, allocations: 3.984 kB / 0.6246 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.5567, allocations: 0.7531 MB / 0.6253 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.5567, allocations: 0 / 0.6253 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000722/0.5575, allocations: 119.7 kB / 0.6254 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.5575, allocations: 4 kB / 0.6254 GB, free: 14.28 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.033e-05/0.5575, allocations: 15.8 kB / 0.6255 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.5575, allocations: 4 kB / 0.6255 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5576, allocations: 0 / 0.6255 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001138/0.5587, allocations: 0.9667 MB / 0.6264 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002372/0.559, allocations: 194.9 kB / 0.6266 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.5591, allocations: 7.984 kB / 0.6266 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006161/0.5597, allocations: 55.95 kB / 0.6267 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.5598, allocations: 35.69 kB / 0.6267 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.618e-05/0.5599, allocations: 15.98 kB / 0.6267 GB, free: 13.19 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00043/0.5603, allocations: 382.5 kB / 0.6271 GB, free: 12.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007837/0.5611, allocations: 168 kB / 0.6272 GB, free: 12.75 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001848/0.5613, allocations: 119 kB / 0.6273 GB, free: 12.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.5625, allocations: 0.794 MB / 0.6281 GB, free: 12.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.5625, allocations: 0 / 0.6281 GB, free: 12.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003521/0.5629, allocations: 222.5 kB / 0.6283 GB, free: 11.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008705/0.5638, allocations: 169 kB / 0.6285 GB, free: 11.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.5663, allocations: 1.165 MB / 0.6296 GB, free: 10.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007415/0.567, allocations: 1.024 MB / 0.6306 GB, free: 9.633 MB / 426.7 MB Notification: Performance of SimCode: time 1.893e-06/0.567, allocations: 0 / 0.6306 GB, free: 9.633 MB / 426.7 MB Notification: Performance of Templates: time 0.01859/0.5856, allocations: 10.47 MB / 0.6409 GB, free: 15.24 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches