Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onCounter.trigger|onCounter.reset|onCounter.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter") [: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/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.779/1.779, allocations: 387.2 MB / 394.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009712/0.0009712, allocations: 185.2 kB / 487 MB, free: 5.34 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.132/1.132, allocations: 221.3 MB / 0.7819 GB, free: 1.387 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008123/0.0008123, allocations: 97.41 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.023e-06/7.074e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1874, allocations: 142.3 MB / 1.205 GB, free: 26.19 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.488/0.6754, allocations: 148.6 MB / 1.35 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001622/0.6756, allocations: 68.8 kB / 1.35 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.007427/0.6831, allocations: 2.64 MB / 1.353 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.6831, allocations: 8.719 kB / 1.353 GB, free: 15.49 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0002576/0.6833, allocations: 413.2 kB / 1.353 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.6834, allocations: 9.781 kB / 1.353 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.182e-05/0.6834, allocations: 13.17 kB / 1.353 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.703e-05/0.6835, allocations: 166.4 kB / 1.354 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.6835, allocations: 2.672 kB / 1.354 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.225e-05/0.6836, allocations: 9.344 kB / 1.354 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.942e-05/0.6836, allocations: 14.17 kB / 1.354 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.313e-05/0.6837, allocations: 52.2 kB / 1.354 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.6837, allocations: 7.906 kB / 1.354 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.6837, allocations: 0.7812 kB / 1.354 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.6837, allocations: 0.9688 kB / 1.354 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003494/0.6841, allocations: 336.5 kB / 1.354 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.13e-05/0.6841, allocations: 33.08 kB / 1.354 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.275e-05/0.6842, allocations: 14.39 kB / 1.354 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 7.373e-06/0.6842, allocations: 4 kB / 1.354 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.221e-05/0.6843, allocations: 75.56 kB / 1.354 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.6843, allocations: 0 / 1.354 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9): time 0.0001635/0.6844, allocations: 83.88 kB / 1.354 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.644e-05/0.6845, allocations: 54.03 kB / 1.354 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.249e-05/0.6845, allocations: 115.5 kB / 1.354 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.6846, allocations: 33.2 kB / 1.354 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.374e-05/0.6846, allocations: 91.59 kB / 1.354 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.443e-05/0.6846, allocations: 23.33 kB / 1.355 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.845e-05/0.6846, allocations: 3.188 kB / 1.355 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.568e-05/0.6847, allocations: 324.2 kB / 1.355 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.6848, allocations: 51.3 kB / 1.355 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.6849, allocations: 99.2 kB / 1.355 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/0.6852, allocations: 79.95 kB / 1.355 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.6852, allocations: 4.562 kB / 1.355 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005208/0.6858, allocations: 211.1 kB / 1.355 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.808e-06/0.6858, allocations: 4.5 kB / 1.355 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.6858, allocations: 2.062 kB / 1.355 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.6858, allocations: 6.375 kB / 1.355 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.877e-05/0.6858, allocations: 10.25 kB / 1.355 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.6859, allocations: 2.953 kB / 1.355 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003382/0.6862, allocations: 80.72 kB / 1.355 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.487e-05/0.6862, allocations: 12.48 kB / 1.355 GB, free: 13.73 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.095e-05/0.6863, allocations: 123.8 kB / 1.355 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.308e-05/0.6863, allocations: 8.516 kB / 1.355 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.513e-05/0.6864, allocations: 10.39 kB / 1.355 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.6864, allocations: 2.281 kB / 1.355 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.6864, allocations: 0 / 1.355 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.6864, allocations: 0.5156 kB / 1.355 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001854/0.6866, allocations: 307.2 kB / 1.356 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.6866, allocations: 6.344 kB / 1.356 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.147e-06/0.6866, allocations: 4.531 kB / 1.356 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.6866, allocations: 1.125 kB / 1.356 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.6866, allocations: 2.359 kB / 1.356 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6866, allocations: 1.219 kB / 1.356 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.6866, allocations: 4 kB / 1.356 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001103/0.6867, allocations: 177.4 kB / 1.356 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.635e-05/0.6868, allocations: 86.11 kB / 1.356 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.6868, allocations: 6.953 kB / 1.356 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.443e-05/0.6868, allocations: 1.938 kB / 1.356 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.635e-05/0.6869, allocations: 8.031 kB / 1.356 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-06/0.6869, allocations: 7.953 kB / 1.356 GB, free: 13.08 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.491e-05/0.6869, allocations: 88.16 kB / 1.356 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002592/0.6872, allocations: 36.67 kB / 1.356 GB, free: 13 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * Number of discrete states: 1 (onCounter.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001074/0.6873, allocations: 117.7 kB / 1.356 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002354/0.6875, allocations: 169.6 kB / 1.356 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.6876, allocations: 3.938 kB / 1.356 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.593e-05/0.6876, allocations: 32.11 kB / 1.357 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.6878, allocations: 10.08 kB / 1.357 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002004/0.688, allocations: 102.8 kB / 1.357 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002202/0.6882, allocations: 0.7079 MB / 1.357 GB, free: 28.05 MB / 0.823 GB Notification: Performance of SimCode: time 2.71e-07/0.6882, allocations: 0 / 1.357 GB, free: 28.05 MB / 0.823 GB Notification: Performance of Templates: time 0.00353/0.6918, allocations: 1.668 MB / 1.359 GB, free: 27.9 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches