Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.641/1.641, allocations: 285.4 MB / 298 MB, free: 6.008 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.0009837/0.0009838, allocations: 188.2 kB / 366.4 MB, free: 2.109 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.816/1.816, allocations: 205.1 MB / 0.6248 GB, free: 7.766 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.0008215/0.0008212, allocations: 95.27 kB / 0.738 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.673e-05/4.677e-05, allocations: 8 kB / 0.8583 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8434/0.8435, allocations: 115.3 MB / 0.9709 GB, free: 77.72 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2056/1.049, allocations: 138.5 MB / 1.106 GB, free: 13.36 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/1.049, allocations: 75.12 kB / 1.106 GB, free: 13.29 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01179/1.061, allocations: 3.959 MB / 1.11 GB, free: 9.391 MB / 0.7136 GB Notification: Performance of FrontEnd: time 3.116e-06/1.061, allocations: 0 / 1.11 GB, free: 9.391 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.021e-05/1.061, allocations: 7.938 kB / 1.11 GB, free: 9.383 MB / 0.7136 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.0008012/1.062, allocations: 476.1 kB / 1.111 GB, free: 8.859 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/1.062, allocations: 12.03 kB / 1.111 GB, free: 8.848 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/1.062, allocations: 27.84 kB / 1.111 GB, free: 8.82 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/1.063, allocations: 178.9 kB / 1.111 GB, free: 8.605 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.67e-05/1.063, allocations: 27.92 kB / 1.111 GB, free: 8.578 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.933e-05/1.063, allocations: 35.98 kB / 1.111 GB, free: 8.543 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/1.063, allocations: 199.9 kB / 1.111 GB, free: 8.344 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/1.063, allocations: 0 / 1.111 GB, free: 8.344 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/1.063, allocations: 11.98 kB / 1.111 GB, free: 8.332 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/1.063, allocations: 7.984 kB / 1.111 GB, free: 8.324 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/1.063, allocations: 88 kB / 1.111 GB, free: 8.238 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009221/1.064, allocations: 0.5509 MB / 1.112 GB, free: 7.637 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004657/1.065, allocations: 293 kB / 1.112 GB, free: 7.344 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/1.065, allocations: 148.8 kB / 1.112 GB, free: 7.195 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/1.065, allocations: 0 / 1.112 GB, free: 7.195 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007337/1.066, allocations: 0.5098 MB / 1.113 GB, free: 6.676 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 4.258e-06/1.066, allocations: 0 / 1.113 GB, free: 6.676 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.0008424/1.067, allocations: 479.8 kB / 1.113 GB, free: 6.199 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/1.067, allocations: 55.84 kB / 1.113 GB, free: 6.133 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/1.067, allocations: 130.4 kB / 1.113 GB, free: 6 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.928e-05/1.067, allocations: 57.69 kB / 1.113 GB, free: 5.938 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.16e-05/1.067, allocations: 105 kB / 1.113 GB, free: 5.828 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000108/1.067, allocations: 110.8 kB / 1.113 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.528e-05/1.067, allocations: 20 kB / 1.113 GB, free: 5.699 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001395/1.067, allocations: 334.8 kB / 1.114 GB, free: 5.363 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003354/1.068, allocations: 169.3 kB / 1.114 GB, free: 5.199 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003751/1.068, allocations: 268.9 kB / 1.114 GB, free: 4.902 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/1.068, allocations: 194.1 kB / 1.114 GB, free: 4.703 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-06/1.068, allocations: 7.953 kB / 1.114 GB, free: 4.695 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008915/1.069, allocations: 0.541 MB / 1.115 GB, free: 4.137 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.295e-05/1.069, allocations: 67.39 kB / 1.115 GB, free: 4.059 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/1.069, allocations: 4 kB / 1.115 GB, free: 4.055 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/1.069, allocations: 4 kB / 1.115 GB, free: 4.051 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.059e-05/1.07, allocations: 27.86 kB / 1.115 GB, free: 4.023 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/1.07, allocations: 8.297 kB / 1.115 GB, free: 4.016 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/1.07, allocations: 87.94 kB / 1.115 GB, free: 3.93 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.327e-05/1.07, allocations: 28 kB / 1.115 GB, free: 3.902 MB / 0.7136 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 () * 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.0001627/1.07, allocations: 162 kB / 1.115 GB, free: 3.738 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.643e-05/1.07, allocations: 35.66 kB / 1.115 GB, free: 3.703 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/1.07, allocations: 34.19 kB / 1.115 GB, free: 3.668 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/1.07, allocations: 4 kB / 1.115 GB, free: 3.664 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/1.07, allocations: 0 / 1.115 GB, free: 3.664 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/1.07, allocations: 7.984 kB / 1.115 GB, free: 3.656 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/1.072, allocations: 0.8724 MB / 1.116 GB, free: 2.73 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/1.072, allocations: 6.438 kB / 1.116 GB, free: 2.727 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.077e-05/1.072, allocations: 19.92 kB / 1.116 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/1.072, allocations: 0 / 1.116 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/1.072, allocations: 23.97 kB / 1.116 GB, free: 2.684 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/1.072, allocations: 0 / 1.116 GB, free: 2.684 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.072, allocations: 0 / 1.116 GB, free: 2.684 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000812/1.073, allocations: 0.5701 MB / 1.117 GB, free: 2.098 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.877e-05/1.073, allocations: 96.81 kB / 1.117 GB, free: 1.984 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.574e-05/1.073, allocations: 31.92 kB / 1.117 GB, free: 1.953 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/1.073, allocations: 15.98 kB / 1.117 GB, free: 1.938 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/1.073, allocations: 76.28 kB / 1.117 GB, free: 1.859 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-05/1.073, allocations: 31.97 kB / 1.117 GB, free: 1.828 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.225e-05/1.073, allocations: 97.64 kB / 1.117 GB, free: 1.734 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.6e-07/1.073, allocations: 0 / 1.117 GB, free: 1.734 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004137/1.074, allocations: 104 kB / 1.117 GB, free: 1.633 MB / 0.7136 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) * 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.0002893/1.074, allocations: 152.5 kB / 1.117 GB, free: 1.48 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0008528/1.075, allocations: 0.5708 MB / 1.118 GB, free: 0.8867 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.075, allocations: 0 / 1.118 GB, free: 0.8867 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0003732/1.075, allocations: 294.5 kB / 1.118 GB, free: 0.6016 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/1.075, allocations: 34.52 kB / 1.118 GB, free: 0.5703 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000754/1.076, allocations: 386.9 kB / 1.119 GB, free: 168 kB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/1.077, allocations: 0.7416 MB / 1.119 GB, free: 15.39 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001171/1.077, allocations: 34.95 kB / 1.119 GB, free: 15.36 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/1.077, allocations: 39.42 kB / 1.119 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of SimCode: time 4.81e-07/1.077, allocations: 4 kB / 1.119 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of Templates: time 0.009598/1.086, allocations: 4.228 MB / 1.124 GB, free: 11.18 MB / 0.7292 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)