Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") [: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 8.0.1-maint.8.0.x/package.mo): time 1.322/1.322, allocations: 285.5 MB / 292.8 MB, free: 10.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009374/0.0009375, allocations: 181.4 kB / 361.1 MB, free: 7.047 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.044/1.044, allocations: 205.1 MB / 0.6195 GB, free: 10.27 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007717/0.0007717, allocations: 92.62 kB / 0.7325 GB, free: 44.19 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.029e-05/1.031e-05, allocations: 4 kB / 0.8511 GB, free: 2.906 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4312/0.4312, allocations: 115.3 MB / 0.9637 GB, free: 78.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1398/0.571, allocations: 137.3 MB / 1.098 GB, free: 2.652 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/0.5712, allocations: 64.67 kB / 1.098 GB, free: 2.59 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.01147/0.5827, allocations: 3.76 MB / 1.102 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.5827, allocations: 3.562 kB / 1.102 GB, free: 14.91 MB / 0.7136 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.0003995/0.5832, allocations: 455.4 kB / 1.102 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.5832, allocations: 8.031 kB / 1.102 GB, free: 14.4 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.589e-05/0.5833, allocations: 15.91 kB / 1.102 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.5834, allocations: 173 kB / 1.102 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.5834, allocations: 7.922 kB / 1.102 GB, free: 14.17 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/0.5835, allocations: 16 kB / 1.102 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.26e-05/0.5835, allocations: 16 kB / 1.102 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.628e-05/0.5836, allocations: 45.69 kB / 1.102 GB, free: 14.09 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.5836, allocations: 0 / 1.102 GB, free: 14.09 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.5837, allocations: 7.984 kB / 1.102 GB, free: 14.08 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.5837, allocations: 4 kB / 1.102 GB, free: 14.07 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005027/0.5842, allocations: 389.1 kB / 1.103 GB, free: 13.66 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.652e-05/0.5842, allocations: 34.52 kB / 1.103 GB, free: 13.61 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.426e-05/0.5843, allocations: 16.86 kB / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.5843, allocations: 3.906 kB / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.611e-05/0.5844, allocations: 75.48 kB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.5844, allocations: 0 / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0002029/0.5846, allocations: 101.5 kB / 1.103 GB, free: 13.4 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.5847, allocations: 51.41 kB / 1.103 GB, free: 13.34 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.748e-05/0.5848, allocations: 123.6 kB / 1.103 GB, free: 13.21 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.966e-05/0.5848, allocations: 33.69 kB / 1.103 GB, free: 13.17 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.887e-05/0.5849, allocations: 100 kB / 1.103 GB, free: 13.07 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.5849, allocations: 15.81 kB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.43e-05/0.5849, allocations: 7.938 kB / 1.103 GB, free: 13.05 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.412e-05/0.585, allocations: 322.8 kB / 1.103 GB, free: 12.72 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.5852, allocations: 75.98 kB / 1.104 GB, free: 12.65 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001674/0.5853, allocations: 132 kB / 1.104 GB, free: 12.5 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004254/0.5858, allocations: 108.5 kB / 1.104 GB, free: 12.4 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5858, allocations: 4 kB / 1.104 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006897/0.5865, allocations: 281.2 kB / 1.104 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.5865, allocations: 7.984 kB / 1.104 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.5865, allocations: 4 kB / 1.104 GB, free: 12.1 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.5865, allocations: 0 / 1.104 GB, free: 12.1 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.94e-05/0.5866, allocations: 4 kB / 1.104 GB, free: 12.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.5866, allocations: 9.688 kB / 1.104 GB, free: 12.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000471/0.587, allocations: 115.9 kB / 1.104 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.682e-05/0.5871, allocations: 19.98 kB / 1.104 GB, free: 11.96 MB / 0.7136 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 8.523e-05/0.5872, allocations: 118.7 kB / 1.104 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.5872, allocations: 11.89 kB / 1.104 GB, free: 11.82 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.773e-05/0.5872, allocations: 8.375 kB / 1.104 GB, free: 11.82 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.5873, allocations: 4 kB / 1.104 GB, free: 11.82 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.5873, allocations: 1.5 kB / 1.104 GB, free: 11.82 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.5873, allocations: 0 / 1.104 GB, free: 11.82 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.5874, allocations: 162.2 kB / 1.104 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.5874, allocations: 3.906 kB / 1.104 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.109e-05/0.5874, allocations: 4 kB / 1.104 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.5874, allocations: 0 / 1.104 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.5874, allocations: 3.984 kB / 1.104 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.5874, allocations: 0 / 1.104 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.5874, allocations: 11.92 kB / 1.104 GB, free: 11.6 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001339/0.5876, allocations: 114.3 kB / 1.105 GB, free: 11.47 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3e-05/0.5876, allocations: 83.45 kB / 1.105 GB, free: 11.38 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.082e-05/0.5877, allocations: 11.91 kB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.637e-05/0.5877, allocations: 3.984 kB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.182e-05/0.5877, allocations: 8 kB / 1.105 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.5877, allocations: 11.92 kB / 1.105 GB, free: 11.34 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.371e-05/0.5878, allocations: 87.28 kB / 1.105 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002763/0.5881, allocations: 55.86 kB / 1.105 GB, free: 11.2 MB / 0.7136 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.0001399/0.5882, allocations: 111 kB / 1.105 GB, free: 11.08 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003193/0.5885, allocations: 229 kB / 1.105 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.5885, allocations: 0 / 1.105 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.544e-05/0.5886, allocations: 39.94 kB / 1.105 GB, free: 10.8 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.5888, allocations: 19.97 kB / 1.105 GB, free: 10.78 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002619/0.5891, allocations: 116.1 kB / 1.105 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002221/0.5893, allocations: 0.7164 MB / 1.106 GB, free: 9.898 MB / 0.7136 GB Notification: Performance of SimCode: time 1.483e-06/0.5893, allocations: 0 / 1.106 GB, free: 9.898 MB / 0.7136 GB Notification: Performance of Templates: time 0.004177/0.5935, allocations: 2.233 MB / 1.108 GB, free: 7.754 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe 2>&1)