Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.001289/0.001289, allocations: 99.28 kB / 16.27 MB, free: 6 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.001275/0.001275, allocations: 187 kB / 17.2 MB, free: 5.613 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.558/1.558, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.905/1.905, allocations: 292.3 MB / 0.5495 GB, free: 17.56 MB / 462.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.001482/0.001482, allocations: 63.91 kB / 0.6722 GB, free: 6.5 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2818, allocations: 114.6 MB / 0.784 GB, free: 3.832 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.00253/0.2844, allocations: 0.7721 MB / 0.7848 GB, free: 3.051 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001954/0.2864, allocations: 1.347 MB / 0.7861 GB, free: 1.688 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.211e-05/0.2865, allocations: 0 / 0.7861 GB, free: 1.688 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.338e-05/0.2866, allocations: 11.88 kB / 0.7861 GB, free: 1.676 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 8.71e-05/0.2867, allocations: 19.8 kB / 0.7861 GB, free: 1.656 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008408/0.2875, allocations: 302 kB / 0.7864 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003892/0.2879, allocations: 375.3 kB / 0.7868 GB, free: 1 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.2881, allocations: 53.08 kB / 0.7868 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.2883, allocations: 159.7 kB / 0.787 GB, free: 0.793 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001727/0.2885, allocations: 127.6 kB / 0.7871 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 5.639e-05/0.2885, allocations: 36 kB / 0.7871 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.2887, allocations: 47.98 kB / 0.7872 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 7.193e-05/0.2887, allocations: 71.86 kB / 0.7873 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.2889, allocations: 131.6 kB / 0.7874 GB, free: 396 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003951/0.2893, allocations: 335.4 kB / 0.7877 GB, free: 60 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2893, allocations: 4 kB / 0.7877 GB, free: 56 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.323e-06/0.2893, allocations: 0 / 0.7877 GB, free: 56 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.2893, allocations: 0 / 0.7877 GB, free: 56 kB / 0.6544 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.4775/0.7669, allocations: 0.5295 MB / 0.7882 GB, free: 49.16 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.7669, allocations: 11.09 kB / 0.7882 GB, free: 49.16 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.7671, allocations: 24.53 kB / 0.7883 GB, free: 49.16 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005694/0.7676, allocations: 258 kB / 0.7885 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.7677, allocations: 26.23 kB / 0.7885 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.079e-05/0.7677, allocations: 37.25 kB / 0.7886 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.7681, allocations: 208.9 kB / 0.7888 GB, free: 48.93 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.7681, allocations: 7.219 kB / 0.7888 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.413e-05/0.7681, allocations: 19.62 kB / 0.7888 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.7682, allocations: 2.75 kB / 0.7888 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/0.7683, allocations: 96.77 kB / 0.7889 GB, free: 48.92 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007186/0.7691, allocations: 0.5666 MB / 0.7894 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003988/0.7695, allocations: 257.7 kB / 0.7897 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.7697, allocations: 121.5 kB / 0.7898 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-06/0.7697, allocations: 0 / 0.7898 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006667/0.7703, allocations: 0.4926 MB / 0.7903 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=44): time 1.703e-06/0.7704, allocations: 2.406 kB / 0.7903 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of matching and sorting (n=44): time 0.0008712/0.7712, allocations: 0.5626 MB / 0.7908 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.7713, allocations: 62.33 kB / 0.7909 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.7714, allocations: 153.6 kB / 0.791 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.915e-05/0.7715, allocations: 59.19 kB / 0.7911 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.856e-05/0.7715, allocations: 112.6 kB / 0.7912 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.503e-05/0.7716, allocations: 93.14 kB / 0.7913 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.7718, allocations: 124.1 kB / 0.7914 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.987e-05/0.7718, allocations: 336.5 kB / 0.7917 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002673/0.7721, allocations: 172 kB / 0.7919 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.7724, allocations: 284.1 kB / 0.7922 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.7728, allocations: 371.6 kB / 0.7925 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.7728, allocations: 4.625 kB / 0.7925 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007103/0.7735, allocations: 0.561 MB / 0.7931 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.145e-05/0.7736, allocations: 64.59 kB / 0.7931 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.7736, allocations: 3.406 kB / 0.7931 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.7736, allocations: 4.031 kB / 0.7931 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.673e-05/0.7737, allocations: 38.88 kB / 0.7932 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.7737, allocations: 6.844 kB / 0.7932 GB, free: 47.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.7741, allocations: 79.09 kB / 0.7933 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.245e-05/0.7741, allocations: 30.98 kB / 0.7933 GB, free: 47.35 MB / 0.6544 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,truCleTruIni.clr,$PRE.truCleTruIni.clr,truCleFalIni.clr,$PRE.truCleFalIni.clr,falCleTruIni.clr,$PRE.falCleTruIni.clr,falCleFalIni.clr,$PRE.falCleFalIni.clr,latInp.y,$PRE.latInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,swiCleInp1.clr,$PRE.swiCleInp1.clr,swiCleInp1.u,$PRE.swiCleInp1.u,swiCleInp.y,swiCleInp.clr,$PRE.swiCleInp.clr,swiCleInp.u,$PRE.swiCleInp.u,truCleFalIni.y,truCleFalIni.u,$PRE.truCleFalIni.u,falCleFalIni.y,falCleFalIni.u,$PRE.falCleFalIni.u,truCleTruIni.y,truCleTruIni.u,$PRE.truCleTruIni.u,falCleTruIni.y,falCleTruIni.u,$PRE.falCleTruIni.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 (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 2 * 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.0001508/0.7743, allocations: 179.2 kB / 0.7935 GB, free: 47.23 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.074e-05/0.7744, allocations: 25.3 kB / 0.7935 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.513e-05/0.7744, allocations: 32.61 kB / 0.7935 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.7745, allocations: 11 kB / 0.7935 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.7745, allocations: 3.688 kB / 0.7935 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.7745, allocations: 6.734 kB / 0.7935 GB, free: 47.21 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008329/0.7753, allocations: 0.8427 MB / 0.7944 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.7753, allocations: 1.781 kB / 0.7944 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.649e-05/0.7754, allocations: 15.22 kB / 0.7944 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.7754, allocations: 7.125 kB / 0.7944 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.7754, allocations: 21.2 kB / 0.7944 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.7754, allocations: 4.438 kB / 0.7944 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.7754, allocations: 4.719 kB / 0.7944 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005964/0.776, allocations: 0.5318 MB / 0.7949 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.414e-05/0.7761, allocations: 101.6 kB / 0.795 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.547e-05/0.7761, allocations: 22.31 kB / 0.7951 GB, free: 46.56 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.543e-05/0.7763, allocations: 14.64 kB / 0.7951 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.7764, allocations: 57.91 kB / 0.7951 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.7764, allocations: 31.7 kB / 0.7952 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.215e-05/0.7765, allocations: 103.7 kB / 0.7953 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7765, allocations: 0 / 0.7953 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003581/0.7768, allocations: 95.02 kB / 0.7953 GB, free: 46.44 MB / 0.6544 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 (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.0001897/0.777, allocations: 143 kB / 0.7955 GB, free: 46.34 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0007663/0.7778, allocations: 0.5699 MB / 0.796 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.7778, allocations: 0 / 0.796 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.7781, allocations: 260.5 kB / 0.7963 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.7785, allocations: 41.44 kB / 0.7963 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006944/0.7792, allocations: 469.8 kB / 0.7968 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001575/0.7793, allocations: 0.7359 MB / 0.7975 GB, free: 44.98 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.7794, allocations: 36.2 kB / 0.7975 GB, free: 44.98 MB / 0.6544 GB Notification: Performance of SimCode: time 1.282e-06/0.7794, allocations: 2.062 kB / 0.7975 GB, free: 44.98 MB / 0.6544 GB Notification: Performance of Templates: time 0.007161/0.7866, allocations: 3.724 MB / 0.8012 GB, free: 44.74 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)