Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [: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.799/1.799, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.001003/0.001003, allocations: 196.5 kB / 487 MB, free: 5.371 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.129/1.129, allocations: 221.3 MB / 0.7819 GB, free: 1.383 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.0008444/0.0008447, allocations: 99.19 kB / 0.9213 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.382e-06/6.402e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1813, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5039/0.6852, allocations: 148.9 MB / 1.351 GB, free: 16.22 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001922/0.6854, allocations: 70.11 kB / 1.351 GB, free: 16.22 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01232/0.6978, allocations: 4.202 MB / 1.355 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.6978, allocations: 2.375 kB / 1.355 GB, free: 15.98 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0003717/0.6982, allocations: 487.9 kB / 1.355 GB, free: 15.51 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.6982, allocations: 10.12 kB / 1.355 GB, free: 15.51 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.583e-05/0.6983, allocations: 17.28 kB / 1.355 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.653e-05/0.6984, allocations: 187.4 kB / 1.356 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.6984, allocations: 6.969 kB / 1.356 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.918e-05/0.6985, allocations: 24.39 kB / 1.356 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001096/0.6986, allocations: 36.84 kB / 1.356 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.6987, allocations: 77.27 kB / 1.356 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.6987, allocations: 3.938 kB / 1.356 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.6988, allocations: 1.469 kB / 1.356 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.6988, allocations: 2.562 kB / 1.356 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006096/0.6994, allocations: 469.7 kB / 1.356 GB, free: 15 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.6996, allocations: 63.16 kB / 1.356 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.618e-05/0.6996, allocations: 29.45 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.034e-05/0.6996, allocations: 0.875 kB / 1.356 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.904e-05/0.6997, allocations: 84.27 kB / 1.356 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=14): time 1.353e-06/0.6998, allocations: 0 / 1.356 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14): time 0.0002314/0.7, allocations: 116.3 kB / 1.356 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.941e-05/0.7, allocations: 56.23 kB / 1.356 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.153e-05/0.7001, allocations: 140.5 kB / 1.357 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.7001, allocations: 32.25 kB / 1.357 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.683e-05/0.7002, allocations: 106.9 kB / 1.357 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.7002, allocations: 38.44 kB / 1.357 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/0.7003, allocations: 4.25 kB / 1.357 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.475e-05/0.7003, allocations: 321.4 kB / 1.357 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.7005, allocations: 82.52 kB / 1.357 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.7007, allocations: 131.9 kB / 1.357 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.7011, allocations: 117.7 kB / 1.357 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.7011, allocations: 0.875 kB / 1.357 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007419/0.7019, allocations: 306.9 kB / 1.358 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.7019, allocations: 5.031 kB / 1.358 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.7019, allocations: 2.719 kB / 1.358 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.7019, allocations: 3.281 kB / 1.358 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.442e-05/0.702, allocations: 14.91 kB / 1.358 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.702, allocations: 2.844 kB / 1.358 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004967/0.7025, allocations: 124.4 kB / 1.358 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-05/0.7025, allocations: 24.38 kB / 1.358 GB, free: 14.1 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: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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.492e-05/0.7026, allocations: 124.5 kB / 1.358 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.688e-05/0.7026, allocations: 9 kB / 1.358 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.576e-05/0.7027, allocations: 16.41 kB / 1.358 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.7027, allocations: 1.641 kB / 1.358 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.7027, allocations: 1.094 kB / 1.358 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.7027, allocations: 0.6562 kB / 1.358 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.7028, allocations: 184.5 kB / 1.358 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.7028, allocations: 4.812 kB / 1.358 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.399e-05/0.7029, allocations: 8.875 kB / 1.358 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.7029, allocations: 1.578 kB / 1.358 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.7029, allocations: 6.75 kB / 1.358 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.7029, allocations: 0.75 kB / 1.358 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.7029, allocations: 0 / 1.358 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001606/0.7031, allocations: 143.7 kB / 1.358 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.237e-05/0.7031, allocations: 88.38 kB / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.7032, allocations: 6.453 kB / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.107e-05/0.7032, allocations: 0.7969 kB / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.73e-05/0.7032, allocations: 12.08 kB / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.7032, allocations: 5.172 kB / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.366e-05/0.7033, allocations: 103 kB / 1.359 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002619/0.7036, allocations: 50.3 kB / 1.359 GB, free: 13.55 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0001345/0.7037, allocations: 120 kB / 1.359 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003415/0.704, allocations: 251.6 kB / 1.359 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.7041, allocations: 0 / 1.359 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.762e-05/0.7041, allocations: 46.64 kB / 1.359 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002063/0.7043, allocations: 18.75 kB / 1.359 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002946/0.7046, allocations: 164.2 kB / 1.359 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.7048, allocations: 0.7304 MB / 1.36 GB, free: 12.53 MB / 0.8073 GB Notification: Performance of SimCode: time 2.5e-07/0.7048, allocations: 0 / 1.36 GB, free: 12.53 MB / 0.8073 GB Notification: Performance of Templates: time 0.005144/0.71, allocations: 2.424 MB / 1.362 GB, free: 12.24 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches