Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.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 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.604/1.604, allocations: 297.8 MB / 313.7 MB, free: 148 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 183.3 kB / 384.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 223.2 MB / 0.6626 GB, free: 4.398 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000808/0.0008079, allocations: 92.73 kB / 0.7808 GB, free: 43.72 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004114/0.0004114, allocations: 12 kB / 0.9088 GB, free: 0.6992 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.604/0.6044, allocations: 120.3 MB / 1.026 GB, free: 57.02 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1837/0.7882, allocations: 141.8 MB / 1.165 GB, free: 448 kB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.7885, allocations: 71.95 kB / 1.165 GB, free: 376 kB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01108/0.7995, allocations: 3.992 MB / 1.169 GB, free: 12.42 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.595e-06/0.7996, allocations: 0 / 1.169 GB, free: 12.42 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.127e-05/0.7996, allocations: 8 kB / 1.169 GB, free: 12.41 MB / 0.7448 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.0007207/0.8003, allocations: 491.3 kB / 1.169 GB, free: 11.87 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.8004, allocations: 12.03 kB / 1.169 GB, free: 11.86 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.8005, allocations: 28.73 kB / 1.169 GB, free: 11.83 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001262/0.8007, allocations: 172.3 kB / 1.169 GB, free: 11.62 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.865e-05/0.8007, allocations: 20.36 kB / 1.169 GB, free: 11.61 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.864e-05/0.8008, allocations: 40.36 kB / 1.17 GB, free: 11.57 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003719/0.8012, allocations: 214 kB / 1.17 GB, free: 11.35 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.8012, allocations: 192 / 1.17 GB, free: 11.35 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.651e-05/0.8013, allocations: 23.91 kB / 1.17 GB, free: 11.33 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.8013, allocations: 4 kB / 1.17 GB, free: 11.32 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.8015, allocations: 87.89 kB / 1.17 GB, free: 11.24 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008188/0.8023, allocations: 0.5523 MB / 1.17 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/0.8027, allocations: 290.6 kB / 1.171 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.8029, allocations: 136.8 kB / 1.171 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.8029, allocations: 4 kB / 1.171 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007834/0.8037, allocations: 0.5711 MB / 1.171 GB, free: 9.625 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=48): time 2.304e-06/0.8038, allocations: 0 / 1.171 GB, free: 9.625 MB / 0.7448 GB Notification: Performance of matching and sorting (n=48): time 0.0009934/0.8048, allocations: 0.6082 MB / 1.172 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.8048, allocations: 63.84 kB / 1.172 GB, free: 8.934 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.8049, allocations: 137.7 kB / 1.172 GB, free: 8.789 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 7.829e-05/0.805, allocations: 57.69 kB / 1.172 GB, free: 8.727 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.392e-05/0.8051, allocations: 105 kB / 1.172 GB, free: 8.621 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.415e-05/0.8052, allocations: 106.9 kB / 1.172 GB, free: 8.516 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.668e-05/0.8053, allocations: 12 kB / 1.172 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.8054, allocations: 346.7 kB / 1.173 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.8057, allocations: 185.1 kB / 1.173 GB, free: 7.973 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003972/0.8061, allocations: 296 kB / 1.173 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004864/0.8067, allocations: 357.7 kB / 1.174 GB, free: 7.262 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.8067, allocations: 4 kB / 1.174 GB, free: 7.258 MB / 0.7448 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008744/0.8076, allocations: 0.5643 MB / 1.174 GB, free: 6.672 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.037e-05/0.8076, allocations: 71.39 kB / 1.174 GB, free: 6.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.8077, allocations: 4 kB / 1.174 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.8077, allocations: 4 kB / 1.174 GB, free: 6.582 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.442e-05/0.8078, allocations: 29.78 kB / 1.174 GB, free: 6.555 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.8078, allocations: 4.312 kB / 1.174 GB, free: 6.551 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.8082, allocations: 87.88 kB / 1.174 GB, free: 6.465 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.096e-05/0.8082, allocations: 31.98 kB / 1.174 GB, free: 6.434 MB / 0.7448 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 () * Number of clocked 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.0001818/0.8084, allocations: 174.9 kB / 1.174 GB, free: 6.254 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.425e-05/0.8085, allocations: 19.81 kB / 1.174 GB, free: 6.234 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.061e-05/0.8086, allocations: 42.28 kB / 1.175 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.8086, allocations: 7.984 kB / 1.175 GB, free: 6.184 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.8086, allocations: 4 kB / 1.175 GB, free: 6.18 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.8086, allocations: 1.5 kB / 1.175 GB, free: 6.18 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.81, allocations: 0.9623 MB / 1.175 GB, free: 5.148 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.86e-06/0.81, allocations: 4 kB / 1.175 GB, free: 5.145 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.063e-05/0.81, allocations: 11.94 kB / 1.175 GB, free: 5.133 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-06/0.8101, allocations: 11.92 kB / 1.176 GB, free: 5.121 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-05/0.8101, allocations: 23.97 kB / 1.176 GB, free: 5.098 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.8101, allocations: 11.98 kB / 1.176 GB, free: 5.086 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.8101, allocations: 0 / 1.176 GB, free: 5.086 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007732/0.8109, allocations: 0.5807 MB / 1.176 GB, free: 4.477 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.426e-05/0.811, allocations: 100.8 kB / 1.176 GB, free: 4.359 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.563e-05/0.8111, allocations: 27.98 kB / 1.176 GB, free: 4.332 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.8112, allocations: 12 kB / 1.176 GB, free: 4.32 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.8113, allocations: 103.7 kB / 1.176 GB, free: 4.219 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-05/0.8114, allocations: 39.95 kB / 1.176 GB, free: 4.18 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.116e-05/0.8115, allocations: 96.89 kB / 1.176 GB, free: 4.086 MB / 0.7448 GB Notification: Performance of sort global known variables: time 4.61e-07/0.8115, allocations: 0 / 1.176 GB, free: 4.086 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004277/0.8119, allocations: 104 kB / 1.177 GB, free: 3.984 MB / 0.7448 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) * Number of clocked states: 0 () * 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.0002565/0.8122, allocations: 159.6 kB / 1.177 GB, free: 3.816 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0008433/0.813, allocations: 0.5715 MB / 1.177 GB, free: 3.219 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.813, allocations: 0 / 1.177 GB, free: 3.219 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003444/0.8134, allocations: 275.6 kB / 1.178 GB, free: 2.949 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.8138, allocations: 53.53 kB / 1.178 GB, free: 2.898 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008645/0.8147, allocations: 0.4939 MB / 1.178 GB, free: 2.371 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.815, allocations: 0.7338 MB / 1.179 GB, free: 1.609 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001281/0.8151, allocations: 38.95 kB / 1.179 GB, free: 1.57 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.8152, allocations: 47.41 kB / 1.179 GB, free: 1.527 MB / 0.7448 GB Notification: Performance of SimCode: time 7.71e-07/0.8152, allocations: 0 / 1.179 GB, free: 1.527 MB / 0.7448 GB Notification: Performance of Templates: time 0.008573/0.8238, allocations: 4.578 MB / 1.183 GB, free: 13.01 MB / 0.7605 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)