Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.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_InitialState,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_InitialState") translateModel(ModelicaTest.Blocks.Continuous_InitialState,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_InitialState") [: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.001092/0.001092, allocations: 178.7 kB / 8.519 MB, free: 1.859 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.22/1.22, allocations: 221.4 MB / 230.3 MB, free: 7.711 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.0009196/0.0009198, allocations: 84.67 kB / 281.2 MB, free: 5.469 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.1814/0.1814, allocations: 44.14 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.392e-06/6.502e-06, allocations: 224 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.128, allocations: 61.92 MB / 0.4941 GB, free: 1.637 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3295/0.4576, allocations: 96.09 MB / 0.5879 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.4578, allocations: 67.97 kB / 0.588 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.07953/0.5374, allocations: 27.42 MB / 0.6148 GB, free: 5.152 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.501e-05/0.5375, allocations: 20 kB / 0.6148 GB, free: 5.133 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.00189/0.5394, allocations: 0.958 MB / 0.6157 GB, free: 4.129 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.5395, allocations: 11.97 kB / 0.6157 GB, free: 4.117 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.5397, allocations: 90.97 kB / 0.6158 GB, free: 4.027 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.5408, allocations: 0.5548 MB / 0.6164 GB, free: 3.434 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.5409, allocations: 16 kB / 0.6164 GB, free: 3.418 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.342e-05/0.541, allocations: 39.91 kB / 0.6164 GB, free: 3.379 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006818/0.5417, allocations: 337.9 kB / 0.6167 GB, free: 3.047 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007647/0.5424, allocations: 0.4907 MB / 0.6172 GB, free: 2.508 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.5425, allocations: 7.938 kB / 0.6172 GB, free: 2.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.435e-05/0.5425, allocations: 0 / 0.6172 GB, free: 2.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.5425, allocations: 12 kB / 0.6172 GB, free: 2.488 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003666/0.5462, allocations: 2.581 MB / 0.6198 GB, free: 15.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007776/0.547, allocations: 458 kB / 0.6202 GB, free: 15.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002955/0.5473, allocations: 186.6 kB / 0.6204 GB, free: 15.15 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5e-05/0.5474, allocations: 4 kB / 0.6204 GB, free: 15.15 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.5474, allocations: 46.56 kB / 0.6204 GB, free: 15.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=43): time 2.705e-06/0.5474, allocations: 3.938 kB / 0.6204 GB, free: 15.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=44): time 0.001444/0.5489, allocations: 0.764 MB / 0.6212 GB, free: 14.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.055e-05/0.549, allocations: 148.6 kB / 0.6213 GB, free: 14.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005973/0.5496, allocations: 491.8 kB / 0.6218 GB, free: 13.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.5496, allocations: 25.7 kB / 0.6218 GB, free: 13.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.5498, allocations: 252.6 kB / 0.622 GB, free: 13.37 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.5499, allocations: 165.6 kB / 0.6222 GB, free: 13.21 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.55, allocations: 0 / 0.6222 GB, free: 13.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.5502, allocations: 382.8 kB / 0.6226 GB, free: 12.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003423/0.5505, allocations: 197.3 kB / 0.6228 GB, free: 12.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.551, allocations: 352.8 kB / 0.6231 GB, free: 12.22 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003794/0.5514, allocations: 245.9 kB / 0.6233 GB, free: 11.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5514, allocations: 0 / 0.6233 GB, free: 11.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001034/0.5524, allocations: 0.6267 MB / 0.6239 GB, free: 11.35 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007185/0.5531, allocations: 1.738 MB / 0.6256 GB, free: 9.477 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.5532, allocations: 4 kB / 0.6256 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.5532, allocations: 8 kB / 0.6256 GB, free: 9.465 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007542/0.5539, allocations: 175.7 kB / 0.6258 GB, free: 9.293 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.554, allocations: 4 kB / 0.6258 GB, free: 9.289 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006091/0.5546, allocations: 95.47 kB / 0.6259 GB, free: 9.195 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.5547, allocations: 24 kB / 0.6259 GB, free: 9.172 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.695e-06/0.5547, allocations: 4 kB / 0.6259 GB, free: 9.168 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009084/0.5556, allocations: 0.5111 MB / 0.6264 GB, free: 8.656 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.5556, allocations: 4 kB / 0.6264 GB, free: 8.652 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.5556, allocations: 8 kB / 0.6264 GB, free: 8.645 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006616/0.5563, allocations: 156.3 kB / 0.6266 GB, free: 8.492 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.5563, allocations: 19.91 kB / 0.6266 GB, free: 8.473 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005535/0.5569, allocations: 83.52 kB / 0.6267 GB, free: 8.391 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.5569, allocations: 24 kB / 0.6267 GB, free: 8.367 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.0001546/0.5571, allocations: 120.8 kB / 0.6268 GB, free: 8.242 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.5573, allocations: 71.16 kB / 0.6269 GB, free: 8.172 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002114/0.5575, allocations: 77.78 kB / 0.627 GB, free: 8.094 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.5575, allocations: 8 kB / 0.627 GB, free: 8.086 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/0.5575, allocations: 3.906 kB / 0.627 GB, free: 8.082 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.5575, allocations: 0 / 0.627 GB, free: 8.082 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.5586, allocations: 0.7599 MB / 0.6277 GB, free: 7.277 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.5587, allocations: 4 kB / 0.6277 GB, free: 7.273 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007251/0.5594, allocations: 119.9 kB / 0.6278 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.5594, allocations: 0 / 0.6278 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.854e-05/0.5595, allocations: 11.98 kB / 0.6279 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.5595, allocations: 0 / 0.6279 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5595, allocations: 0 / 0.6279 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001225/0.5607, allocations: 0.9666 MB / 0.6288 GB, free: 6.148 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002567/0.561, allocations: 196 kB / 0.629 GB, free: 5.938 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.5611, allocations: 12 kB / 0.629 GB, free: 5.926 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006267/0.5617, allocations: 59.94 kB / 0.6291 GB, free: 5.867 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.5618, allocations: 36.03 kB / 0.6291 GB, free: 5.832 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.785e-05/0.5619, allocations: 15.98 kB / 0.6291 GB, free: 5.816 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004418/0.5623, allocations: 379.2 kB / 0.6295 GB, free: 5.453 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007918/0.5631, allocations: 171.9 kB / 0.6296 GB, free: 5.285 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.0001754/0.5633, allocations: 119 kB / 0.6297 GB, free: 5.156 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.5647, allocations: 0.7977 MB / 0.6305 GB, free: 4.359 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.5647, allocations: 0 / 0.6305 GB, free: 4.359 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003398/0.565, allocations: 215.8 kB / 0.6307 GB, free: 4.148 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008848/0.5659, allocations: 161.5 kB / 0.6309 GB, free: 3.992 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003095/0.569, allocations: 1.169 MB / 0.632 GB, free: 2.781 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000894/0.5699, allocations: 1.013 MB / 0.633 GB, free: 1.738 MB / 442.7 MB Notification: Performance of SimCode: time 3.136e-06/0.57, allocations: 0 / 0.633 GB, free: 1.738 MB / 442.7 MB Notification: Performance of Templates: time 0.01886/0.5888, allocations: 10.48 MB / 0.6432 GB, free: 7.324 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches