Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.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.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.608/1.608, allocations: 297.8 MB / 313.7 MB, free: 132 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.001008/0.001008, allocations: 164.6 kB / 384.6 MB, free: 10.87 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.343/1.343, allocations: 223.2 MB / 0.6626 GB, free: 4.344 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.0008175/0.0008177, allocations: 97.48 kB / 0.7808 GB, free: 43.64 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004034/0.0004034, allocations: 12 kB / 0.9088 GB, free: 0.6914 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6123/0.6128, allocations: 120.3 MB / 1.026 GB, free: 56.77 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1875/0.8003, allocations: 141.8 MB / 1.165 GB, free: 440 kB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001782/0.8005, allocations: 68.66 kB / 1.165 GB, free: 372 kB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01083/0.8113, allocations: 3.983 MB / 1.169 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.356e-06/0.8114, allocations: 0 / 1.169 GB, free: 12.43 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.176e-05/0.8114, allocations: 4 kB / 1.169 GB, free: 12.43 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.0006653/0.8121, allocations: 499.3 kB / 1.169 GB, free: 11.88 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.8121, allocations: 12.02 kB / 1.169 GB, free: 11.87 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.8122, allocations: 32.75 kB / 1.169 GB, free: 11.84 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.8124, allocations: 164.4 kB / 1.169 GB, free: 11.64 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.372e-05/0.8124, allocations: 20.36 kB / 1.169 GB, free: 11.62 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-05/0.8125, allocations: 44.3 kB / 1.169 GB, free: 11.57 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.8128, allocations: 215 kB / 1.17 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.8129, allocations: 192 / 1.17 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.244e-05/0.8129, allocations: 15.92 kB / 1.17 GB, free: 11.34 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.8129, allocations: 0 / 1.17 GB, free: 11.34 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.8131, allocations: 102.3 kB / 1.17 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007388/0.8138, allocations: 0.5471 MB / 1.17 GB, free: 10.65 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000437/0.8143, allocations: 297.2 kB / 1.171 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.8145, allocations: 144.8 kB / 1.171 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.8145, allocations: 8 kB / 1.171 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000722/0.8153, allocations: 0.5147 MB / 1.171 GB, free: 9.68 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=48): time 1.813e-06/0.8153, allocations: 0 / 1.171 GB, free: 9.68 MB / 0.7448 GB Notification: Performance of matching and sorting (n=48): time 0.001068/0.8164, allocations: 0.6277 MB / 1.172 GB, free: 9.047 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.8164, allocations: 63.83 kB / 1.172 GB, free: 8.969 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.8165, allocations: 133.7 kB / 1.172 GB, free: 8.828 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 6.803e-05/0.8166, allocations: 61.69 kB / 1.172 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.967e-05/0.8167, allocations: 97.05 kB / 1.172 GB, free: 8.664 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.038e-05/0.8168, allocations: 106.9 kB / 1.172 GB, free: 8.559 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.191e-05/0.8168, allocations: 16 kB / 1.172 GB, free: 8.543 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.8169, allocations: 334.8 kB / 1.173 GB, free: 8.207 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003077/0.8173, allocations: 181.1 kB / 1.173 GB, free: 8.027 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003646/0.8176, allocations: 284 kB / 1.173 GB, free: 7.719 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00045/0.8181, allocations: 366.1 kB / 1.173 GB, free: 7.316 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.8181, allocations: 0 / 1.173 GB, free: 7.316 MB / 0.7448 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008039/0.8189, allocations: 0.5565 MB / 1.174 GB, free: 6.738 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.506e-05/0.819, allocations: 67.39 kB / 1.174 GB, free: 6.66 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.819, allocations: 4 kB / 1.174 GB, free: 6.656 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.819, allocations: 4 kB / 1.174 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.578e-05/0.8191, allocations: 32.17 kB / 1.174 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.8191, allocations: 4 kB / 1.174 GB, free: 6.617 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003838/0.8195, allocations: 91.88 kB / 1.174 GB, free: 6.527 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.948e-05/0.8196, allocations: 27.98 kB / 1.174 GB, free: 6.5 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.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.0001726/0.8197, allocations: 170.9 kB / 1.174 GB, free: 6.324 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.8198, allocations: 24.84 kB / 1.174 GB, free: 6.301 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.411e-05/0.8199, allocations: 34.28 kB / 1.174 GB, free: 6.266 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.8199, allocations: 11.98 kB / 1.174 GB, free: 6.254 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.8199, allocations: 0 / 1.174 GB, free: 6.254 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.8199, allocations: 0 / 1.174 GB, free: 6.254 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/0.8209, allocations: 0.8958 MB / 1.175 GB, free: 5.305 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.8209, allocations: 0 / 1.175 GB, free: 5.305 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.746e-05/0.821, allocations: 15.86 kB / 1.175 GB, free: 5.289 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.821, allocations: 6.484 kB / 1.175 GB, free: 5.285 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.422e-05/0.821, allocations: 19.97 kB / 1.175 GB, free: 5.266 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.821, allocations: 7.984 kB / 1.175 GB, free: 5.258 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.821, allocations: 3.938 kB / 1.175 GB, free: 5.254 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000678/0.8217, allocations: 0.5818 MB / 1.176 GB, free: 4.656 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.837e-05/0.8218, allocations: 92.92 kB / 1.176 GB, free: 4.547 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.471e-05/0.8219, allocations: 23.98 kB / 1.176 GB, free: 4.523 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.81e-05/0.822, allocations: 8 kB / 1.176 GB, free: 4.516 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.8221, allocations: 88.2 kB / 1.176 GB, free: 4.43 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.144e-05/0.8222, allocations: 31.97 kB / 1.176 GB, free: 4.398 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.949e-05/0.8222, allocations: 100.1 kB / 1.176 GB, free: 4.301 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8222, allocations: 0 / 1.176 GB, free: 4.301 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003664/0.8226, allocations: 99.98 kB / 1.176 GB, free: 4.203 MB / 0.7448 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.0002427/0.8228, allocations: 160.8 kB / 1.177 GB, free: 4.035 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007734/0.8236, allocations: 0.5746 MB / 1.177 GB, free: 3.438 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.8236, allocations: 4 kB / 1.177 GB, free: 3.434 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003561/0.824, allocations: 307 kB / 1.177 GB, free: 3.133 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.8243, allocations: 39.97 kB / 1.177 GB, free: 3.094 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008193/0.8252, allocations: 0.5131 MB / 1.178 GB, free: 2.559 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.8255, allocations: 0.7377 MB / 1.179 GB, free: 1.793 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001085/0.8256, allocations: 38.95 kB / 1.179 GB, free: 1.754 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.8257, allocations: 39.42 kB / 1.179 GB, free: 1.719 MB / 0.7448 GB Notification: Performance of SimCode: time 2.41e-07/0.8257, allocations: 0 / 1.179 GB, free: 1.719 MB / 0.7448 GB Notification: Performance of Templates: time 0.007283/0.833, allocations: 4.285 MB / 1.183 GB, free: 13.5 MB / 0.7605 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)