Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.707/1.707, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0008983/0.0008984, allocations: 178.4 kB / 490.8 MB, free: 1.98 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.055/1.055, allocations: 221.4 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007957/0.0007957, allocations: 94.8 kB / 0.9264 GB, free: 14.24 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.751e-06/5.761e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.166, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4408/0.6068, allocations: 149.4 MB / 1.358 GB, free: 17.23 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001592/0.607, allocations: 70.03 kB / 1.358 GB, free: 17.23 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.007406/0.6145, allocations: 2.656 MB / 1.36 GB, free: 17.07 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.6145, allocations: 0 / 1.36 GB, free: 17.07 MB / 0.823 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.0002842/0.6148, allocations: 403.4 kB / 1.361 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.6148, allocations: 8.812 kB / 1.361 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.892e-05/0.6149, allocations: 8.578 kB / 1.361 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.276e-05/0.6149, allocations: 170.4 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.615, allocations: 1.719 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.615, allocations: 13.67 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.177e-05/0.6151, allocations: 10.47 kB / 1.361 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.347e-05/0.6151, allocations: 48.41 kB / 1.361 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.6151, allocations: 5.094 kB / 1.361 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.6151, allocations: 1.266 kB / 1.361 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.6152, allocations: 5.156 kB / 1.361 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003642/0.6155, allocations: 332.4 kB / 1.361 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.546e-05/0.6156, allocations: 34.25 kB / 1.361 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.178e-05/0.6156, allocations: 18.31 kB / 1.361 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-06/0.6156, allocations: 1.344 kB / 1.361 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.315e-05/0.6157, allocations: 79.41 kB / 1.361 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.6157, allocations: 0 / 1.361 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0001605/0.6159, allocations: 79.41 kB / 1.361 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.068e-05/0.6159, allocations: 56.77 kB / 1.361 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.344e-05/0.616, allocations: 120 kB / 1.361 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.616, allocations: 33.55 kB / 1.362 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.606e-05/0.6161, allocations: 89.53 kB / 1.362 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.422e-05/0.6161, allocations: 20.17 kB / 1.362 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.708e-05/0.6161, allocations: 2.719 kB / 1.362 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.973e-05/0.6162, allocations: 318.8 kB / 1.362 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.6163, allocations: 55.09 kB / 1.362 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.6164, allocations: 98.48 kB / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002899/0.6167, allocations: 75.59 kB / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.6167, allocations: 1.25 kB / 1.362 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004838/0.6172, allocations: 221.8 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.346e-06/0.6173, allocations: 3.781 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.6173, allocations: 2.75 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.6173, allocations: 3.344 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.633e-05/0.6173, allocations: 9.859 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.6173, allocations: 1.469 kB / 1.362 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003136/0.6176, allocations: 79.05 kB / 1.362 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.6177, allocations: 18.02 kB / 1.362 GB, free: 31.32 MB / 0.8386 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 7.887e-05/0.6178, allocations: 114.7 kB / 1.363 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.6178, allocations: 12.03 kB / 1.363 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.412e-05/0.6178, allocations: 10.94 kB / 1.363 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.6178, allocations: 1.406 kB / 1.363 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.6178, allocations: 4 kB / 1.363 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.6178, allocations: 3.938 kB / 1.363 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.618, allocations: 306.9 kB / 1.363 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.618, allocations: 4 kB / 1.363 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.478e-06/0.618, allocations: 11.55 kB / 1.363 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.6181, allocations: 3.984 kB / 1.363 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.6181, allocations: 3.359 kB / 1.363 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.6181, allocations: 0 / 1.363 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.6181, allocations: 1.469 kB / 1.363 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001166/0.6182, allocations: 180.4 kB / 1.363 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.578e-05/0.6182, allocations: 86.2 kB / 1.363 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.6182, allocations: 3.656 kB / 1.363 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.283e-05/0.6183, allocations: 0 / 1.363 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.213e-05/0.6183, allocations: 5.578 kB / 1.363 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.6183, allocations: 4.5 kB / 1.363 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.152e-05/0.6184, allocations: 93.08 kB / 1.363 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002465/0.6186, allocations: 35.62 kB / 1.363 GB, free: 30.58 MB / 0.8386 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.0001245/0.6188, allocations: 111.9 kB / 1.363 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002224/0.619, allocations: 172.4 kB / 1.364 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.619, allocations: 0 / 1.364 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.047e-05/0.619, allocations: 31.31 kB / 1.364 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001931/0.6192, allocations: 14.23 kB / 1.364 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001971/0.6195, allocations: 106 kB / 1.364 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.6197, allocations: 0.7078 MB / 1.364 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/0.6197, allocations: 0.9688 kB / 1.364 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of Templates: time 0.003272/0.623, allocations: 1.668 MB / 1.366 GB, free: 29.48 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches