Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.34/1.34, allocations: 289.8 MB / 297.1 MB, free: 6.645 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.0009825/0.0009825, allocations: 176.2 kB / 366.3 MB, free: 1.957 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.024/1.024, allocations: 205.1 MB / 0.6256 GB, free: 5.801 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.0008035/0.0008034, allocations: 86.52 kB / 0.7395 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.093e-06/7.113e-06, allocations: 3.938 kB / 0.859 GB, free: 13.32 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3853/0.3853, allocations: 116.3 MB / 0.9726 GB, free: 68.39 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1297/0.5151, allocations: 138.7 MB / 1.108 GB, free: 9.793 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001798/0.5153, allocations: 71.89 kB / 1.108 GB, free: 9.723 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.0104/0.5257, allocations: 3.65 MB / 1.112 GB, free: 6.09 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.5257, allocations: 0 / 1.112 GB, free: 6.09 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.0004761/0.5262, allocations: 482.1 kB / 1.112 GB, free: 5.559 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.5262, allocations: 12.03 kB / 1.112 GB, free: 5.547 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.249e-05/0.5263, allocations: 23.81 kB / 1.112 GB, free: 5.523 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.5264, allocations: 171.8 kB / 1.112 GB, free: 5.316 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.5265, allocations: 11.98 kB / 1.112 GB, free: 5.305 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.195e-05/0.5265, allocations: 31.98 kB / 1.112 GB, free: 5.273 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001595/0.5267, allocations: 75.98 kB / 1.112 GB, free: 5.199 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002801/0.527, allocations: 193.5 kB / 1.113 GB, free: 5.004 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.527, allocations: 3.906 kB / 1.113 GB, free: 5 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.527, allocations: 15.95 kB / 1.113 GB, free: 4.984 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.527, allocations: 4 kB / 1.113 GB, free: 4.98 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006555/0.5277, allocations: 0.5085 MB / 1.113 GB, free: 4.434 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.528, allocations: 249.8 kB / 1.113 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.5282, allocations: 125.2 kB / 1.114 GB, free: 4.059 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.184e-05/0.5282, allocations: 4 kB / 1.114 GB, free: 4.055 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003971/0.5286, allocations: 311.7 kB / 1.114 GB, free: 3.738 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 1.552e-06/0.5286, allocations: 0 / 1.114 GB, free: 3.738 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0005341/0.5292, allocations: 355.1 kB / 1.114 GB, free: 3.383 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/0.5292, allocations: 59.83 kB / 1.114 GB, free: 3.312 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.237e-05/0.5293, allocations: 128.8 kB / 1.114 GB, free: 3.18 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.984e-05/0.5294, allocations: 50.62 kB / 1.114 GB, free: 3.125 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.428e-05/0.5294, allocations: 101 kB / 1.114 GB, free: 3.02 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 7.76e-05/0.5295, allocations: 102.8 kB / 1.115 GB, free: 2.918 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/0.5295, allocations: 4 kB / 1.115 GB, free: 2.914 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.625e-05/0.5296, allocations: 334.8 kB / 1.115 GB, free: 2.578 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.5299, allocations: 165.3 kB / 1.115 GB, free: 2.418 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/0.5302, allocations: 255.2 kB / 1.115 GB, free: 2.137 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003794/0.5306, allocations: 145.3 kB / 1.115 GB, free: 2 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.5306, allocations: 0 / 1.115 GB, free: 2 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008341/0.5315, allocations: 472 kB / 1.116 GB, free: 1.531 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.5315, allocations: 4.938 kB / 1.116 GB, free: 1.527 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.5315, allocations: 4 kB / 1.116 GB, free: 1.523 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.5315, allocations: 4 kB / 1.116 GB, free: 1.52 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.679e-05/0.5316, allocations: 27.86 kB / 1.116 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.5316, allocations: 8.297 kB / 1.116 GB, free: 1.484 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003727/0.532, allocations: 79.94 kB / 1.116 GB, free: 1.406 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/0.532, allocations: 28 kB / 1.116 GB, free: 1.379 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.0001291/0.5322, allocations: 149.9 kB / 1.116 GB, free: 1.223 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.979e-05/0.5322, allocations: 27.8 kB / 1.116 GB, free: 1.195 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.909e-05/0.5323, allocations: 30.06 kB / 1.116 GB, free: 1.164 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.5323, allocations: 4.656 kB / 1.116 GB, free: 1.16 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.5323, allocations: 0 / 1.116 GB, free: 1.16 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.5323, allocations: 7.984 kB / 1.116 GB, free: 1.152 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.5333, allocations: 0.795 MB / 1.117 GB, free: 308 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.5334, allocations: 4 kB / 1.117 GB, free: 304 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.297e-05/0.5334, allocations: 19.92 kB / 1.117 GB, free: 284 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.5334, allocations: 4 kB / 1.117 GB, free: 280 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.535e-05/0.5334, allocations: 16.91 kB / 1.117 GB, free: 264 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.5335, allocations: 4 kB / 1.117 GB, free: 260 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.5335, allocations: 11.84 kB / 1.117 GB, free: 248 kB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005212/0.534, allocations: 0.5007 MB / 1.118 GB, free: 15.68 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.461e-05/0.5341, allocations: 100.8 kB / 1.118 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.565e-05/0.5341, allocations: 23.98 kB / 1.118 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.5342, allocations: 7.984 kB / 1.118 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.5344, allocations: 91.8 kB / 1.118 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.64e-05/0.5345, allocations: 39.97 kB / 1.118 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.409e-05/0.5345, allocations: 93.56 kB / 1.118 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003446/0.5349, allocations: 84.64 kB / 1.118 GB, free: 15.23 MB / 0.7292 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.0001956/0.5351, allocations: 150.2 kB / 1.118 GB, free: 15.08 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006103/0.5357, allocations: 468.2 kB / 1.119 GB, free: 14.6 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.5357, allocations: 0 / 1.119 GB, free: 14.6 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.536, allocations: 243.9 kB / 1.119 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.5362, allocations: 25.59 kB / 1.119 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006231/0.5368, allocations: 356.2 kB / 1.119 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003816/0.5372, allocations: 0.788 MB / 1.12 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of SimCode: time 2.61e-07/0.5372, allocations: 0 / 1.12 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of Templates: time 0.007106/0.5443, allocations: 4.873 MB / 1.125 GB, free: 8.336 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)