Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.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.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.y|cha.u|cha.up|cha.y|cha.down|changeSampler.u|changeSampler.y|increaseSampler.u|increaseSampler.y|decreaseSampler.u|decreaseSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.y|cha.u|cha.up|cha.y|cha.down|changeSampler.u|changeSampler.y|increaseSampler.u|increaseSampler.y|decreaseSampler.u|decreaseSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change") [: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.704/1.704, allocations: 390.4 MB / 397.7 MB, free: 11.2 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.0008984/0.0008984, allocations: 190.8 kB / 490.8 MB, free: 1.91 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.052/1.052, allocations: 221.4 MB / 0.7863 GB, free: 13.67 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.0007984/0.0007984, allocations: 105.8 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.642e-06/6.652e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1664, allocations: 143 MB / 1.212 GB, free: 40.08 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4545/0.6209, allocations: 153.7 MB / 1.362 GB, free: 17.38 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001717/0.6211, allocations: 79.73 kB / 1.362 GB, free: 17.38 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.0158/0.6369, allocations: 6.801 MB / 1.368 GB, free: 17 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.37e-05/0.637, allocations: 4.531 kB / 1.368 GB, free: 17 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005827/0.6376, allocations: 0.491 MB / 1.369 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.71e-05/0.6376, allocations: 11.94 kB / 1.369 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.511e-05/0.6376, allocations: 24.25 kB / 1.369 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003759/0.638, allocations: 295 kB / 1.369 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.6381, allocations: 3.578 kB / 1.369 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.018e-05/0.6381, allocations: 11.88 kB / 1.369 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001225/0.6382, allocations: 61.67 kB / 1.369 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001374/0.6384, allocations: 92.62 kB / 1.369 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.6384, allocations: 0 / 1.369 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.6384, allocations: 3.188 kB / 1.369 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.6384, allocations: 2.812 kB / 1.369 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005486/0.6389, allocations: 436.4 kB / 1.37 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.6391, allocations: 110.4 kB / 1.37 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.785e-05/0.6392, allocations: 38.23 kB / 1.37 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.6392, allocations: 5.328 kB / 1.37 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001122/0.6393, allocations: 111.6 kB / 1.37 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.6393, allocations: 0.875 kB / 1.37 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.000234/0.6396, allocations: 138.5 kB / 1.37 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.811e-05/0.6396, allocations: 55.05 kB / 1.37 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002664/0.6398, allocations: 295.6 kB / 1.37 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.6399, allocations: 31.77 kB / 1.37 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.07e-05/0.6399, allocations: 113 kB / 1.371 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.64, allocations: 35.98 kB / 1.371 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.137e-05/0.64, allocations: 0 / 1.371 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.014e-05/0.6401, allocations: 336.5 kB / 1.371 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.6402, allocations: 73.12 kB / 1.371 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.6403, allocations: 126.8 kB / 1.371 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.6405, allocations: 94.3 kB / 1.371 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.6405, allocations: 0.7969 kB / 1.371 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003923/0.6409, allocations: 259.3 kB / 1.371 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/0.641, allocations: 8.062 kB / 1.371 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.641, allocations: 3.594 kB / 1.371 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.641, allocations: 2.156 kB / 1.371 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/0.6412, allocations: 45.7 kB / 1.372 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.6412, allocations: 2.25 kB / 1.372 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.6413, allocations: 34.14 kB / 1.372 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.6414, allocations: 18.19 kB / 1.372 GB, free: 31.14 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.decreaseSampler.y,decreaseSampler.y,$PRE.increaseSampler.y,increaseSampler.y,$PRE.changeSampler.y,changeSampler.y,$whenCondition2,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition4,$whenCondition3,$whenCondition1,$PRE.cha.u,cha.u,cha.y,cha.up,cha.down,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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 6.82e-05/0.6415, allocations: 118.3 kB / 1.372 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.061e-05/0.6415, allocations: 23.8 kB / 1.372 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002316/0.6417, allocations: 152.9 kB / 1.372 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.6417, allocations: 1.344 kB / 1.372 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.6417, allocations: 3.906 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.6418, allocations: 3.344 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004785/0.6422, allocations: 491.6 kB / 1.372 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.6423, allocations: 4 kB / 1.372 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.6424, allocations: 21.89 kB / 1.372 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.6424, allocations: 1.625 kB / 1.372 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.6424, allocations: 2.516 kB / 1.372 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.6424, allocations: 5.188 kB / 1.372 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.6424, allocations: 5.062 kB / 1.372 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000216/0.6426, allocations: 250 kB / 1.373 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.552e-05/0.6427, allocations: 100.8 kB / 1.373 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.77e-05/0.6427, allocations: 11.03 kB / 1.373 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.6429, allocations: 20.34 kB / 1.373 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.303e-05/0.6429, allocations: 15.98 kB / 1.373 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.643, allocations: 5.859 kB / 1.373 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001576/0.6431, allocations: 202.6 kB / 1.373 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002812/0.6434, allocations: 58.17 kB / 1.373 GB, free: 30.32 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: 13 (cha.y,cha.up,cha.down,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,cha.u,changeSampler.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,increaseSampler.y,decreaseSampler.y) * Number of discrete states: 3 (timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,cha.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000519/0.6439, allocations: 315.7 kB / 1.373 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000224/0.6442, allocations: 152.6 kB / 1.373 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.6442, allocations: 4.312 kB / 1.373 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.37e-05/0.6443, allocations: 61.59 kB / 1.374 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.6445, allocations: 42.77 kB / 1.374 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004735/0.645, allocations: 293.9 kB / 1.374 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/0.6453, allocations: 0.7814 MB / 1.375 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/0.6453, allocations: 0 / 1.375 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of Templates: time 0.005434/0.6508, allocations: 2.794 MB / 1.377 GB, free: 29.08 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Change.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches