Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.109/2.109, allocations: 284.9 MB / 292.2 MB, free: 10.73 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001571/0.00157, allocations: 173.3 kB / 360.4 MB, free: 7.5 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.65/1.65, allocations: 205.1 MB / 0.6188 GB, free: 12.43 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001224/0.001223, allocations: 92.55 kB / 0.7318 GB, free: 44.96 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.052e-05/1.066e-05, allocations: 4 kB / 0.8503 GB, free: 3.832 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5433/0.5433, allocations: 115.2 MB / 0.9628 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2008/0.7442, allocations: 137.6 MB / 1.097 GB, free: 3.176 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.7445, allocations: 64.58 kB / 1.097 GB, free: 3.113 MB / 0.698 GB Notification: Performance of FrontEnd: time 0.01916/0.7636, allocations: 3.656 MB / 1.101 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.7637, allocations: 0 / 1.101 GB, free: 15.53 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000783/0.7645, allocations: 486.5 kB / 1.101 GB, free: 15 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.7645, allocations: 8.031 kB / 1.101 GB, free: 14.99 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.7647, allocations: 28.5 kB / 1.101 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.7648, allocations: 171 kB / 1.101 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.833e-05/0.7649, allocations: 11.98 kB / 1.101 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.765, allocations: 31.98 kB / 1.102 GB, free: 14.71 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000296/0.7653, allocations: 75.98 kB / 1.102 GB, free: 14.64 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005038/0.7658, allocations: 195.8 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.7659, allocations: 4.562 kB / 1.102 GB, free: 14.44 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.815e-05/0.7659, allocations: 11.98 kB / 1.102 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.766, allocations: 4 kB / 1.102 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.767, allocations: 0.5064 MB / 1.102 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006259/0.7677, allocations: 260.3 kB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003082/0.768, allocations: 118.6 kB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.768, allocations: 7.984 kB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007424/0.7688, allocations: 309 kB / 1.103 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.985e-06/0.7688, allocations: 0 / 1.103 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.001085/0.7699, allocations: 351.2 kB / 1.103 GB, free: 12.84 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.77, allocations: 59.84 kB / 1.103 GB, free: 12.76 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.7701, allocations: 120.8 kB / 1.103 GB, free: 12.64 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.7703, allocations: 49.69 kB / 1.103 GB, free: 12.58 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.094e-05/0.7704, allocations: 105 kB / 1.104 GB, free: 12.47 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.7705, allocations: 102.8 kB / 1.104 GB, free: 12.37 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.802e-05/0.7706, allocations: 7.938 kB / 1.104 GB, free: 12.36 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.7707, allocations: 334.8 kB / 1.104 GB, free: 12.03 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005349/0.7713, allocations: 165.3 kB / 1.104 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006184/0.7719, allocations: 255.2 kB / 1.104 GB, free: 11.59 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007208/0.7726, allocations: 137.4 kB / 1.105 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.7727, allocations: 7.938 kB / 1.105 GB, free: 11.44 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001589/0.7743, allocations: 465 kB / 1.105 GB, free: 10.98 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.7743, allocations: 4.625 kB / 1.105 GB, free: 10.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.7743, allocations: 4 kB / 1.105 GB, free: 10.97 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.632e-05/0.7744, allocations: 4 kB / 1.105 GB, free: 10.97 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.7745, allocations: 27.86 kB / 1.105 GB, free: 10.94 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.7745, allocations: 8.25 kB / 1.105 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007684/0.7753, allocations: 89.19 kB / 1.105 GB, free: 10.85 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.555e-05/0.7754, allocations: 28.55 kB / 1.105 GB, free: 10.82 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.falCleTruIni.clr,$PRE.falCleFalIni.clr,$PRE.truCleTruIni.clr,$PRE.truCleFalIni.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.falCleTruIni.u,falCleTruIni.u,falCleTruIni.clr,$PRE.falCleTruIni.y,falCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,falCleFalIni.clr,$PRE.falCleFalIni.y,falCleFalIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,truCleTruIni.clr,$PRE.truCleTruIni.y,truCleTruIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,truCleFalIni.clr,$PRE.truCleFalIni.y,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.togInp.y,togInp.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 2 * 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.0002538/0.7757, allocations: 150.8 kB / 1.105 GB, free: 10.67 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.499e-05/0.7758, allocations: 23.81 kB / 1.105 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.7759, allocations: 41.8 kB / 1.105 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.884e-06/0.7759, allocations: 4 kB / 1.105 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.7759, allocations: 4.609 kB / 1.105 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.776, allocations: 4 kB / 1.105 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/0.7779, allocations: 0.7988 MB / 1.106 GB, free: 9.742 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.7779, allocations: 0 / 1.106 GB, free: 9.742 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.351e-05/0.778, allocations: 17.56 kB / 1.106 GB, free: 9.727 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.778, allocations: 4 kB / 1.106 GB, free: 9.723 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.343e-05/0.7781, allocations: 19.97 kB / 1.106 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.7781, allocations: 0 / 1.106 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.268e-05/0.7781, allocations: 15.83 kB / 1.106 GB, free: 9.688 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009459/0.7791, allocations: 0.5007 MB / 1.107 GB, free: 9.133 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.7792, allocations: 97.47 kB / 1.107 GB, free: 9.02 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.7794, allocations: 27.98 kB / 1.107 GB, free: 8.992 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.7796, allocations: 4 kB / 1.107 GB, free: 8.988 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002909/0.7799, allocations: 99.78 kB / 1.107 GB, free: 8.891 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.001e-05/0.78, allocations: 35.97 kB / 1.107 GB, free: 8.855 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.348e-05/0.78, allocations: 88.27 kB / 1.107 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0006582/0.7807, allocations: 83.98 kB / 1.107 GB, free: 8.688 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 48 (swiCleInp1.clr,swiCleInp.clr,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,falCleTruIni.u,falCleTruIni.y,falCleFalIni.u,falCleFalIni.y,truCleTruIni.u,truCleTruIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y,cleInp.y,togInp.y,falCleFalIni.clr,falCleTruIni.clr,truCleFalIni.clr,truCleTruIni.clr) * Number of discrete states: 12 (truCleFalIni.u,truCleFalIni.y,falCleTruIni.u,falCleTruIni.y,truCleTruIni.u,truCleTruIni.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y,falCleFalIni.u,falCleFalIni.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0003094/0.781, allocations: 149.1 kB / 1.107 GB, free: 8.531 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001195/0.7822, allocations: 464.2 kB / 1.108 GB, free: 8.07 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.7823, allocations: 0 / 1.108 GB, free: 8.07 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005086/0.7828, allocations: 251.8 kB / 1.108 GB, free: 7.824 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.7832, allocations: 20.86 kB / 1.108 GB, free: 7.805 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.7843, allocations: 357 kB / 1.108 GB, free: 7.418 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005736/0.7849, allocations: 0.788 MB / 1.109 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of SimCode: time 8.42e-07/0.7849, allocations: 0 / 1.109 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of Templates: time 0.01355/0.7985, allocations: 4.861 MB / 1.114 GB, free: 1.836 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)