Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) 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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 179.9 kB / 8.519 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.204/1.204, allocations: 221.4 MB / 230.3 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008584/0.0008586, allocations: 102 kB / 281.2 MB, free: 1.305 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2882/0.2882, allocations: 44.14 MB / 376.1 MB, free: 43.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.875e-06/7.975e-06, allocations: 0 / 444 MB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3018, allocations: 61.9 MB / 0.4941 GB, free: 42.45 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.4241, allocations: 95.69 MB / 0.5875 GB, free: 5.582 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.4244, allocations: 68.48 kB / 0.5876 GB, free: 5.516 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.04229/0.4667, allocations: 14.24 MB / 0.6015 GB, free: 7.277 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.702e-05/0.4668, allocations: 23.98 kB / 0.6015 GB, free: 7.254 MB / 426.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.001755/0.4686, allocations: 0.9594 MB / 0.6025 GB, free: 6.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.4686, allocations: 8.031 kB / 0.6025 GB, free: 6.242 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/0.4688, allocations: 94.88 kB / 0.6026 GB, free: 6.148 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009752/0.4698, allocations: 0.5548 MB / 0.6031 GB, free: 5.559 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.961e-05/0.4698, allocations: 16 kB / 0.6031 GB, free: 5.543 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.349e-05/0.4699, allocations: 43.89 kB / 0.6032 GB, free: 5.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006299/0.4705, allocations: 329.9 kB / 0.6035 GB, free: 5.176 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007435/0.4713, allocations: 0.4907 MB / 0.604 GB, free: 4.637 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.4713, allocations: 0 / 0.604 GB, free: 4.637 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.462e-05/0.4714, allocations: 4 kB / 0.604 GB, free: 4.633 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.4714, allocations: 8 kB / 0.604 GB, free: 4.625 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003317/0.4747, allocations: 2.59 MB / 0.6065 GB, free: 1.949 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007195/0.4755, allocations: 448.5 kB / 0.6069 GB, free: 1.484 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.4758, allocations: 190.6 kB / 0.6071 GB, free: 1.289 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.859e-05/0.4758, allocations: 7.984 kB / 0.6071 GB, free: 1.281 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.4758, allocations: 38.55 kB / 0.6071 GB, free: 1.234 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 2.916e-06/0.4758, allocations: 7.984 kB / 0.6072 GB, free: 1.227 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.001361/0.4772, allocations: 0.7724 MB / 0.6079 GB, free: 456 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.4773, allocations: 132.5 kB / 0.608 GB, free: 292 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005647/0.4779, allocations: 0.492 MB / 0.6085 GB, free: 15.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.755e-05/0.4779, allocations: 29.64 kB / 0.6085 GB, free: 15.75 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.478, allocations: 240.6 kB / 0.6088 GB, free: 15.51 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.4782, allocations: 169.5 kB / 0.6089 GB, free: 15.34 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.911e-05/0.4782, allocations: 4.062 kB / 0.6089 GB, free: 15.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.4784, allocations: 386.8 kB / 0.6093 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003197/0.4787, allocations: 197.3 kB / 0.6095 GB, free: 14.76 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004091/0.4791, allocations: 352 kB / 0.6098 GB, free: 14.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/0.4795, allocations: 234.7 kB / 0.6101 GB, free: 14.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4795, allocations: 0 / 0.6101 GB, free: 14.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0009596/0.4805, allocations: 0.6324 MB / 0.6107 GB, free: 13.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006167/0.4811, allocations: 1.745 MB / 0.6124 GB, free: 11.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.4811, allocations: 4 kB / 0.6124 GB, free: 11.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.4812, allocations: 12 kB / 0.6124 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007933/0.482, allocations: 163.8 kB / 0.6125 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.482, allocations: 11.94 kB / 0.6126 GB, free: 11.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005994/0.4826, allocations: 79.64 kB / 0.6126 GB, free: 11.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.283e-05/0.4827, allocations: 23.98 kB / 0.6127 GB, free: 11.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.643e-06/0.4827, allocations: 8 kB / 0.6127 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008362/0.4835, allocations: 0.511 MB / 0.6132 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.4835, allocations: 6.516 kB / 0.6132 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.4835, allocations: 11.94 kB / 0.6132 GB, free: 10.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006483/0.4842, allocations: 163.7 kB / 0.6133 GB, free: 10.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.4842, allocations: 11.94 kB / 0.6134 GB, free: 10.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000548/0.4848, allocations: 75.62 kB / 0.6134 GB, free: 10.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.763e-05/0.4848, allocations: 28 kB / 0.6135 GB, free: 10.5 MB / 442.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.0001365/0.485, allocations: 117.7 kB / 0.6136 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/0.4851, allocations: 75.06 kB / 0.6136 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001913/0.4853, allocations: 77.8 kB / 0.6137 GB, free: 10.23 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.4853, allocations: 8 kB / 0.6137 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.4854, allocations: 4 kB / 0.6137 GB, free: 10.21 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.892e-06/0.4854, allocations: 7.984 kB / 0.6137 GB, free: 10.21 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.4865, allocations: 0.7598 MB / 0.6145 GB, free: 9.402 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4865, allocations: 0 / 0.6145 GB, free: 9.402 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007013/0.4872, allocations: 119.9 kB / 0.6146 GB, free: 9.285 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.4873, allocations: 4 kB / 0.6146 GB, free: 9.281 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.723e-05/0.4873, allocations: 12 kB / 0.6146 GB, free: 9.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.4873, allocations: 4 kB / 0.6146 GB, free: 9.266 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4873, allocations: 0 / 0.6146 GB, free: 9.266 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001143/0.4885, allocations: 0.9643 MB / 0.6155 GB, free: 8.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002366/0.4887, allocations: 196.1 kB / 0.6157 GB, free: 8.059 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.4888, allocations: 7.906 kB / 0.6157 GB, free: 8.051 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006105/0.4894, allocations: 59.94 kB / 0.6158 GB, free: 7.992 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.4896, allocations: 31.95 kB / 0.6158 GB, free: 7.961 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.4896, allocations: 15.98 kB / 0.6158 GB, free: 7.945 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.000419/0.49, allocations: 379.2 kB / 0.6162 GB, free: 7.582 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007433/0.4908, allocations: 172 kB / 0.6164 GB, free: 7.414 MB / 442.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.0001675/0.491, allocations: 115 kB / 0.6165 GB, free: 7.293 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001195/0.4922, allocations: 0.7957 MB / 0.6173 GB, free: 6.496 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4922, allocations: 4.188 kB / 0.6173 GB, free: 6.492 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003257/0.4925, allocations: 211.8 kB / 0.6175 GB, free: 6.285 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008813/0.4934, allocations: 155 kB / 0.6176 GB, free: 6.137 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002438/0.4958, allocations: 1.167 MB / 0.6187 GB, free: 4.938 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007014/0.4966, allocations: 1.028 MB / 0.6198 GB, free: 3.879 MB / 442.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4966, allocations: 0 / 0.6198 GB, free: 3.879 MB / 442.7 MB Notification: Performance of Templates: time 0.01763/0.5142, allocations: 10.48 MB / 0.63 GB, free: 9.492 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches