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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1-maint.8.1.x/package.mo): time 1.673/1.673, allocations: 293 MB / 309 MB, free: 4.777 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.001018/0.001018, allocations: 168.6 kB / 378.7 MB, free: 1.008 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.704/1.704, allocations: 205.4 MB / 0.6383 GB, free: 8.207 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.0008888/0.0008887, allocations: 94.67 kB / 0.7527 GB, free: 62.65 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003889, allocations: 15.98 kB / 0.8768 GB, free: 10.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2739, allocations: 116.4 MB / 0.9905 GB, free: 5.855 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6675/0.9415, allocations: 139.6 MB / 1.127 GB, free: 34.33 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/0.9417, allocations: 70.64 kB / 1.127 GB, free: 34.27 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01003/0.9518, allocations: 3.995 MB / 1.131 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.783e-06/0.9518, allocations: 0 / 1.131 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.145e-05/0.9519, allocations: 8 kB / 1.131 GB, free: 31.55 MB / 0.7292 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.0006959/0.9526, allocations: 492.8 kB / 1.131 GB, free: 31.03 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.9526, allocations: 8.25 kB / 1.131 GB, free: 31.02 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.9528, allocations: 33.02 kB / 1.131 GB, free: 31 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.9529, allocations: 172.7 kB / 1.131 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.167e-05/0.953, allocations: 23.88 kB / 1.131 GB, free: 30.77 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.483e-05/0.9531, allocations: 35.8 kB / 1.132 GB, free: 30.74 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003981/0.9535, allocations: 222.7 kB / 1.132 GB, free: 30.59 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.9535, allocations: 192 / 1.132 GB, free: 30.59 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.9535, allocations: 22.83 kB / 1.132 GB, free: 30.57 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.9535, allocations: 0 / 1.132 GB, free: 30.57 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.9537, allocations: 90.44 kB / 1.132 GB, free: 30.5 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009203/0.9547, allocations: 0.5493 MB / 1.132 GB, free: 30.03 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004032/0.9551, allocations: 291.1 kB / 1.133 GB, free: 29.77 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.9553, allocations: 143.1 kB / 1.133 GB, free: 29.64 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.9553, allocations: 0 / 1.133 GB, free: 29.64 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000778/0.9561, allocations: 0.566 MB / 1.133 GB, free: 29.27 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=48): time 2.305e-06/0.9561, allocations: 0 / 1.133 GB, free: 29.27 MB / 0.7292 GB Notification: Performance of matching and sorting (n=48): time 0.001051/0.9572, allocations: 0.6093 MB / 1.134 GB, free: 28.71 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.9572, allocations: 61.06 kB / 1.134 GB, free: 28.64 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.9574, allocations: 139.3 kB / 1.134 GB, free: 28.51 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 7.67e-05/0.9575, allocations: 60.98 kB / 1.134 GB, free: 28.45 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.492e-05/0.9576, allocations: 101.2 kB / 1.134 GB, free: 28.35 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.9577, allocations: 109.7 kB / 1.134 GB, free: 28.25 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.9577, allocations: 16 kB / 1.134 GB, free: 28.23 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.9578, allocations: 339.4 kB / 1.135 GB, free: 27.9 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003978/0.9582, allocations: 194.9 kB / 1.135 GB, free: 27.73 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004231/0.9587, allocations: 286.2 kB / 1.135 GB, free: 27.45 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004477/0.9591, allocations: 358.1 kB / 1.136 GB, free: 27.07 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.9591, allocations: 0 / 1.136 GB, free: 27.07 MB / 0.7292 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009845/0.9601, allocations: 0.5652 MB / 1.136 GB, free: 26.52 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 6.697e-05/0.9602, allocations: 67.2 kB / 1.136 GB, free: 26.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.9602, allocations: 4 kB / 1.136 GB, free: 26.45 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.909e-05/0.9603, allocations: 6.062 kB / 1.136 GB, free: 26.44 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.631e-05/0.9604, allocations: 31.7 kB / 1.136 GB, free: 26.41 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.9604, allocations: 4.828 kB / 1.136 GB, free: 26.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004598/0.9608, allocations: 88.3 kB / 1.136 GB, free: 26.34 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-05/0.9609, allocations: 34.95 kB / 1.136 GB, free: 26.31 MB / 0.7292 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.0002015/0.9611, allocations: 177 kB / 1.136 GB, free: 26.13 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.16e-05/0.9612, allocations: 30.72 kB / 1.137 GB, free: 26.11 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.056e-05/0.9613, allocations: 39.78 kB / 1.137 GB, free: 26.07 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.9613, allocations: 4 kB / 1.137 GB, free: 26.07 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.9613, allocations: 0 / 1.137 GB, free: 26.07 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.9613, allocations: 6.109 kB / 1.137 GB, free: 26.06 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.9628, allocations: 0.9686 MB / 1.137 GB, free: 25.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.9628, allocations: 0.6562 kB / 1.137 GB, free: 25.18 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.906e-05/0.9629, allocations: 19.08 kB / 1.138 GB, free: 25.17 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.9629, allocations: 7.938 kB / 1.138 GB, free: 25.16 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.708e-05/0.963, allocations: 20.34 kB / 1.138 GB, free: 25.15 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/0.963, allocations: 5.234 kB / 1.138 GB, free: 25.14 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.963, allocations: 0.625 kB / 1.138 GB, free: 25.14 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007003/0.9637, allocations: 0.58 MB / 1.138 GB, free: 24.59 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.778e-05/0.9637, allocations: 98.03 kB / 1.138 GB, free: 24.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.69e-05/0.9638, allocations: 28.17 kB / 1.138 GB, free: 24.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.9639, allocations: 14.72 kB / 1.138 GB, free: 24.44 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.9642, allocations: 101 kB / 1.138 GB, free: 24.39 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.588e-05/0.9642, allocations: 36.16 kB / 1.138 GB, free: 24.37 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.657e-05/0.9643, allocations: 96.97 kB / 1.138 GB, free: 24.28 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9643, allocations: 0 / 1.138 GB, free: 24.28 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004922/0.9648, allocations: 107.5 kB / 1.139 GB, free: 24.18 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) * 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.0002551/0.9651, allocations: 163 kB / 1.139 GB, free: 24.02 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000898/0.966, allocations: 0.5816 MB / 1.139 GB, free: 23.46 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.966, allocations: 3.938 kB / 1.139 GB, free: 23.46 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003516/0.9663, allocations: 259.7 kB / 1.14 GB, free: 23.22 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004261/0.9668, allocations: 53.77 kB / 1.14 GB, free: 23.18 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008571/0.9676, allocations: 0.4944 MB / 1.14 GB, free: 22.7 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/0.9679, allocations: 0.737 MB / 1.141 GB, free: 21.95 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001456/0.968, allocations: 36.94 kB / 1.141 GB, free: 21.92 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.9681, allocations: 48.67 kB / 1.141 GB, free: 21.88 MB / 0.7292 GB Notification: Performance of SimCode: time 3.8e-07/0.9682, allocations: 0.8438 kB / 1.141 GB, free: 21.88 MB / 0.7292 GB Notification: Performance of Templates: time 0.01077/0.9789, allocations: 4.578 MB / 1.145 GB, free: 19.37 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)