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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.628/1.628, allocations: 289.9 MB / 297.4 MB, free: 6.367 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.001096/0.001096, allocations: 184.8 kB / 366.7 MB, free: 1.648 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.807/1.807, allocations: 205.3 MB / 0.626 GB, free: 7.191 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.0009829/0.0009826, allocations: 95.78 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.039e-05/2.043e-05, allocations: 8 kB / 0.8597 GB, free: 13.06 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6642/0.6643, allocations: 116.3 MB / 0.9733 GB, free: 76.23 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.179/0.8434, allocations: 138.8 MB / 1.109 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.8436, allocations: 72.52 kB / 1.109 GB, free: 11.32 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01131/0.855, allocations: 3.949 MB / 1.113 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.293e-06/0.855, allocations: 0 / 1.113 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.236e-05/0.855, allocations: 4 kB / 1.113 GB, free: 7.43 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.0008206/0.8559, allocations: 482.4 kB / 1.113 GB, free: 6.898 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.794e-05/0.8559, allocations: 8.031 kB / 1.113 GB, free: 6.891 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001727/0.8561, allocations: 27.84 kB / 1.113 GB, free: 6.863 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.8563, allocations: 178.8 kB / 1.113 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.147e-05/0.8564, allocations: 15.98 kB / 1.113 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.8565, allocations: 24 kB / 1.113 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00025/0.8568, allocations: 82.59 kB / 1.114 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004066/0.8572, allocations: 193.5 kB / 1.114 GB, free: 6.336 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.8572, allocations: 3.938 kB / 1.114 GB, free: 6.332 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-05/0.8573, allocations: 13.84 kB / 1.114 GB, free: 6.32 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.8573, allocations: 8 kB / 1.114 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009172/0.8582, allocations: 0.4996 MB / 1.114 GB, free: 5.777 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004119/0.8586, allocations: 258.7 kB / 1.114 GB, free: 5.516 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.8588, allocations: 125.2 kB / 1.115 GB, free: 5.391 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.8589, allocations: 7.891 kB / 1.115 GB, free: 5.383 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000798/0.8597, allocations: 0.5462 MB / 1.115 GB, free: 4.828 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.094e-06/0.8597, allocations: 224 / 1.115 GB, free: 4.828 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0007207/0.8604, allocations: 427.8 kB / 1.116 GB, free: 4.406 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.003e-05/0.8605, allocations: 63.78 kB / 1.116 GB, free: 4.332 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.8606, allocations: 121.1 kB / 1.116 GB, free: 4.207 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.571e-05/0.8607, allocations: 53.62 kB / 1.116 GB, free: 4.148 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.801e-05/0.8608, allocations: 105.3 kB / 1.116 GB, free: 4.043 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.8609, allocations: 106.8 kB / 1.116 GB, free: 3.938 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.305e-05/0.8609, allocations: 4 kB / 1.116 GB, free: 3.934 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001743/0.8611, allocations: 330.8 kB / 1.116 GB, free: 3.602 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003138/0.8614, allocations: 165.3 kB / 1.116 GB, free: 3.441 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003607/0.8618, allocations: 259.8 kB / 1.117 GB, free: 3.156 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.8622, allocations: 140.5 kB / 1.117 GB, free: 3.02 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.8623, allocations: 0 / 1.117 GB, free: 3.02 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009095/0.8632, allocations: 466.9 kB / 1.117 GB, free: 2.555 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.042e-05/0.8633, allocations: 79.36 kB / 1.117 GB, free: 2.465 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.8633, allocations: 4 kB / 1.117 GB, free: 2.461 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.8633, allocations: 4 kB / 1.117 GB, free: 2.457 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.375e-05/0.8634, allocations: 23.92 kB / 1.117 GB, free: 2.434 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.8634, allocations: 11.92 kB / 1.117 GB, free: 2.422 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.8638, allocations: 71.94 kB / 1.117 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.204e-05/0.8638, allocations: 28 kB / 1.117 GB, free: 2.324 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.000161/0.864, allocations: 146 kB / 1.118 GB, free: 2.176 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.061e-05/0.8641, allocations: 39.64 kB / 1.118 GB, free: 2.137 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.238e-05/0.8642, allocations: 30.19 kB / 1.118 GB, free: 2.102 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.8642, allocations: 4 kB / 1.118 GB, free: 2.098 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.8642, allocations: 4 kB / 1.118 GB, free: 2.094 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.8642, allocations: 3.984 kB / 1.118 GB, free: 2.09 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.8654, allocations: 0.8692 MB / 1.119 GB, free: 1.164 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.8654, allocations: 4 kB / 1.119 GB, free: 1.16 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.766e-05/0.8655, allocations: 11.94 kB / 1.119 GB, free: 1.148 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.8655, allocations: 4 kB / 1.119 GB, free: 1.145 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.011e-05/0.8656, allocations: 27.53 kB / 1.119 GB, free: 1.121 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.608e-06/0.8656, allocations: 7.922 kB / 1.119 GB, free: 1.113 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.8656, allocations: 4 kB / 1.119 GB, free: 1.109 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006442/0.8662, allocations: 0.5756 MB / 1.119 GB, free: 488 kB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.277e-05/0.8663, allocations: 92.92 kB / 1.119 GB, free: 376 kB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.625e-05/0.8664, allocations: 23.94 kB / 1.119 GB, free: 352 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.718e-05/0.8665, allocations: 8.734 kB / 1.119 GB, free: 344 kB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.8666, allocations: 99.8 kB / 1.119 GB, free: 244 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.384e-05/0.8667, allocations: 35.97 kB / 1.119 GB, free: 208 kB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.919e-05/0.8668, allocations: 95.27 kB / 1.12 GB, free: 112 kB / 0.7136 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8668, allocations: 0 / 1.12 GB, free: 112 kB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003849/0.8672, allocations: 87.98 kB / 1.12 GB, free: 24 kB / 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.0002726/0.8674, allocations: 150.2 kB / 1.12 GB, free: 15.87 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007074/0.8682, allocations: 0.5161 MB / 1.12 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.8682, allocations: 11.28 kB / 1.12 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003003/0.8685, allocations: 247.8 kB / 1.12 GB, free: 15.08 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.8688, allocations: 19.98 kB / 1.121 GB, free: 15.06 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006744/0.8694, allocations: 346.5 kB / 1.121 GB, free: 14.69 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.8698, allocations: 0.7387 MB / 1.122 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001309/0.8699, allocations: 39.28 kB / 1.122 GB, free: 13.88 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.8701, allocations: 43.41 kB / 1.122 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of SimCode: time 3.687e-06/0.8701, allocations: 0 / 1.122 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of Templates: time 0.008437/0.8785, allocations: 4.367 MB / 1.126 GB, free: 9.559 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)