Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.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_InitialOutput,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_InitialOutput") translateModel(ModelicaTest.Blocks.Continuous_InitialOutput,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_InitialOutput") [: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.001413/0.001413, allocations: 179.4 kB / 8.517 MB, free: 1.855 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.162/1.162, allocations: 221.4 MB / 230.3 MB, free: 7.762 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.0009033/0.0009034, allocations: 88.73 kB / 281.2 MB, free: 5.512 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1658/0.1658, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.725e-06/7.745e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1389, allocations: 61.91 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3493/0.4883, allocations: 96.18 MB / 0.588 GB, free: 0.5977 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.4885, allocations: 67.97 kB / 0.5881 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.08387/0.5724, allocations: 28.78 MB / 0.6162 GB, free: 3.656 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.275e-05/0.5725, allocations: 20.44 kB / 0.6162 GB, free: 3.637 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.001863/0.5744, allocations: 0.9698 MB / 0.6172 GB, free: 2.621 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.5745, allocations: 15.97 kB / 0.6172 GB, free: 2.605 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.5746, allocations: 90.88 kB / 0.6173 GB, free: 2.516 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.5758, allocations: 0.5781 MB / 0.6178 GB, free: 1.898 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.5758, allocations: 16 kB / 0.6178 GB, free: 1.883 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.638e-05/0.5759, allocations: 39.89 kB / 0.6179 GB, free: 1.844 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006408/0.5766, allocations: 329.9 kB / 0.6182 GB, free: 1.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007658/0.5773, allocations: 498.5 kB / 0.6187 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.5774, allocations: 8 kB / 0.6187 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.446e-05/0.5774, allocations: 0 / 0.6187 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.5774, allocations: 12 kB / 0.6187 GB, free: 0.9648 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003612/0.5811, allocations: 2.565 MB / 0.6212 GB, free: 14.3 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000502/0.5816, allocations: 335.5 kB / 0.6215 GB, free: 13.95 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002967/0.5819, allocations: 202.9 kB / 0.6217 GB, free: 13.74 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.586e-05/0.582, allocations: 8.234 kB / 0.6217 GB, free: 13.73 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.582, allocations: 38.7 kB / 0.6217 GB, free: 13.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 2.545e-06/0.582, allocations: 4 kB / 0.6217 GB, free: 13.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.001419/0.5834, allocations: 0.7714 MB / 0.6225 GB, free: 12.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.5835, allocations: 114.8 kB / 0.6226 GB, free: 12.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005511/0.584, allocations: 491.8 kB / 0.6231 GB, free: 12.28 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.923e-05/0.5841, allocations: 25.7 kB / 0.6231 GB, free: 12.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.5842, allocations: 244.6 kB / 0.6233 GB, free: 12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.5844, allocations: 177.4 kB / 0.6235 GB, free: 11.83 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.989e-05/0.5844, allocations: 0 / 0.6235 GB, free: 11.83 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.5846, allocations: 382.8 kB / 0.6239 GB, free: 11.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003282/0.5849, allocations: 197.3 kB / 0.6241 GB, free: 11.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000405/0.5854, allocations: 354.3 kB / 0.6244 GB, free: 10.85 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005022/0.5859, allocations: 254.8 kB / 0.6246 GB, free: 10.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.5859, allocations: 4 kB / 0.6246 GB, free: 10.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001073/0.587, allocations: 0.6369 MB / 0.6253 GB, free: 9.953 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007327/0.5877, allocations: 1.741 MB / 0.627 GB, free: 8.078 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.5877, allocations: 4 kB / 0.627 GB, free: 8.074 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.622e-05/0.5878, allocations: 8 kB / 0.627 GB, free: 8.066 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.5889, allocations: 203.8 kB / 0.6272 GB, free: 7.867 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.509e-05/0.5889, allocations: 19.92 kB / 0.6272 GB, free: 7.848 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005904/0.5895, allocations: 75.55 kB / 0.6273 GB, free: 7.773 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.875e-05/0.5896, allocations: 24 kB / 0.6273 GB, free: 7.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.236e-06/0.5896, allocations: 6.188 kB / 0.6273 GB, free: 7.746 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000942/0.5906, allocations: 0.5308 MB / 0.6278 GB, free: 7.215 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.5906, allocations: 4 kB / 0.6278 GB, free: 7.211 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.5906, allocations: 11.94 kB / 0.6278 GB, free: 7.199 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009977/0.5916, allocations: 208.1 kB / 0.628 GB, free: 6.996 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.5916, allocations: 8 kB / 0.628 GB, free: 6.988 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000546/0.5922, allocations: 83.53 kB / 0.6281 GB, free: 6.906 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.209e-05/0.5922, allocations: 24 kB / 0.6281 GB, free: 6.883 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 (78): * Single equations (assignments): 77 * Array equations: 1 * 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.0001561/0.5924, allocations: 120.7 kB / 0.6283 GB, free: 6.758 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.5926, allocations: 71.06 kB / 0.6283 GB, free: 6.688 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002243/0.5928, allocations: 82.7 kB / 0.6284 GB, free: 6.605 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.5928, allocations: 4 kB / 0.6284 GB, free: 6.602 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.5928, allocations: 3.984 kB / 0.6284 GB, free: 6.598 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.5928, allocations: 11.97 kB / 0.6284 GB, free: 6.586 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.5945, allocations: 1.12 MB / 0.6295 GB, free: 5.414 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.5945, allocations: 0 / 0.6295 GB, free: 5.414 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007281/0.5953, allocations: 119.9 kB / 0.6296 GB, free: 5.297 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.5953, allocations: 3.984 kB / 0.6296 GB, free: 5.293 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/0.5953, allocations: 12 kB / 0.6296 GB, free: 5.281 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.5954, allocations: 4 kB / 0.6296 GB, free: 5.277 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5954, allocations: 0 / 0.6296 GB, free: 5.277 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001368/0.5967, allocations: 1.019 MB / 0.6306 GB, free: 4.207 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/0.597, allocations: 192.1 kB / 0.6308 GB, free: 4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.5971, allocations: 8 kB / 0.6308 GB, free: 3.992 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006043/0.5978, allocations: 55.86 kB / 0.6309 GB, free: 3.938 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.5979, allocations: 39.94 kB / 0.6309 GB, free: 3.898 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-05/0.5979, allocations: 11.98 kB / 0.6309 GB, free: 3.887 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0005883/0.5985, allocations: 379.2 kB / 0.6313 GB, free: 3.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001076/0.5996, allocations: 199.9 kB / 0.6315 GB, free: 3.324 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (46): * Single equations (assignments): 46 * 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.0003371/0.6, allocations: 147.9 kB / 0.6316 GB, free: 3.172 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.6014, allocations: 0.802 MB / 0.6324 GB, free: 2.367 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.6014, allocations: 8.062 kB / 0.6324 GB, free: 2.359 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003553/0.6018, allocations: 223.8 kB / 0.6326 GB, free: 2.141 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009205/0.6027, allocations: 156.2 kB / 0.6328 GB, free: 1.992 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.6052, allocations: 1.194 MB / 0.6339 GB, free: 0.7539 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007773/0.606, allocations: 1.022 MB / 0.6349 GB, free: 15.7 MB / 458.7 MB Notification: Performance of SimCode: time 4.91e-07/0.606, allocations: 0 / 0.6349 GB, free: 15.7 MB / 458.7 MB Notification: Performance of Templates: time 0.0194/0.6254, allocations: 10.99 MB / 0.6457 GB, free: 4.781 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialOutput/Continuous_InitialOutput.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches