Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.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.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") [: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.358/1.358, allocations: 249.4 MB / 256.7 MB, free: 6.988 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.001021/0.001021, allocations: 181.2 kB / 316 MB, free: 3.566 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.522/1.522, allocations: 205.1 MB / 0.5667 GB, free: 15.67 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.0009438/0.0009442, allocations: 90.2 kB / 0.671 GB, free: 4.797 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.356e-06/8.386e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.1985, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6548/0.8534, allocations: 132.1 MB / 1.014 GB, free: 6.602 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.8537, allocations: 68.92 kB / 1.014 GB, free: 6.566 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.004213/0.8579, allocations: 1.313 MB / 1.015 GB, free: 5.441 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.059e-05/0.8579, allocations: 4 kB / 1.015 GB, free: 5.438 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005758/0.8585, allocations: 426.5 kB / 1.015 GB, free: 4.98 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.8586, allocations: 8.781 kB / 1.015 GB, free: 4.973 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.783e-05/0.8586, allocations: 15.81 kB / 1.015 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.8588, allocations: 181.9 kB / 1.016 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.8588, allocations: 4 kB / 1.016 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.045e-05/0.8589, allocations: 4 kB / 1.016 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001436/0.859, allocations: 55.3 kB / 1.016 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001392/0.8592, allocations: 80.8 kB / 1.016 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.8592, allocations: 7.844 kB / 1.016 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.8592, allocations: 3.938 kB / 1.016 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.8592, allocations: 4 kB / 1.016 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004881/0.8597, allocations: 341.8 kB / 1.016 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.8599, allocations: 75.11 kB / 1.016 GB, free: 4.215 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.94e-05/0.8599, allocations: 28.36 kB / 1.016 GB, free: 4.191 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.86, allocations: 224 / 1.016 GB, free: 4.191 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001878/0.8602, allocations: 89.14 kB / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.8602, allocations: 0 / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0002392/0.8604, allocations: 94.03 kB / 1.016 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/0.8605, allocations: 58.66 kB / 1.016 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.8606, allocations: 131.8 kB / 1.016 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.8606, allocations: 25.7 kB / 1.017 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.165e-05/0.8607, allocations: 95.28 kB / 1.017 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.8607, allocations: 26.8 kB / 1.017 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-06/0.8608, allocations: 0 / 1.017 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.8609, allocations: 330.6 kB / 1.017 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.382e-05/0.861, allocations: 26.81 kB / 1.017 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.713e-05/0.861, allocations: 56.25 kB / 1.017 GB, free: 3.289 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.531e-05/0.8611, allocations: 21.05 kB / 1.017 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.8611, allocations: 0 / 1.017 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001702/0.8613, allocations: 123.2 kB / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.8613, allocations: 4 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.8613, allocations: 0 / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.8613, allocations: 4 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.8614, allocations: 12 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.8615, allocations: 3.984 kB / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.8616, allocations: 31.92 kB / 1.017 GB, free: 3.109 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.8616, allocations: 7.438 kB / 1.017 GB, free: 3.105 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 0.0001015/0.8617, allocations: 108.9 kB / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.309e-05/0.8617, allocations: 11.91 kB / 1.017 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.076e-05/0.8618, allocations: 19.52 kB / 1.017 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.8618, allocations: 11.98 kB / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.8618, allocations: 0 / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.8618, allocations: 0 / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.862, allocations: 184.5 kB / 1.018 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.862, allocations: 0 / 1.018 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.548e-05/0.8621, allocations: 10.81 kB / 1.018 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.8621, allocations: 7.906 kB / 1.018 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.8621, allocations: 0 / 1.018 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.8621, allocations: 3.984 kB / 1.018 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.8621, allocations: 3.938 kB / 1.018 GB, free: 2.734 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001824/0.8623, allocations: 135 kB / 1.018 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.533e-05/0.8624, allocations: 88.95 kB / 1.018 GB, free: 2.496 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.8624, allocations: 0 / 1.018 GB, free: 2.496 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.8626, allocations: 23.98 kB / 1.018 GB, free: 2.473 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.8626, allocations: 18.72 kB / 1.018 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.8626, allocations: 7.875 kB / 1.018 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.746e-05/0.8627, allocations: 99.02 kB / 1.018 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002109/0.8629, allocations: 23.91 kB / 1.018 GB, free: 2.34 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,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.0001475/0.8631, allocations: 101.7 kB / 1.018 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001645/0.8633, allocations: 78.55 kB / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.8633, allocations: 4.062 kB / 1.018 GB, free: 2.176 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.293e-05/0.8634, allocations: 42.5 kB / 1.018 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002418/0.8636, allocations: 20.25 kB / 1.018 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004008/0.864, allocations: 151 kB / 1.018 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003694/0.8644, allocations: 0.7309 MB / 1.019 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of SimCode: time 2.21e-07/0.8644, allocations: 0 / 1.019 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of Templates: time 0.00388/0.8683, allocations: 1.384 MB / 1.02 GB, free: 15.86 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches