Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.004282/0.004282, allocations: 231.2 kB / 15.82 MB, free: 6.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.00112/0.00112, allocations: 175.3 kB / 16.7 MB, free: 5.453 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 4.046/4.046, allocations: 389.1 MB / 406.5 MB, free: 11.84 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.027/4.027, allocations: 472.3 MB / 0.9024 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004849/0.000485, allocations: 12 kB / 1.008 GB, free: 138.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1724, allocations: 98.73 MB / 1.105 GB, free: 42.08 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7677/0.9401, allocations: 124.9 MB / 1.227 GB, free: 28.24 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/0.9404, allocations: 75.23 kB / 1.227 GB, free: 28.21 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.009174/0.9496, allocations: 2.226 MB / 1.229 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.965e-06/0.9496, allocations: 0 / 1.229 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.044e-05/0.9497, allocations: 6.953 kB / 1.229 GB, free: 26.96 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001021/0.9507, allocations: 0.4901 MB / 1.229 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.9507, allocations: 8.031 kB / 1.229 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.9509, allocations: 42.97 kB / 1.229 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.951, allocations: 180.9 kB / 1.23 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002743/0.9513, allocations: 364.8 kB / 1.23 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.539e-05/0.9514, allocations: 26.61 kB / 1.23 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006831/0.9521, allocations: 255.4 kB / 1.23 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.9521, allocations: 1.969 kB / 1.23 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.914e-05/0.9522, allocations: 10.97 kB / 1.23 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.9522, allocations: 7.469 kB / 1.23 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005549/0.9528, allocations: 169.4 kB / 1.23 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001606/0.9544, allocations: 0.5904 MB / 1.231 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.9558, allocations: 415.2 kB / 1.231 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004269/0.9563, allocations: 170.3 kB / 1.232 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.9563, allocations: 5.312 kB / 1.232 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001276/0.9576, allocations: 0.5253 MB / 1.232 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=52): time 3.146e-06/0.9576, allocations: 1.641 kB / 1.232 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=52): time 0.0017/0.9593, allocations: 0.5958 MB / 1.233 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.9594, allocations: 59.88 kB / 1.233 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.9596, allocations: 153.6 kB / 1.233 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.9597, allocations: 62.42 kB / 1.233 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.196e-05/0.9598, allocations: 103.5 kB / 1.233 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.96, allocations: 127.4 kB / 1.233 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.186e-05/0.96, allocations: 11.31 kB / 1.233 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001746/0.9602, allocations: 338.6 kB / 1.233 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004888/0.9607, allocations: 160.2 kB / 1.234 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005532/0.9613, allocations: 251 kB / 1.234 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000358/0.9617, allocations: 108.3 kB / 1.234 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.9617, allocations: 0 / 1.234 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001104/0.9628, allocations: 454.3 kB / 1.234 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.9628, allocations: 7.594 kB / 1.234 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.9629, allocations: 8.562 kB / 1.234 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.671e-05/0.9629, allocations: 4 kB / 1.234 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.9632, allocations: 45.58 kB / 1.234 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.9632, allocations: 4.609 kB / 1.234 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002955/0.9635, allocations: 33.36 kB / 1.234 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.307e-05/0.9636, allocations: 16.23 kB / 1.235 GB, free: 22.83 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 78 ($PRE.falCle.scenario,$PRE.truCle.scenario,$PRE.iniFalOut.scenario,$PRE.iniTruOut.scenario,$PRE.swiCleInp.scenario,$PRE.swiCleInp1.scenario,$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,$PRE.falCle.u,falCle.u,$PRE.falCle.clr,falCle.clr,$PRE.falCle.y,falCle.y,falCle.scenario,$PRE.truCle.u,truCle.u,$PRE.truCle.clr,truCle.clr,$PRE.truCle.y,truCle.y,truCle.scenario,$PRE.iniFalOut.u,iniFalOut.u,$PRE.iniFalOut.clr,iniFalOut.clr,$PRE.iniFalOut.y,iniFalOut.y,iniFalOut.scenario,$PRE.iniTruOut.u,iniTruOut.u,$PRE.iniTruOut.clr,iniTruOut.clr,$PRE.iniTruOut.y,iniTruOut.y,iniTruOut.scenario,$PRE.swiCleInp.u,swiCleInp.u,$PRE.swiCleInp.clr,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,swiCleInp.scenario,$PRE.swiCleInp1.u,swiCleInp1.u,$PRE.swiCleInp1.clr,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,swiCleInp1.scenario,$PRE.cleInp.pulseStart,cleInp.pulseStart,$PRE.latInp.pulseStart,latInp.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * 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.0003117/0.9639, allocations: 183.3 kB / 1.235 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.914e-05/0.964, allocations: 26.34 kB / 1.235 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.9641, allocations: 39.12 kB / 1.235 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.9641, allocations: 7.953 kB / 1.235 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/0.9641, allocations: 0.625 kB / 1.235 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.9642, allocations: 6.688 kB / 1.235 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.9659, allocations: 0.8931 MB / 1.236 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.9659, allocations: 2.438 kB / 1.236 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.689e-05/0.9661, allocations: 16.69 kB / 1.236 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.627e-06/0.9661, allocations: 3.953 kB / 1.236 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-05/0.9661, allocations: 30.67 kB / 1.236 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.9662, allocations: 0 / 1.236 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.9662, allocations: 0 / 1.236 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.9677, allocations: 0.5585 MB / 1.236 GB, free: 37.62 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.326e-05/0.9678, allocations: 96.83 kB / 1.236 GB, free: 37.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.9679, allocations: 28.77 kB / 1.236 GB, free: 37.49 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/0.9683, allocations: 28.02 kB / 1.236 GB, free: 37.48 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002798/0.9685, allocations: 96.34 kB / 1.236 GB, free: 37.44 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.88e-05/0.9686, allocations: 33.89 kB / 1.236 GB, free: 37.43 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0001027/0.9687, allocations: 108.9 kB / 1.237 GB, free: 37.34 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.3e-07/0.9688, allocations: 0 / 1.237 GB, free: 37.34 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005424/0.9693, allocations: 86.14 kB / 1.237 GB, free: 37.27 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 52 ($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.clr,falCle.y,falCle.scenario,truCle.u,truCle.clr,truCle.y,truCle.scenario,iniFalOut.u,iniFalOut.clr,iniFalOut.y,iniFalOut.scenario,iniTruOut.u,iniTruOut.clr,iniTruOut.y,iniTruOut.scenario,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp.scenario,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,swiCleInp1.scenario,cleInp.pulseStart,latInp.pulseStart) * Number of discrete states: 18 (iniTruOut.u,iniTruOut.clr,iniFalOut.u,iniFalOut.clr,truCle.u,truCle.clr,falCle.u,falCle.clr,swiCleInp1.u,swiCleInp1.clr,swiCleInp.u,swiCleInp.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 (52): * Single equations (assignments): 44 * 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.0002323/0.9695, allocations: 152.6 kB / 1.237 GB, free: 37.14 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001107/0.9707, allocations: 437 kB / 1.237 GB, free: 36.88 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.9707, allocations: 0 / 1.237 GB, free: 36.88 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0005683/0.9713, allocations: 261.2 kB / 1.237 GB, free: 36.73 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.9718, allocations: 41.53 kB / 1.238 GB, free: 36.71 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.9734, allocations: 0.5689 MB / 1.238 GB, free: 36.28 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.9738, allocations: 0.749 MB / 1.239 GB, free: 35.53 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0002901/0.9741, allocations: 44.75 kB / 1.239 GB, free: 35.5 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000268/0.9744, allocations: 48.97 kB / 1.239 GB, free: 35.47 MB / 0.6355 GB Notification: Performance of SimCode: time 1.132e-06/0.9744, allocations: 2.812 kB / 1.239 GB, free: 35.47 MB / 0.6355 GB Notification: Performance of Templates: time 0.01137/0.9858, allocations: 3.992 MB / 1.243 GB, free: 32.58 MB / 0.6355 GB