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 2.584/2.584, allocations: 287.9 MB / 302.9 MB, free: 8.27 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001423/0.001423, allocations: 182.3 kB / 371.4 MB, free: 10.65 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.206/2.206, allocations: 205.4 MB / 0.6301 GB, free: 10.37 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001032/0.001031, allocations: 89.05 kB / 0.7434 GB, free: 6.383 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0008246/0.0008251, allocations: 12.38 kB / 0.8662 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.1636, allocations: 115.3 MB / 0.9788 GB, free: 28.16 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.0008313/0.1645, allocations: 494 kB / 0.9792 GB, free: 27.67 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001542/0.1661, allocations: 1.271 MB / 0.9805 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.883e-05/0.1661, allocations: 0 / 0.9805 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.392e-05/0.1662, allocations: 11.86 kB / 0.9805 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.806e-05/0.1663, allocations: 19.97 kB / 0.9805 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008071/0.1671, allocations: 269.1 kB / 0.9808 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001852/0.1673, allocations: 179.7 kB / 0.9809 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.1674, allocations: 41.08 kB / 0.981 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.1676, allocations: 127.8 kB / 0.9811 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.1677, allocations: 103.7 kB / 0.9812 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.639e-05/0.1678, allocations: 20 kB / 0.9812 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.664e-05/0.1679, allocations: 31.97 kB / 0.9812 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.349e-05/0.168, allocations: 55.8 kB / 0.9813 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.375e-05/0.1681, allocations: 61.58 kB / 0.9814 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002543/0.1683, allocations: 235.7 kB / 0.9816 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.1683, allocations: 0 / 0.9816 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.094e-06/0.1684, allocations: 4 kB / 0.9816 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.61e-06/0.1684, allocations: 0 / 0.9816 GB, free: 25.25 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005395/0.1689, allocations: 478.3 kB / 0.982 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.169, allocations: 16.02 kB / 0.9821 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.739e-05/0.1691, allocations: 19.91 kB / 0.9821 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006027/0.1697, allocations: 270.6 kB / 0.9823 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.541e-05/0.1698, allocations: 23.98 kB / 0.9824 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.695e-05/0.1698, allocations: 39.98 kB / 0.9824 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004148/0.1703, allocations: 210.5 kB / 0.9826 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.537e-06/0.1703, allocations: 0 / 0.9826 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/0.1703, allocations: 15.97 kB / 0.9826 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1704, allocations: 0 / 0.9826 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.1706, allocations: 95.88 kB / 0.9827 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008658/0.1715, allocations: 0.5664 MB / 0.9833 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005726/0.1721, allocations: 262.6 kB / 0.9835 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.1721, allocations: 0 / 0.9835 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007702/0.1729, allocations: 0.4924 MB / 0.984 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=44): time 3.237e-06/0.1729, allocations: 0 / 0.984 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=44): time 0.001194/0.1741, allocations: 0.5597 MB / 0.9845 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/0.1742, allocations: 63.41 kB / 0.9846 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.1743, allocations: 151.2 kB / 0.9847 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.101e-05/0.1744, allocations: 57.69 kB / 0.9848 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.332e-05/0.1745, allocations: 117.1 kB / 0.9849 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.024e-05/0.1746, allocations: 102.8 kB / 0.985 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.286e-05/0.1746, allocations: 20 kB / 0.985 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.955e-05/0.1747, allocations: 334.8 kB / 0.9853 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004016/0.1751, allocations: 165.1 kB / 0.9855 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004495/0.1756, allocations: 285.7 kB / 0.9858 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003409/0.1759, allocations: 189.6 kB / 0.986 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.627e-06/0.176, allocations: 4 kB / 0.986 GB, free: 20.49 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001359/0.1773, allocations: 0.5564 MB / 0.9865 GB, free: 19.92 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.451e-05/0.1774, allocations: 64.97 kB / 0.9866 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.1774, allocations: 4 kB / 0.9866 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.711e-05/0.1775, allocations: 4.375 kB / 0.9866 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.132e-05/0.1776, allocations: 31.86 kB / 0.9866 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.1776, allocations: 7.984 kB / 0.9866 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004757/0.1781, allocations: 99.64 kB / 0.9867 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.437e-05/0.1782, allocations: 31.98 kB / 0.9867 GB, free: 19.67 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 70 ($PRE.falCleTruIni.y,$PRE.truCleTruIni.y,$PRE.falCleFalIni.y,$PRE.truCleFalIni.y,$PRE.swiCleInp.y,$PRE.swiCleInp1.y,$whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,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.falCleTruIni.u,falCleTruIni.u,falCleTruIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,truCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,falCleFalIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,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,$PRE.falCleFalIni.clr,falCleFalIni.clr,$PRE.falCleTruIni.clr,falCleTruIni.clr,$PRE.truCleFalIni.clr,truCleFalIni.clr,$PRE.truCleTruIni.clr,truCleTruIni.clr) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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.0002114/0.1784, allocations: 170.9 kB / 0.9869 GB, free: 19.49 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.446e-05/0.1785, allocations: 39.66 kB / 0.9869 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.074e-05/0.1786, allocations: 34.31 kB / 0.987 GB, free: 19.42 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.386e-06/0.1786, allocations: 4 kB / 0.987 GB, free: 19.42 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.87e-06/0.1786, allocations: 0 / 0.987 GB, free: 19.42 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1786, allocations: 3.984 kB / 0.987 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.1798, allocations: 0.8469 MB / 0.9878 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.487e-06/0.1798, allocations: 0 / 0.9878 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.45e-05/0.1799, allocations: 11.92 kB / 0.9878 GB, free: 18.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.989e-06/0.1799, allocations: 4 kB / 0.9878 GB, free: 18.5 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.807e-05/0.18, allocations: 15.98 kB / 0.9878 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.641e-06/0.18, allocations: 7.984 kB / 0.9878 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.87e-06/0.18, allocations: 0 / 0.9878 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008281/0.1808, allocations: 0.5384 MB / 0.9884 GB, free: 17.92 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.893e-05/0.1809, allocations: 104.8 kB / 0.9885 GB, free: 17.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.879e-05/0.181, allocations: 23.97 kB / 0.9885 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.1811, allocations: 15.98 kB / 0.9885 GB, free: 17.76 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.1813, allocations: 63.88 kB / 0.9886 GB, free: 17.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.152e-05/0.1814, allocations: 31.97 kB / 0.9886 GB, free: 17.66 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.096e-05/0.1814, allocations: 99.27 kB / 0.9887 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.63e-07/0.1815, allocations: 3.938 kB / 0.9887 GB, free: 17.56 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005289/0.182, allocations: 95.98 kB / 0.9888 GB, free: 17.47 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCleTruIni.u,falCleTruIni.y,truCleTruIni.u,truCleTruIni.y,falCleFalIni.u,falCleFalIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp.u,swiCleInp.clr,swiCleInp.y,swiCleInp1.u,swiCleInp1.clr,swiCleInp1.y,cleInp.y,latInp.y) * Number of discrete states: 14 (falCleFalIni.u,falCleTruIni.u,truCleTruIni.u,truCleFalIni.u,swiCleInp1.u,swiCleInp1.clr,swiCleInp.u,swiCleInp.clr,swiCleInp1.y,swiCleInp.y,truCleFalIni.y,falCleFalIni.y,truCleTruIni.y,falCleTruIni.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 36 * 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.0002007/0.1822, allocations: 149.3 kB / 0.9889 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009262/0.1831, allocations: 0.5408 MB / 0.9895 GB, free: 16.75 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.844e-06/0.1832, allocations: 0 / 0.9895 GB, free: 16.75 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003698/0.1835, allocations: 256.9 kB / 0.9897 GB, free: 16.5 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.1839, allocations: 33.38 kB / 0.9897 GB, free: 16.47 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008782/0.1848, allocations: 482 kB / 0.9902 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001655/0.185, allocations: 0.7413 MB / 0.9909 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001506/0.1851, allocations: 34.95 kB / 0.9909 GB, free: 15.17 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.1853, allocations: 43.42 kB / 0.991 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of SimCode: time 1.757e-06/0.1853, allocations: 0 / 0.991 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of Templates: time 0.009277/0.1946, allocations: 3.984 MB / 0.9949 GB, free: 11.16 MB / 0.6198 GB