Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001657/0.001657, allocations: 193.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.7/1.7, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.723/1.723, allocations: 251.7 MB / 0.5092 GB, free: 3.117 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 71.91 kB / 0.6223 GB, free: 1.48 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6499/0.6518, allocations: 104.7 MB / 0.7245 GB, free: 12.95 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.003517/0.6554, allocations: 1.495 MB / 0.726 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0009254/0.6563, allocations: 355.9 kB / 0.7263 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.6565, allocations: 0 / 0.7263 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 6.319e-05/0.6566, allocations: 15.8 kB / 0.7263 GB, free: 11.08 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001338/0.6567, allocations: 15.86 kB / 0.7264 GB, free: 11.06 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.6571, allocations: 107.8 kB / 0.7265 GB, free: 10.96 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003291/0.6574, allocations: 251.3 kB / 0.7267 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.6577, allocations: 57 kB / 0.7268 GB, free: 10.65 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.6579, allocations: 115.7 kB / 0.7269 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.6581, allocations: 99.67 kB / 0.727 GB, free: 10.44 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.959e-05/0.6582, allocations: 24 kB / 0.727 GB, free: 10.42 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 4.442e-05/0.6582, allocations: 32 kB / 0.727 GB, free: 10.39 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.734e-05/0.6583, allocations: 71.78 kB / 0.7271 GB, free: 10.32 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.6585, allocations: 95.67 kB / 0.7272 GB, free: 10.22 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.6588, allocations: 245.2 kB / 0.7274 GB, free: 9.984 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.6589, allocations: 0 / 0.7274 GB, free: 9.984 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.695e-06/0.6589, allocations: 0 / 0.7274 GB, free: 9.984 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.269e-05/0.6589, allocations: 0 / 0.7274 GB, free: 9.984 MB / 0.545 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.00111/0.66, allocations: 494.1 kB / 0.7279 GB, free: 9.453 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.6601, allocations: 12.03 kB / 0.7279 GB, free: 9.441 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.6602, allocations: 24.73 kB / 0.7279 GB, free: 9.418 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.6607, allocations: 251.9 kB / 0.7282 GB, free: 9.133 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.014e-05/0.6608, allocations: 24.3 kB / 0.7282 GB, free: 9.109 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.745e-05/0.6608, allocations: 28.36 kB / 0.7282 GB, free: 9.082 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004472/0.6613, allocations: 202 kB / 0.7284 GB, free: 8.879 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.6613, allocations: 192 / 0.7284 GB, free: 8.879 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.843e-05/0.6613, allocations: 15.92 kB / 0.7284 GB, free: 8.863 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.6614, allocations: 8 kB / 0.7284 GB, free: 8.855 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.6616, allocations: 103.9 kB / 0.7285 GB, free: 8.754 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.6626, allocations: 0.5236 MB / 0.729 GB, free: 8.18 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007447/0.6634, allocations: 278.5 kB / 0.7293 GB, free: 7.898 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.6636, allocations: 112.9 kB / 0.7294 GB, free: 7.785 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.6636, allocations: 3.938 kB / 0.7294 GB, free: 7.781 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007534/0.6644, allocations: 486.1 kB / 0.7299 GB, free: 7.293 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 1.714e-06/0.6644, allocations: 7.938 kB / 0.7299 GB, free: 7.285 MB / 0.545 GB Notification: Performance of matching and sorting (n=42): time 0.001038/0.6654, allocations: 0.5201 MB / 0.7304 GB, free: 6.758 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.124e-05/0.6655, allocations: 59.39 kB / 0.7304 GB, free: 6.688 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.6657, allocations: 162.2 kB / 0.7306 GB, free: 6.516 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.171e-05/0.6658, allocations: 53.7 kB / 0.7307 GB, free: 6.457 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.6659, allocations: 108.9 kB / 0.7308 GB, free: 6.348 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.666, allocations: 98.92 kB / 0.7309 GB, free: 6.25 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.6662, allocations: 98.16 kB / 0.7309 GB, free: 6.148 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.6663, allocations: 338.8 kB / 0.7313 GB, free: 5.809 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.6666, allocations: 137 kB / 0.7314 GB, free: 5.676 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000304/0.6669, allocations: 223.6 kB / 0.7316 GB, free: 5.426 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003908/0.6673, allocations: 251.6 kB / 0.7319 GB, free: 5.148 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.6673, allocations: 0 / 0.7319 GB, free: 5.148 MB / 0.545 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006355/0.668, allocations: 390.6 kB / 0.7322 GB, free: 4.762 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.668, allocations: 8 kB / 0.7322 GB, free: 4.754 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.668, allocations: 320 / 0.7322 GB, free: 4.754 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.649e-05/0.668, allocations: 15.94 kB / 0.7322 GB, free: 4.738 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.078e-05/0.6681, allocations: 27.86 kB / 0.7323 GB, free: 4.711 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.6682, allocations: 4 kB / 0.7323 GB, free: 4.707 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/0.6683, allocations: 39.67 kB / 0.7323 GB, free: 4.668 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.6684, allocations: 20 kB / 0.7323 GB, free: 4.648 MB / 0.545 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.falCle.y,$PRE.truCle.y,$PRE.iniFalOut.y,$PRE.iniTruOut.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition26,$whenCondition25,tru.y,fal.y,truCle.clr,$PRE.truCle.clr,falCle.clr,$PRE.falCle.clr,iniFalOut.clr,$PRE.iniFalOut.clr,iniTruOut.clr,$PRE.iniTruOut.clr,latInp.pulseStart,$PRE.latInp.pulseStart,cleInp.pulseStart,$PRE.cleInp.pulseStart,swiCleInp1.y,swiCleInp1.clr,$PRE.swiCleInp1.clr,swiCleInp1.u,$PRE.swiCleInp1.u,swiCleInp.y,swiCleInp.clr,$PRE.swiCleInp.clr,swiCleInp.u,$PRE.swiCleInp.u,iniTruOut.y,iniTruOut.u,$PRE.iniTruOut.u,iniFalOut.y,iniFalOut.u,$PRE.iniFalOut.u,truCle.y,truCle.u,$PRE.truCle.u,falCle.y,falCle.u,$PRE.falCle.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition24,$whenCondition23,$whenCondition22,$whenCondition21) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002005/0.6686, allocations: 167 kB / 0.7325 GB, free: 4.477 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.13e-05/0.6687, allocations: 27.8 kB / 0.7325 GB, free: 4.449 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.887e-05/0.6688, allocations: 42.25 kB / 0.7326 GB, free: 4.406 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.984e-06/0.6688, allocations: 7.938 kB / 0.7326 GB, free: 4.398 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.6688, allocations: 0 / 0.7326 GB, free: 4.398 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.6688, allocations: 3.984 kB / 0.7326 GB, free: 4.395 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.6699, allocations: 0.8114 MB / 0.7334 GB, free: 3.527 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.6699, allocations: 0 / 0.7334 GB, free: 3.527 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.789e-05/0.6699, allocations: 15.86 kB / 0.7334 GB, free: 3.512 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.6699, allocations: 0 / 0.7334 GB, free: 3.512 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.764e-05/0.67, allocations: 23.97 kB / 0.7334 GB, free: 3.488 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.67, allocations: 0 / 0.7334 GB, free: 3.488 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.67, allocations: 3.938 kB / 0.7334 GB, free: 3.484 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006863/0.6707, allocations: 0.5144 MB / 0.7339 GB, free: 2.953 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.069e-05/0.6708, allocations: 92.86 kB / 0.734 GB, free: 2.844 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.899e-05/0.6708, allocations: 19.98 kB / 0.734 GB, free: 2.824 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.671, allocations: 23.97 kB / 0.734 GB, free: 2.801 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.6711, allocations: 51.92 kB / 0.7341 GB, free: 2.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-05/0.6712, allocations: 31.97 kB / 0.7341 GB, free: 2.719 MB / 0.545 GB Notification: Performance of sorting global known variables: time 7.926e-05/0.6713, allocations: 105.5 kB / 0.7342 GB, free: 2.617 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6713, allocations: 0 / 0.7342 GB, free: 2.617 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003676/0.6717, allocations: 83.98 kB / 0.7343 GB, free: 2.535 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCle.u,falCle.y,truCle.u,truCle.y,iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 14 (iniFalOut.u,iniTruOut.u,falCle.u,truCle.u,swiCleInp.u,swiCleInp.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp.y,iniTruOut.y,iniFalOut.y,truCle.y,falCle.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002061/0.6719, allocations: 146.9 kB / 0.7344 GB, free: 2.387 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007118/0.6726, allocations: 370.8 kB / 0.7348 GB, free: 2.023 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.6726, allocations: 4.562 kB / 0.7348 GB, free: 2.02 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.6729, allocations: 224 kB / 0.735 GB, free: 1.801 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.6733, allocations: 43.84 kB / 0.7351 GB, free: 1.758 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.6744, allocations: 476.5 kB / 0.7355 GB, free: 1.266 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.6748, allocations: 0.7371 MB / 0.7362 GB, free: 0.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001303/0.6749, allocations: 34.95 kB / 0.7363 GB, free: 480 kB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.675, allocations: 35.42 kB / 0.7363 GB, free: 444 kB / 0.545 GB Notification: Performance of SimCode: time 6.41e-07/0.675, allocations: 0 / 0.7363 GB, free: 444 kB / 0.545 GB Notification: Performance of Templates: time 0.008194/0.6832, allocations: 3.27 MB / 0.7395 GB, free: 13.16 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)