Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/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_master_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.063/5.063, allocations: 0.5623 GB / 0.5775 GB, free: 3.383 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002473/0.002473, allocations: 356.9 kB / 0.6446 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.092/4.092, allocations: 410.7 MB / 1.113 GB, free: 147.8 MB / 0.5886 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001809/0.00181, allocations: 180.3 kB / 1.226 GB, free: 35.84 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004938/0.000494, allocations: 16 kB / 1.349 GB, free: 121.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2167, allocations: 115.3 MB / 1.461 GB, free: 6.504 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9264/1.143, allocations: 138.4 MB / 1.596 GB, free: 3.277 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/1.143, allocations: 74.45 kB / 1.597 GB, free: 3.234 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.01805/1.162, allocations: 3.972 MB / 1.6 GB, free: 15.77 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.943e-06/1.162, allocations: 0 / 1.6 GB, free: 15.77 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.28e-05/1.162, allocations: 4 kB / 1.6 GB, free: 15.77 MB / 0.6823 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.0009256/1.163, allocations: 496.3 kB / 1.601 GB, free: 15.24 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/1.163, allocations: 8.031 kB / 1.601 GB, free: 15.23 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/1.163, allocations: 31.77 kB / 1.601 GB, free: 15.2 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/1.163, allocations: 167.1 kB / 1.601 GB, free: 15 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.549e-05/1.163, allocations: 22.94 kB / 1.601 GB, free: 14.98 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/1.163, allocations: 34.52 kB / 1.601 GB, free: 14.96 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005885/1.164, allocations: 216 kB / 1.601 GB, free: 14.79 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/1.164, allocations: 7.938 kB / 1.601 GB, free: 14.78 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.223e-05/1.164, allocations: 14.91 kB / 1.601 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/1.164, allocations: 4 kB / 1.601 GB, free: 14.77 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000361/1.164, allocations: 98.89 kB / 1.601 GB, free: 14.7 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/1.165, allocations: 0.5473 MB / 1.602 GB, free: 14.2 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007797/1.166, allocations: 303.8 kB / 1.602 GB, free: 14 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003563/1.167, allocations: 146.4 kB / 1.602 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/1.167, allocations: 8 kB / 1.602 GB, free: 13.9 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001141/1.168, allocations: 0.5004 MB / 1.603 GB, free: 13.47 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=48): time 2.946e-06/1.168, allocations: 4 kB / 1.603 GB, free: 13.46 MB / 0.6823 GB Notification: Performance of matching and sorting (n=48): time 0.001784/1.17, allocations: 0.6325 MB / 1.604 GB, free: 13.01 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/1.17, allocations: 59.78 kB / 1.604 GB, free: 12.94 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/1.17, allocations: 136.9 kB / 1.604 GB, free: 12.81 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001344/1.17, allocations: 57.56 kB / 1.604 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/1.17, allocations: 107.2 kB / 1.604 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/1.17, allocations: 100.1 kB / 1.604 GB, free: 12.59 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.768e-05/1.17, allocations: 13.56 kB / 1.604 GB, free: 12.58 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001669/1.171, allocations: 344.5 kB / 1.604 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000551/1.171, allocations: 176.4 kB / 1.605 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006409/1.172, allocations: 273 kB / 1.605 GB, free: 11.91 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004745/1.172, allocations: 193 kB / 1.605 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/1.172, allocations: 4 kB / 1.605 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001491/1.174, allocations: 0.5601 MB / 1.606 GB, free: 11.31 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.922e-05/1.174, allocations: 67.08 kB / 1.606 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/1.174, allocations: 4 kB / 1.606 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/1.174, allocations: 4 kB / 1.606 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/1.174, allocations: 27.55 kB / 1.606 GB, free: 11.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/1.174, allocations: 4 kB / 1.606 GB, free: 11.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007203/1.175, allocations: 94.89 kB / 1.606 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.628e-05/1.175, allocations: 23.75 kB / 1.606 GB, free: 11.1 MB / 0.6823 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.0003107/1.175, allocations: 178.2 kB / 1.606 GB, free: 10.94 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.258e-05/1.175, allocations: 23.8 kB / 1.606 GB, free: 10.91 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/1.175, allocations: 37.66 kB / 1.606 GB, free: 10.91 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/1.175, allocations: 11.92 kB / 1.606 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/1.175, allocations: 0 / 1.606 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/1.175, allocations: 3.984 kB / 1.606 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/1.177, allocations: 0.8961 MB / 1.607 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/1.177, allocations: 4 kB / 1.607 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.781e-05/1.177, allocations: 11.92 kB / 1.607 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/1.177, allocations: 4 kB / 1.607 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.782e-05/1.177, allocations: 19.05 kB / 1.607 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.326e-06/1.177, allocations: 3.984 kB / 1.607 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.177, allocations: 4 kB / 1.607 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/1.179, allocations: 0.5721 MB / 1.607 GB, free: 9.652 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.367e-05/1.179, allocations: 92.92 kB / 1.608 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/1.179, allocations: 25.23 kB / 1.608 GB, free: 9.531 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/1.179, allocations: 18.17 kB / 1.608 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002495/1.179, allocations: 77.66 kB / 1.608 GB, free: 9.453 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.93e-05/1.179, allocations: 37.78 kB / 1.608 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.904e-05/1.18, allocations: 101.4 kB / 1.608 GB, free: 9.336 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.9e-07/1.18, allocations: 0 / 1.608 GB, free: 9.336 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0006411/1.18, allocations: 101.4 kB / 1.608 GB, free: 9.25 MB / 0.6823 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.0003185/1.181, allocations: 153.4 kB / 1.608 GB, free: 9.102 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001398/1.182, allocations: 0.5878 MB / 1.609 GB, free: 8.637 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/1.182, allocations: 0 / 1.609 GB, free: 8.637 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006023/1.183, allocations: 304.8 kB / 1.609 GB, free: 8.461 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/1.183, allocations: 46.89 kB / 1.609 GB, free: 8.43 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/1.185, allocations: 0.5197 MB / 1.609 GB, free: 7.969 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/1.185, allocations: 0.7377 MB / 1.61 GB, free: 7.203 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001924/1.185, allocations: 34.97 kB / 1.61 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/1.185, allocations: 41.78 kB / 1.61 GB, free: 7.133 MB / 0.6823 GB Notification: Performance of SimCode: time 9.72e-07/1.185, allocations: 3.938 kB / 1.61 GB, free: 7.129 MB / 0.6823 GB Notification: Performance of Templates: time 0.01286/1.198, allocations: 4.235 MB / 1.614 GB, free: 2.918 MB / 0.6823 GB