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.001393/0.001393, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002206/0.002206, allocations: 192 kB / 16.14 MB, free: 6.711 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.794/1.794, allocations: 205.1 MB / 222 MB, free: 4.766 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.692/1.692, allocations: 251.7 MB / 0.5088 GB, free: 3.371 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.001531/0.001531, allocations: 67.91 kB / 0.6216 GB, free: 1.945 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6354/0.637, allocations: 104.7 MB / 0.7238 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002846/0.6399, allocations: 1.556 MB / 0.7253 GB, free: 11.55 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006823/0.6406, allocations: 352 kB / 0.7257 GB, free: 11.21 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.442e-05/0.6406, allocations: 4 kB / 0.7257 GB, free: 11.2 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 4.812e-05/0.6407, allocations: 11.92 kB / 0.7257 GB, free: 11.19 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 8.452e-05/0.6408, allocations: 11.88 kB / 0.7257 GB, free: 11.18 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.6411, allocations: 95.86 kB / 0.7258 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002143/0.6413, allocations: 243.3 kB / 0.726 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.6415, allocations: 49 kB / 0.7261 GB, free: 10.8 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.6416, allocations: 99.72 kB / 0.7262 GB, free: 10.7 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.6417, allocations: 103.6 kB / 0.7263 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.854e-05/0.6417, allocations: 16 kB / 0.7263 GB, free: 10.58 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 3.15e-05/0.6418, allocations: 12 kB / 0.7263 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.196e-05/0.6419, allocations: 55.84 kB / 0.7264 GB, free: 10.52 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.642, allocations: 99.61 kB / 0.7264 GB, free: 10.42 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.6422, allocations: 225.3 kB / 0.7267 GB, free: 10.2 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.6422, allocations: 0 / 0.7267 GB, free: 10.2 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.002e-06/0.6422, allocations: 0 / 0.7267 GB, free: 10.2 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.313e-06/0.6423, allocations: 4 kB / 0.7267 GB, free: 10.2 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.0008609/0.6431, allocations: 494.9 kB / 0.7271 GB, free: 9.66 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.6432, allocations: 8.031 kB / 0.7271 GB, free: 9.652 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.449e-05/0.6432, allocations: 28.75 kB / 0.7272 GB, free: 9.625 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003833/0.6436, allocations: 251.9 kB / 0.7274 GB, free: 9.34 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.6437, allocations: 20.36 kB / 0.7274 GB, free: 9.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.098e-05/0.6437, allocations: 32.36 kB / 0.7275 GB, free: 9.289 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.6441, allocations: 202 kB / 0.7277 GB, free: 9.086 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.6441, allocations: 192 / 0.7277 GB, free: 9.086 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.6442, allocations: 19.91 kB / 0.7277 GB, free: 9.066 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.6442, allocations: 4 kB / 0.7277 GB, free: 9.062 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002141/0.6444, allocations: 99.88 kB / 0.7278 GB, free: 8.965 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008942/0.6453, allocations: 0.5235 MB / 0.7283 GB, free: 8.391 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006871/0.646, allocations: 285.2 kB / 0.7286 GB, free: 8.105 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/0.6462, allocations: 112.9 kB / 0.7287 GB, free: 7.992 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.6462, allocations: 7.938 kB / 0.7287 GB, free: 7.984 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007669/0.647, allocations: 482.1 kB / 0.7291 GB, free: 7.5 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 1.823e-06/0.647, allocations: 0 / 0.7291 GB, free: 7.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=42): time 0.0009629/0.648, allocations: 0.524 MB / 0.7296 GB, free: 6.969 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.648, allocations: 63.39 kB / 0.7297 GB, free: 6.895 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.6482, allocations: 162.8 kB / 0.7299 GB, free: 6.723 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.443e-05/0.6483, allocations: 53.69 kB / 0.7299 GB, free: 6.664 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.006e-05/0.6483, allocations: 112.9 kB / 0.73 GB, free: 6.551 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.177e-05/0.6484, allocations: 94.94 kB / 0.7301 GB, free: 6.457 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.6486, allocations: 98.16 kB / 0.7302 GB, free: 6.355 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.6487, allocations: 334.8 kB / 0.7305 GB, free: 6.02 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.649, allocations: 137 kB / 0.7307 GB, free: 5.887 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/0.6493, allocations: 223.6 kB / 0.7309 GB, free: 5.637 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/0.6496, allocations: 247.6 kB / 0.7311 GB, free: 5.363 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.6496, allocations: 8 kB / 0.7311 GB, free: 5.355 MB / 0.545 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0005901/0.6502, allocations: 390.6 kB / 0.7315 GB, free: 4.973 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.6502, allocations: 4 kB / 0.7315 GB, free: 4.969 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.6503, allocations: 4 kB / 0.7315 GB, free: 4.965 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.6503, allocations: 7.938 kB / 0.7315 GB, free: 4.957 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.818e-05/0.6504, allocations: 27.86 kB / 0.7315 GB, free: 4.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.6504, allocations: 12.3 kB / 0.7315 GB, free: 4.918 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.6506, allocations: 39.69 kB / 0.7316 GB, free: 4.879 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.185e-05/0.6506, allocations: 19.98 kB / 0.7316 GB, free: 4.859 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.0001903/0.6508, allocations: 167 kB / 0.7318 GB, free: 4.688 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.936e-05/0.6509, allocations: 23.8 kB / 0.7318 GB, free: 4.664 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.651, allocations: 38.31 kB / 0.7318 GB, free: 4.625 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.651, allocations: 7.938 kB / 0.7318 GB, free: 4.617 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.651, allocations: 3.938 kB / 0.7318 GB, free: 4.613 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.651, allocations: 3.984 kB / 0.7318 GB, free: 4.609 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.6521, allocations: 0.8114 MB / 0.7326 GB, free: 3.742 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.6521, allocations: 4 kB / 0.7326 GB, free: 3.738 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.104e-05/0.6522, allocations: 15.86 kB / 0.7326 GB, free: 3.723 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.6522, allocations: 4 kB / 0.7326 GB, free: 3.719 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.098e-05/0.6522, allocations: 19.97 kB / 0.7327 GB, free: 3.699 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.6522, allocations: 4 kB / 0.7327 GB, free: 3.695 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6522, allocations: 0 / 0.7327 GB, free: 3.695 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006931/0.6529, allocations: 0.5066 MB / 0.7332 GB, free: 3.172 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.943e-05/0.653, allocations: 92.86 kB / 0.7332 GB, free: 3.062 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.069e-05/0.6531, allocations: 23.98 kB / 0.7333 GB, free: 3.039 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001578/0.6532, allocations: 19.97 kB / 0.7333 GB, free: 3.02 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.6534, allocations: 55.92 kB / 0.7333 GB, free: 2.965 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.971e-05/0.6535, allocations: 31.97 kB / 0.7334 GB, free: 2.934 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.077e-05/0.6535, allocations: 112.9 kB / 0.7335 GB, free: 2.824 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.61e-07/0.6535, allocations: 0 / 0.7335 GB, free: 2.824 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003669/0.6539, allocations: 72 kB / 0.7336 GB, free: 2.754 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.000209/0.6541, allocations: 151.6 kB / 0.7337 GB, free: 2.605 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006146/0.6548, allocations: 354.8 kB / 0.734 GB, free: 2.254 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6548, allocations: 3.938 kB / 0.734 GB, free: 2.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003336/0.6551, allocations: 215.8 kB / 0.7342 GB, free: 2.039 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003817/0.6555, allocations: 48.47 kB / 0.7343 GB, free: 1.992 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009788/0.6565, allocations: 0.5032 MB / 0.7348 GB, free: 1.465 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.6568, allocations: 0.7335 MB / 0.7355 GB, free: 0.707 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000122/0.657, allocations: 38.95 kB / 0.7355 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.6571, allocations: 35.42 kB / 0.7356 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of SimCode: time 3.31e-07/0.6571, allocations: 0 / 0.7356 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of Templates: time 0.006928/0.664, allocations: 3.28 MB / 0.7388 GB, free: 13.36 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)