Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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 10.0.0-master/package.mo): time 1.725/1.725, allocations: 390.4 MB / 397.7 MB, free: 11.31 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.0008667/0.0008667, allocations: 183 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.059/1.059, allocations: 221.4 MB / 0.7863 GB, free: 13.81 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.0007991/0.0007991, allocations: 96.64 kB / 0.9264 GB, free: 14.35 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.253e-06/7.273e-06, allocations: 4 kB / 1.072 GB, free: 164.7 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.168, allocations: 143 MB / 1.212 GB, free: 21.92 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4534/0.6214, allocations: 150.1 MB / 1.358 GB, free: 2.617 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001623/0.6216, allocations: 74.5 kB / 1.358 GB, free: 2.578 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01021/0.6319, allocations: 3.761 MB / 1.362 GB, free: 15.41 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.6319, allocations: 0 / 1.362 GB, free: 15.41 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003234/0.6322, allocations: 457.9 kB / 1.362 GB, free: 14.91 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 2.84e-05/0.6323, allocations: 8.031 kB / 1.362 GB, free: 14.9 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.341e-05/0.6323, allocations: 19.89 kB / 1.362 GB, free: 14.88 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.15e-05/0.6324, allocations: 174.9 kB / 1.363 GB, free: 14.67 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.6324, allocations: 0.75 kB / 1.363 GB, free: 14.67 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.821e-05/0.6325, allocations: 15.98 kB / 1.363 GB, free: 14.65 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.476e-05/0.6325, allocations: 19 kB / 1.363 GB, free: 14.64 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.161e-05/0.6326, allocations: 52.61 kB / 1.363 GB, free: 14.59 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.841e-06/0.6326, allocations: 0 / 1.363 GB, free: 14.59 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.6326, allocations: 4.75 kB / 1.363 GB, free: 14.59 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.015e-06/0.6327, allocations: 3.938 kB / 1.363 GB, free: 14.58 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004379/0.6331, allocations: 399.4 kB / 1.363 GB, free: 14.21 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 4.343e-05/0.6331, allocations: 30.14 kB / 1.363 GB, free: 14.17 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.645e-05/0.6332, allocations: 16.17 kB / 1.363 GB, free: 14.16 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-06/0.6332, allocations: 0 / 1.363 GB, free: 14.16 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.135e-05/0.6333, allocations: 85.52 kB / 1.363 GB, free: 14.07 MB / 0.823 GB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.6333, allocations: 0 / 1.363 GB, free: 14.07 MB / 0.823 GB Notification: Performance of matching and sorting (n=10): time 0.0001764/0.6335, allocations: 96.52 kB / 1.363 GB, free: 13.98 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.6335, allocations: 55.41 kB / 1.363 GB, free: 13.92 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.753e-05/0.6336, allocations: 127.6 kB / 1.363 GB, free: 13.8 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.6336, allocations: 29.7 kB / 1.363 GB, free: 13.77 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.159e-05/0.6337, allocations: 95.94 kB / 1.364 GB, free: 13.67 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.69e-05/0.6337, allocations: 27.22 kB / 1.364 GB, free: 13.65 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.418e-05/0.6337, allocations: 4 kB / 1.364 GB, free: 13.64 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.064e-05/0.6338, allocations: 317.5 kB / 1.364 GB, free: 13.33 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.6339, allocations: 76.42 kB / 1.364 GB, free: 13.28 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.6341, allocations: 126.2 kB / 1.364 GB, free: 13.17 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003797/0.6345, allocations: 110.9 kB / 1.364 GB, free: 13.09 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.6345, allocations: 0 / 1.364 GB, free: 13.09 MB / 0.823 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006196/0.6351, allocations: 274.8 kB / 1.364 GB, free: 12.86 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 8.145e-06/0.6351, allocations: 8 kB / 1.364 GB, free: 12.85 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.6351, allocations: 0 / 1.364 GB, free: 12.85 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.6352, allocations: 7.906 kB / 1.364 GB, free: 12.84 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.737e-05/0.6352, allocations: 11.44 kB / 1.364 GB, free: 12.84 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.6352, allocations: 192 / 1.364 GB, free: 12.84 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004479/0.6356, allocations: 123.8 kB / 1.365 GB, free: 12.71 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/0.6357, allocations: 19.98 kB / 1.365 GB, free: 12.7 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * 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.298e-05/0.6358, allocations: 120.1 kB / 1.365 GB, free: 12.58 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.6358, allocations: 7.906 kB / 1.365 GB, free: 12.57 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.554e-05/0.6358, allocations: 12.19 kB / 1.365 GB, free: 12.56 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.6358, allocations: 0 / 1.365 GB, free: 12.56 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.6358, allocations: 0 / 1.365 GB, free: 12.56 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.6358, allocations: 3.984 kB / 1.365 GB, free: 12.56 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.274e-05/0.6359, allocations: 158 kB / 1.365 GB, free: 12.38 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.6359, allocations: 4 kB / 1.365 GB, free: 12.37 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.033e-05/0.636, allocations: 3.688 kB / 1.365 GB, free: 12.37 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.636, allocations: 7.938 kB / 1.365 GB, free: 12.36 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-06/0.636, allocations: 3.906 kB / 1.365 GB, free: 12.36 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.636, allocations: 3.938 kB / 1.365 GB, free: 12.36 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.636, allocations: 96 / 1.365 GB, free: 12.36 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001126/0.6361, allocations: 112 kB / 1.365 GB, free: 12.24 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.696e-05/0.6361, allocations: 89 kB / 1.365 GB, free: 12.14 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.6362, allocations: 4 kB / 1.365 GB, free: 12.13 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.356e-05/0.6362, allocations: 4 kB / 1.365 GB, free: 12.13 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.138e-05/0.6362, allocations: 15.08 kB / 1.365 GB, free: 12.12 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.6362, allocations: 4 kB / 1.365 GB, free: 12.11 MB / 0.823 GB Notification: Performance of sort global known variables: time 3.873e-05/0.6363, allocations: 97.77 kB / 1.365 GB, free: 12.02 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002246/0.6365, allocations: 43.94 kB / 1.365 GB, free: 11.98 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * 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.0001178/0.6366, allocations: 107.2 kB / 1.365 GB, free: 11.86 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002845/0.6369, allocations: 235.2 kB / 1.366 GB, free: 11.66 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.6369, allocations: 0 / 1.366 GB, free: 11.66 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 4.483e-05/0.637, allocations: 39.05 kB / 1.366 GB, free: 11.64 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.6372, allocations: 19.8 kB / 1.366 GB, free: 11.62 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002095/0.6374, allocations: 110.8 kB / 1.366 GB, free: 11.5 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.6376, allocations: 0.7234 MB / 1.366 GB, free: 10.75 MB / 0.823 GB Notification: Performance of SimCode: time 2.6e-07/0.6376, allocations: 0 / 1.366 GB, free: 10.75 MB / 0.823 GB Notification: Performance of Templates: time 0.003634/0.6412, allocations: 2.221 MB / 1.369 GB, free: 8.566 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches