Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.342/1.342, allocations: 249.4 MB / 256.7 MB, free: 7.035 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 184.3 kB / 316 MB, free: 3.531 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.1 MB / 0.5667 GB, free: 15.74 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 94.95 kB / 0.671 GB, free: 4.883 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.685e-06/7.715e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2089, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6295/0.8384, allocations: 131.8 MB / 1.013 GB, free: 6.816 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.8387, allocations: 77.56 kB / 1.013 GB, free: 6.773 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002414/0.8411, allocations: 0.6198 MB / 1.014 GB, free: 6.246 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.8412, allocations: 0 / 1.014 GB, free: 6.246 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004805/0.8417, allocations: 365.7 kB / 1.014 GB, free: 5.852 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.8417, allocations: 8.031 kB / 1.014 GB, free: 5.844 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.585e-05/0.8418, allocations: 7.906 kB / 1.014 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001819/0.8419, allocations: 182.6 kB / 1.014 GB, free: 5.621 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.192e-05/0.842, allocations: 4 kB / 1.014 GB, free: 5.617 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/0.842, allocations: 0 / 1.014 GB, free: 5.617 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.378e-05/0.8421, allocations: 26.17 kB / 1.014 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.485e-05/0.8422, allocations: 48.75 kB / 1.015 GB, free: 5.551 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.8422, allocations: 0 / 1.015 GB, free: 5.551 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.8422, allocations: 7.922 kB / 1.015 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.8423, allocations: 0 / 1.015 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004598/0.8427, allocations: 268.1 kB / 1.015 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.638e-05/0.8428, allocations: 48.25 kB / 1.015 GB, free: 5.211 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.027e-05/0.8429, allocations: 19.42 kB / 1.015 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.458e-05/0.8429, allocations: 0 / 1.015 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.216e-05/0.843, allocations: 66.5 kB / 1.015 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.843, allocations: 0 / 1.015 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002058/0.8432, allocations: 83.39 kB / 1.015 GB, free: 5.047 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.549e-05/0.8433, allocations: 51.41 kB / 1.015 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.156e-05/0.8434, allocations: 111 kB / 1.015 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.8435, allocations: 25.7 kB / 1.015 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.263e-05/0.8435, allocations: 92.06 kB / 1.015 GB, free: 4.754 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.836e-05/0.8435, allocations: 11.44 kB / 1.015 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.498e-06/0.8435, allocations: 0 / 1.015 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.916e-05/0.8436, allocations: 326.4 kB / 1.016 GB, free: 4.422 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.578e-05/0.8437, allocations: 23.06 kB / 1.016 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.225e-05/0.8437, allocations: 43.36 kB / 1.016 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.046e-05/0.8438, allocations: 19.48 kB / 1.016 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.8438, allocations: 4 kB / 1.016 GB, free: 4.336 MB / 0.6355 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001433/0.8439, allocations: 88.17 kB / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.844, allocations: 4 kB / 1.016 GB, free: 4.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.844, allocations: 4.469 kB / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.844, allocations: 0 / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.132e-05/0.8441, allocations: 11.94 kB / 1.016 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.8441, allocations: 0 / 1.016 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.8442, allocations: 20.05 kB / 1.016 GB, free: 4.215 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.8442, allocations: 7.938 kB / 1.016 GB, free: 4.207 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition4,$whenCondition3,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,$whenCondition2,onCounter.reset,$PRE.reset.pulseStart,reset.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 8.091e-05/0.8443, allocations: 112.5 kB / 1.016 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.114e-05/0.8443, allocations: 11.89 kB / 1.016 GB, free: 4.082 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.829e-05/0.8444, allocations: 7.875 kB / 1.016 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.8444, allocations: 0 / 1.016 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.8444, allocations: 4.094 kB / 1.016 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.8444, allocations: 3.984 kB / 1.016 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004475/0.8449, allocations: 343.5 kB / 1.016 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.8449, allocations: 7.984 kB / 1.016 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.236e-05/0.8449, allocations: 4.812 kB / 1.016 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.8449, allocations: 0 / 1.016 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.8449, allocations: 4 kB / 1.016 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.8449, allocations: 0 / 1.016 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8449, allocations: 0 / 1.016 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001523/0.8451, allocations: 169.9 kB / 1.016 GB, free: 3.52 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.18e-05/0.8451, allocations: 85.02 kB / 1.017 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.8452, allocations: 10.62 kB / 1.017 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.8453, allocations: 19.89 kB / 1.017 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.63e-05/0.8454, allocations: 11.92 kB / 1.017 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.8454, allocations: 0 / 1.017 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.645e-05/0.8454, allocations: 94.02 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002317/0.8457, allocations: 16.28 kB / 1.017 GB, free: 3.281 MB / 0.6355 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 (booPul.y,onCounter.reset,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,onCounter.y,booPul.pulseStart,reset.pulseStart) * 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.0001369/0.8458, allocations: 105.4 kB / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000143/0.846, allocations: 52.44 kB / 1.017 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.846, allocations: 0 / 1.017 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.228e-05/0.846, allocations: 35.11 kB / 1.017 GB, free: 3.105 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002388/0.8463, allocations: 4.188 kB / 1.017 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003198/0.8466, allocations: 114.1 kB / 1.017 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.8469, allocations: 0.7075 MB / 1.018 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of SimCode: time 2.3e-07/0.8469, allocations: 0 / 1.018 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of Templates: time 0.002978/0.8499, allocations: 0.9215 MB / 1.019 GB, free: 1.34 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,onCounter.trigger,onCounter.reset,onCounter.y Variables in the result:$whenCondition1,booPul.Twidth,booPul.period,booPul.startTime,booPul.width,onCounter.reset,onCounter.trigger,onCounter.y,onCounter.y_start,reset.Twidth,reset.period,reset.startTime,reset.width,time