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.001149/0.001149, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.00146/0.00146, allocations: 191.1 kB / 16.13 MB, free: 6.668 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.578/1.578, allocations: 205.1 MB / 222 MB, free: 4.738 MB / 174.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.783/1.783, allocations: 292.2 MB / 0.5484 GB, free: 13.66 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.00134/0.00134, allocations: 63.55 kB / 0.6708 GB, free: 26.44 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.231, allocations: 114.6 MB / 0.7827 GB, free: 13.99 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002473/0.2335, allocations: 0.8376 MB / 0.7835 GB, free: 13.15 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002283/0.2358, allocations: 1.363 MB / 0.7848 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.236, allocations: 4 kB / 0.7848 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.114e-05/0.2361, allocations: 7.922 kB / 0.7848 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.2362, allocations: 3.938 kB / 0.7849 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009079/0.2372, allocations: 280 kB / 0.7851 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003814/0.2375, allocations: 323.6 kB / 0.7854 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000165/0.2377, allocations: 52.86 kB / 0.7855 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002269/0.238, allocations: 139.7 kB / 0.7856 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.2382, allocations: 131.6 kB / 0.7857 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.385e-05/0.2382, allocations: 20 kB / 0.7858 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.2384, allocations: 35.98 kB / 0.7858 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.522e-05/0.2385, allocations: 55.86 kB / 0.7858 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.2386, allocations: 119.6 kB / 0.786 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003766/0.239, allocations: 327.4 kB / 0.7863 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.239, allocations: 0 / 0.7863 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.353e-06/0.239, allocations: 0 / 0.7863 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.186e-06/0.239, allocations: 0 / 0.7863 GB, free: 10.3 MB / 0.6075 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.0009445/0.24, allocations: 0.5415 MB / 0.7868 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.24, allocations: 12.02 kB / 0.7868 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.2402, allocations: 24.75 kB / 0.7868 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006448/0.2408, allocations: 256.3 kB / 0.7871 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.238e-05/0.2409, allocations: 28.36 kB / 0.7871 GB, free: 9.344 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.881e-05/0.241, allocations: 40.3 kB / 0.7871 GB, free: 9.305 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003953/0.2414, allocations: 209.5 kB / 0.7873 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.2414, allocations: 3.938 kB / 0.7873 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.844e-05/0.2414, allocations: 19.97 kB / 0.7874 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.2415, allocations: 4 kB / 0.7874 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000237/0.2417, allocations: 99.88 kB / 0.7875 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009329/0.2427, allocations: 0.5625 MB / 0.788 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004914/0.2432, allocations: 269.5 kB / 0.7883 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.2434, allocations: 116.8 kB / 0.7884 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/0.2434, allocations: 0 / 0.7884 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007598/0.2441, allocations: 494.5 kB / 0.7889 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=44): time 1.933e-06/0.2442, allocations: 0 / 0.7889 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of matching and sorting (n=44): time 0.001015/0.2452, allocations: 0.5791 MB / 0.7894 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.2452, allocations: 63.3 kB / 0.7895 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.2454, allocations: 149.7 kB / 0.7896 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.215e-05/0.2454, allocations: 57.69 kB / 0.7897 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.2456, allocations: 116.8 kB / 0.7898 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.949e-05/0.2456, allocations: 94.92 kB / 0.7899 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.2459, allocations: 126.2 kB / 0.79 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.246, allocations: 338.8 kB / 0.7903 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/0.2463, allocations: 173.1 kB / 0.7905 GB, free: 5.746 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003788/0.2467, allocations: 285.7 kB / 0.7908 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004365/0.2471, allocations: 365.2 kB / 0.7911 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.175e-06/0.2471, allocations: 0 / 0.7911 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008343/0.248, allocations: 0.5645 MB / 0.7917 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.887e-05/0.248, allocations: 69.89 kB / 0.7917 GB, free: 4.355 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.2481, allocations: 4 kB / 0.7917 GB, free: 4.352 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.2481, allocations: 7.984 kB / 0.7917 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.007e-05/0.2482, allocations: 31.8 kB / 0.7918 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.2482, allocations: 4 kB / 0.7918 GB, free: 4.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003805/0.2486, allocations: 87.75 kB / 0.7919 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.884e-05/0.2486, allocations: 27.98 kB / 0.7919 GB, free: 4.195 MB / 0.6075 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.0001905/0.2488, allocations: 170.9 kB / 0.792 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.225e-05/0.2489, allocations: 23.81 kB / 0.7921 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.785e-05/0.249, allocations: 38.3 kB / 0.7921 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.249, allocations: 11.94 kB / 0.7921 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.249, allocations: 4 kB / 0.7921 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.249, allocations: 0 / 0.7921 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009989/0.25, allocations: 0.843 MB / 0.7929 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.25, allocations: 0 / 0.7929 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.215e-05/0.2501, allocations: 15.94 kB / 0.793 GB, free: 3.027 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.2501, allocations: 7.875 kB / 0.793 GB, free: 3.02 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.183e-05/0.2502, allocations: 19.97 kB / 0.793 GB, free: 3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.2502, allocations: 7.938 kB / 0.793 GB, free: 2.992 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2502, allocations: 4 kB / 0.793 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006685/0.2508, allocations: 0.5343 MB / 0.7935 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-05/0.2509, allocations: 100.7 kB / 0.7936 GB, free: 2.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.984e-05/0.251, allocations: 19.98 kB / 0.7936 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.2511, allocations: 19.98 kB / 0.7937 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.2512, allocations: 55.91 kB / 0.7937 GB, free: 2.227 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.099e-05/0.2513, allocations: 27.98 kB / 0.7937 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.593e-05/0.2513, allocations: 103.2 kB / 0.7938 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2513, allocations: 0 / 0.7938 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000388/0.2517, allocations: 88 kB / 0.7939 GB, free: 2.012 MB / 0.6075 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.0002598/0.252, allocations: 151.1 kB / 0.7941 GB, free: 1.855 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0007783/0.2528, allocations: 0.5493 MB / 0.7946 GB, free: 1.285 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2528, allocations: 0 / 0.7946 GB, free: 1.285 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000318/0.2531, allocations: 263.7 kB / 0.7948 GB, free: 1.027 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003808/0.2535, allocations: 36.72 kB / 0.7949 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007769/0.2543, allocations: 486.5 kB / 0.7953 GB, free: 500 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.2546, allocations: 0.7335 MB / 0.7961 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001134/0.2547, allocations: 38.95 kB / 0.7961 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.2548, allocations: 47.36 kB / 0.7961 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of SimCode: time 4.41e-07/0.2549, allocations: 0 / 0.7961 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of Templates: time 0.007839/0.2627, allocations: 4.22 MB / 0.8003 GB, free: 11.45 MB / 0.6231 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)