Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.664/1.664, allocations: 293 MB / 309 MB, free: 4.793 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.0009827, allocations: 180.6 kB / 378.7 MB, free: 1.02 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.667/1.667, allocations: 205.4 MB / 0.6383 GB, free: 8.141 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.0007968/0.0007971, allocations: 88.3 kB / 0.7527 GB, free: 62.62 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005209/0.000521, allocations: 16 kB / 0.8768 GB, free: 10.41 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2736, allocations: 116.4 MB / 0.9905 GB, free: 5.867 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6821/0.9558, allocations: 139.6 MB / 1.127 GB, free: 34.39 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/0.956, allocations: 71.55 kB / 1.127 GB, free: 34.34 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.009641/0.9656, allocations: 3.982 MB / 1.131 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.745e-06/0.9657, allocations: 0 / 1.131 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.18e-05/0.9657, allocations: 8 kB / 1.131 GB, free: 31.63 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.0006882/0.9664, allocations: 496.8 kB / 1.131 GB, free: 31.11 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.9665, allocations: 8.969 kB / 1.131 GB, free: 31.1 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.9666, allocations: 28.03 kB / 1.131 GB, free: 31.08 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.9667, allocations: 172.5 kB / 1.131 GB, free: 30.87 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.967e-05/0.9667, allocations: 27.73 kB / 1.131 GB, free: 30.85 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.03e-05/0.9668, allocations: 35.84 kB / 1.131 GB, free: 30.82 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003231/0.9671, allocations: 210 kB / 1.132 GB, free: 30.67 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.9672, allocations: 192 / 1.132 GB, free: 30.67 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.9672, allocations: 19.27 kB / 1.132 GB, free: 30.66 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.9672, allocations: 4 kB / 1.132 GB, free: 30.65 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.9674, allocations: 97.16 kB / 1.132 GB, free: 30.57 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006513/0.9681, allocations: 0.5396 MB / 1.132 GB, free: 30.12 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003721/0.9684, allocations: 306.7 kB / 1.133 GB, free: 29.84 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.9686, allocations: 142.8 kB / 1.133 GB, free: 29.71 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 9.077e-06/0.9686, allocations: 0 / 1.133 GB, free: 29.71 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000636/0.9693, allocations: 0.5164 MB / 1.133 GB, free: 29.36 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=48): time 2.505e-06/0.9693, allocations: 0 / 1.133 GB, free: 29.36 MB / 0.7292 GB Notification: Performance of matching and sorting (n=48): time 0.0008986/0.9702, allocations: 0.6206 MB / 1.134 GB, free: 28.8 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.9702, allocations: 57.62 kB / 1.134 GB, free: 28.73 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.9704, allocations: 139.1 kB / 1.134 GB, free: 28.59 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 6.217e-05/0.9704, allocations: 56.47 kB / 1.134 GB, free: 28.54 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.151e-05/0.9705, allocations: 112 kB / 1.134 GB, free: 28.43 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.611e-05/0.9706, allocations: 104.9 kB / 1.134 GB, free: 28.33 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.9706, allocations: 16 kB / 1.134 GB, free: 28.32 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.777e-05/0.9707, allocations: 339 kB / 1.135 GB, free: 27.98 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003013/0.971, allocations: 175 kB / 1.135 GB, free: 27.83 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003331/0.9713, allocations: 285.2 kB / 1.135 GB, free: 27.55 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003848/0.9717, allocations: 353.9 kB / 1.135 GB, free: 27.17 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.9717, allocations: 4 kB / 1.135 GB, free: 27.17 MB / 0.7292 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007836/0.9725, allocations: 0.5565 MB / 1.136 GB, free: 26.63 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.892e-05/0.9726, allocations: 69.75 kB / 1.136 GB, free: 26.56 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/0.9726, allocations: 4 kB / 1.136 GB, free: 26.55 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.9726, allocations: 4 kB / 1.136 GB, free: 26.55 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.916e-05/0.9727, allocations: 28.31 kB / 1.136 GB, free: 26.53 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.9727, allocations: 5.578 kB / 1.136 GB, free: 26.52 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.9731, allocations: 84.05 kB / 1.136 GB, free: 26.46 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.194e-05/0.9732, allocations: 32 kB / 1.136 GB, free: 26.43 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.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$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,$PRE.falCleTruIni.clr,falCleTruIni.clr,falCleTruIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,$PRE.truCleTruIni.clr,truCleTruIni.clr,truCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,$PRE.falCleFalIni.clr,falCleFalIni.clr,falCleFalIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,$PRE.truCleFalIni.clr,truCleFalIni.clr,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.latInp.y,latInp.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.0001848/0.9734, allocations: 187.8 kB / 1.136 GB, free: 26.24 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.012e-05/0.9734, allocations: 26.53 kB / 1.136 GB, free: 26.22 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.039e-05/0.9735, allocations: 38.89 kB / 1.136 GB, free: 26.18 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.9735, allocations: 5.734 kB / 1.136 GB, free: 26.18 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.9735, allocations: 0 / 1.136 GB, free: 26.18 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.106e-06/0.9735, allocations: 2.766 kB / 1.136 GB, free: 26.18 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.9747, allocations: 0.8926 MB / 1.137 GB, free: 25.36 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.9747, allocations: 0.5625 kB / 1.137 GB, free: 25.36 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.189e-05/0.9748, allocations: 14.14 kB / 1.137 GB, free: 25.35 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.9748, allocations: 4.562 kB / 1.137 GB, free: 25.34 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.87e-05/0.9748, allocations: 24.02 kB / 1.137 GB, free: 25.33 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.9748, allocations: 1.219 kB / 1.137 GB, free: 25.33 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.9748, allocations: 4.5 kB / 1.137 GB, free: 25.32 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007932/0.9756, allocations: 0.5715 MB / 1.138 GB, free: 24.79 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.283e-05/0.9757, allocations: 102.2 kB / 1.138 GB, free: 24.67 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.86e-05/0.9758, allocations: 19.89 kB / 1.138 GB, free: 24.65 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.9759, allocations: 19.73 kB / 1.138 GB, free: 24.64 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002444/0.9762, allocations: 81.34 kB / 1.138 GB, free: 24.6 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.195e-05/0.9763, allocations: 31.55 kB / 1.138 GB, free: 24.57 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 6.597e-05/0.9764, allocations: 99.59 kB / 1.138 GB, free: 24.48 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9764, allocations: 0 / 1.138 GB, free: 24.48 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0005391/0.9769, allocations: 99.84 kB / 1.138 GB, free: 24.39 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 48 ($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.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,falCleFalIni.u,falCleFalIni.clr,falCleFalIni.y,truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 18 (truCleFalIni.u,truCleFalIni.clr,truCleFalIni.y,falCleTruIni.u,falCleTruIni.clr,falCleTruIni.y,truCleTruIni.u,truCleTruIni.clr,truCleTruIni.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,falCleFalIni.u,falCleFalIni.clr,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.0003696/0.9773, allocations: 168.1 kB / 1.139 GB, free: 24.22 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0009538/0.9783, allocations: 0.5744 MB / 1.139 GB, free: 23.68 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.9783, allocations: 1.125 kB / 1.139 GB, free: 23.68 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004156/0.9787, allocations: 307 kB / 1.139 GB, free: 23.39 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.9791, allocations: 39.02 kB / 1.139 GB, free: 23.37 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009786/0.9801, allocations: 0.5229 MB / 1.14 GB, free: 22.88 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.9803, allocations: 0.7336 MB / 1.141 GB, free: 22.12 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001335/0.9805, allocations: 36.42 kB / 1.141 GB, free: 22.1 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.9806, allocations: 42.7 kB / 1.141 GB, free: 22.06 MB / 0.7292 GB Notification: Performance of SimCode: time 2.2e-07/0.9806, allocations: 4 kB / 1.141 GB, free: 22.06 MB / 0.7292 GB Notification: Performance of Templates: time 0.009414/0.99, allocations: 4.273 MB / 1.145 GB, free: 19.72 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)