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.0186/0.0186, allocations: 107.9 kB / 15.06 MB, free: 5.562 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.001193/0.001193, allocations: 180.9 kB / 15.94 MB, free: 5.527 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 2.304/2.304, allocations: 194.6 MB / 211.3 MB, free: 11.25 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.513/2.513, allocations: 236.2 MB / 492.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004895/0.0004897, allocations: 12 kB / 0.587 GB, free: 2.16 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5463/0.5468, allocations: 98.71 MB / 0.6833 GB, free: 16.73 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.001583/0.5484, allocations: 1.199 MB / 0.6845 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0008099/0.5493, allocations: 389.7 kB / 0.6849 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.444e-05/0.5494, allocations: 2.625 kB / 0.6849 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 3.113e-05/0.5494, allocations: 10.27 kB / 0.6849 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 9.126e-05/0.5495, allocations: 15.3 kB / 0.6849 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003369/0.5499, allocations: 119.2 kB / 0.685 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0002469/0.5501, allocations: 182.8 kB / 0.6852 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.5503, allocations: 41.67 kB / 0.6852 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.5505, allocations: 122.2 kB / 0.6854 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.5506, allocations: 114.5 kB / 0.6855 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 6.358e-05/0.5507, allocations: 16.34 kB / 0.6855 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 5.365e-05/0.5508, allocations: 16.41 kB / 0.6855 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 9.945e-05/0.5509, allocations: 82 kB / 0.6856 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 8.462e-05/0.551, allocations: 64.22 kB / 0.6856 GB, free: 15.24 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.000311/0.5513, allocations: 225.2 kB / 0.6859 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.777e-06/0.5513, allocations: 0 / 0.6859 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.049e-06/0.5513, allocations: 0 / 0.6859 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.745e-06/0.5514, allocations: 1.375 kB / 0.6859 GB, free: 15.2 MB / 0.5261 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.0008461/0.5522, allocations: 0.4947 MB / 0.6863 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.5523, allocations: 9.562 kB / 0.6863 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.5524, allocations: 35.3 kB / 0.6864 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004781/0.5529, allocations: 271 kB / 0.6866 GB, free: 14.54 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002654/0.5532, allocations: 365.1 kB / 0.687 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-05/0.5533, allocations: 32.33 kB / 0.687 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006651/0.5539, allocations: 257.5 kB / 0.6873 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.554, allocations: 0.9375 kB / 0.6873 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.067e-05/0.554, allocations: 10.41 kB / 0.6873 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.625e-06/0.554, allocations: 3.094 kB / 0.6873 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004924/0.5545, allocations: 168 kB / 0.6874 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.5558, allocations: 0.5865 MB / 0.688 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.557, allocations: 348.7 kB / 0.6883 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.557, allocations: 7.109 kB / 0.6884 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001056/0.5581, allocations: 0.4893 MB / 0.6888 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 4.09e-06/0.5581, allocations: 0 / 0.6888 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=48): time 0.001479/0.5596, allocations: 0.5602 MB / 0.6894 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/0.5597, allocations: 66.73 kB / 0.6894 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.5599, allocations: 156 kB / 0.6896 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001067/0.56, allocations: 57.83 kB / 0.6896 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.479e-05/0.5601, allocations: 117.4 kB / 0.6898 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.5602, allocations: 115.9 kB / 0.6899 GB, free: 12.66 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.778e-05/0.5602, allocations: 9.562 kB / 0.6899 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.113e-05/0.5603, allocations: 339.1 kB / 0.6902 GB, free: 12.33 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004371/0.5608, allocations: 158.7 kB / 0.6904 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004928/0.5613, allocations: 265 kB / 0.6906 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.5616, allocations: 120.2 kB / 0.6907 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.585e-06/0.5616, allocations: 0 / 0.6907 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001086/0.5627, allocations: 463 kB / 0.6912 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.5628, allocations: 9.469 kB / 0.6912 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.5628, allocations: 3.531 kB / 0.6912 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.65e-05/0.5628, allocations: 5.484 kB / 0.6912 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.5631, allocations: 50.44 kB / 0.6912 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.554e-05/0.5631, allocations: 9.188 kB / 0.6912 GB, free: 11.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/0.5634, allocations: 45.31 kB / 0.6913 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.543e-05/0.5635, allocations: 23.81 kB / 0.6913 GB, free: 11.78 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 80 ($PRE.falCle.scenario,$PRE.truCle.scenario,$PRE.iniFalOut.scenario,$PRE.iniTruOut.scenario,$PRE.swiCleInp.scenario,$PRE.swiCleInp1.scenario,$whenCondition26,$whenCondition25,tru.y,fal.y,$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.y,falCle.y,falCle.scenario,$PRE.truCle.u,truCle.u,$PRE.truCle.y,truCle.y,truCle.scenario,$PRE.iniFalOut.u,iniFalOut.u,$PRE.iniFalOut.y,iniFalOut.y,iniFalOut.scenario,$PRE.iniTruOut.u,iniTruOut.u,$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,$PRE.iniTruOut.clr,iniTruOut.clr,$PRE.iniFalOut.clr,iniFalOut.clr,$PRE.falCle.clr,falCle.clr,$PRE.truCle.clr,truCle.clr) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 80 * 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.0002684/0.5637, allocations: 179.7 kB / 0.6915 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.901e-05/0.5638, allocations: 33.27 kB / 0.6915 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.94e-05/0.5639, allocations: 38.16 kB / 0.6915 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.943e-06/0.564, allocations: 8.844 kB / 0.6915 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.564, allocations: 1.031 kB / 0.6915 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.344e-06/0.564, allocations: 2.906 kB / 0.6916 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.5655, allocations: 0.8577 MB / 0.6924 GB, free: 11.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.151e-06/0.5656, allocations: 3.953 kB / 0.6924 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.342e-05/0.5656, allocations: 12.67 kB / 0.6924 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.976e-06/0.5657, allocations: 2.031 kB / 0.6924 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.5657, allocations: 21.83 kB / 0.6924 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.068e-06/0.5657, allocations: 6.812 kB / 0.6924 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.5e-06/0.5658, allocations: 4.641 kB / 0.6924 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.5668, allocations: 0.5202 MB / 0.6929 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.312e-05/0.5669, allocations: 104.6 kB / 0.693 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.567, allocations: 25.03 kB / 0.6931 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.5673, allocations: 27.02 kB / 0.6931 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002372/0.5675, allocations: 85.58 kB / 0.6932 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.026e-05/0.5676, allocations: 32.09 kB / 0.6932 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 8.597e-05/0.5677, allocations: 108.2 kB / 0.6933 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.03e-07/0.5677, allocations: 0 / 0.6933 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0005505/0.5683, allocations: 90.19 kB / 0.6934 GB, free: 10.52 MB / 0.5261 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 ($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,falCle.scenario,truCle.u,truCle.y,truCle.scenario,iniFalOut.u,iniFalOut.y,iniFalOut.scenario,iniTruOut.u,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: 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 (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.0001968/0.5685, allocations: 143.9 kB / 0.6935 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001029/0.5695, allocations: 415 kB / 0.6939 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.654e-06/0.5696, allocations: 0 / 0.6939 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000491/0.5701, allocations: 228.2 kB / 0.6941 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.5705, allocations: 25.66 kB / 0.6942 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.5718, allocations: 0.5483 MB / 0.6947 GB, free: 9.852 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.5721, allocations: 0.7491 MB / 0.6954 GB, free: 9.148 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0002706/0.5724, allocations: 41.58 kB / 0.6955 GB, free: 9.148 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.5726, allocations: 44.3 kB / 0.6955 GB, free: 9.137 MB / 0.5261 GB Notification: Performance of SimCode: time 1.997e-06/0.5726, allocations: 1 kB / 0.6955 GB, free: 9.137 MB / 0.5261 GB Notification: Performance of Templates: time 0.01088/0.5835, allocations: 3.793 MB / 0.6992 GB, free: 7.633 MB / 0.5261 GB