Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Latch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.753/1.753, allocations: 288.3 MB / 303.2 MB, free: 8.152 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001367/0.001367, allocations: 177.1 kB / 371.8 MB, free: 10.3 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.745/1.745, allocations: 205.4 MB / 0.6306 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 94.86 kB / 0.7439 GB, free: 5.945 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000472/0.000472, allocations: 16.78 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2569, allocations: 115.3 MB / 0.9794 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.0009399/0.2579, allocations: 486.3 kB / 0.9799 GB, free: 27.22 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001769/0.2597, allocations: 1.271 MB / 0.9811 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.258e-05/0.2598, allocations: 4 kB / 0.9811 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.379e-05/0.2598, allocations: 15.86 kB / 0.9812 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.546e-05/0.2599, allocations: 15.97 kB / 0.9812 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008168/0.2607, allocations: 262.2 kB / 0.9814 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001858/0.2609, allocations: 171.8 kB / 0.9816 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.2611, allocations: 48.78 kB / 0.9816 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.2612, allocations: 119.8 kB / 0.9817 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.2614, allocations: 119.6 kB / 0.9819 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.073e-05/0.2615, allocations: 16 kB / 0.9819 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.2616, allocations: 35.92 kB / 0.9819 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.985e-05/0.2616, allocations: 51.84 kB / 0.982 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.173e-05/0.2617, allocations: 57.64 kB / 0.982 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002541/0.262, allocations: 243.6 kB / 0.9822 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.262, allocations: 0 / 0.9822 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.483e-06/0.262, allocations: 0 / 0.9822 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.262, allocations: 0 / 0.9822 GB, free: 24.8 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.0006036/0.2626, allocations: 482.3 kB / 0.9827 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2627, allocations: 12.02 kB / 0.9827 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.62e-05/0.2628, allocations: 23.91 kB / 0.9827 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006891/0.2635, allocations: 274.6 kB / 0.983 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.728e-05/0.2635, allocations: 23.98 kB / 0.983 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.334e-05/0.2636, allocations: 35.98 kB / 0.9831 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004137/0.2641, allocations: 207 kB / 0.9833 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.2641, allocations: 3.938 kB / 0.9833 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.746e-05/0.2641, allocations: 11.98 kB / 0.9833 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.2641, allocations: 4 kB / 0.9833 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.2644, allocations: 99.86 kB / 0.9834 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008944/0.2653, allocations: 0.5703 MB / 0.9839 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005388/0.2658, allocations: 258.6 kB / 0.9842 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 9.718e-06/0.2659, allocations: 3.953 kB / 0.9842 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007562/0.2666, allocations: 492.5 kB / 0.9846 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=44): time 2.054e-06/0.2666, allocations: 0 / 0.9846 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=44): time 0.001146/0.2678, allocations: 0.5635 MB / 0.9852 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.2679, allocations: 63.39 kB / 0.9853 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.268, allocations: 153.8 kB / 0.9854 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.898e-05/0.2681, allocations: 57.7 kB / 0.9855 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.167e-05/0.2681, allocations: 121.1 kB / 0.9856 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.264e-05/0.2682, allocations: 102.8 kB / 0.9857 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.224e-05/0.2683, allocations: 16 kB / 0.9857 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.789e-05/0.2684, allocations: 330.8 kB / 0.986 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003684/0.2687, allocations: 169.1 kB / 0.9862 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004287/0.2692, allocations: 285.7 kB / 0.9864 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003214/0.2695, allocations: 189.6 kB / 0.9866 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.2695, allocations: 0 / 0.9866 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009803/0.2705, allocations: 0.5564 MB / 0.9872 GB, free: 19.47 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.674e-05/0.2706, allocations: 63.77 kB / 0.9872 GB, free: 19.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.2706, allocations: 8 kB / 0.9872 GB, free: 19.39 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.779e-05/0.2706, allocations: 8 kB / 0.9872 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.034e-05/0.2707, allocations: 27.86 kB / 0.9873 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.2707, allocations: 4 kB / 0.9873 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005271/0.2713, allocations: 103.6 kB / 0.9874 GB, free: 19.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.695e-05/0.2714, allocations: 27.98 kB / 0.9874 GB, free: 19.22 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.0002248/0.2716, allocations: 172 kB / 0.9876 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.832e-05/0.2717, allocations: 39.61 kB / 0.9876 GB, free: 19 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.2718, allocations: 38.3 kB / 0.9876 GB, free: 18.97 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.2718, allocations: 4 kB / 0.9876 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.2718, allocations: 0 / 0.9876 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.2719, allocations: 3.984 kB / 0.9876 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001304/0.2732, allocations: 0.847 MB / 0.9885 GB, free: 18.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.2732, allocations: 3.953 kB / 0.9885 GB, free: 18.05 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.473e-05/0.2732, allocations: 11.94 kB / 0.9885 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.2733, allocations: 4 kB / 0.9885 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.595e-05/0.2733, allocations: 15.97 kB / 0.9885 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2733, allocations: 0 / 0.9885 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2733, allocations: 0 / 0.9885 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008718/0.2742, allocations: 0.5423 MB / 0.989 GB, free: 17.46 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.266e-05/0.2743, allocations: 100.8 kB / 0.9891 GB, free: 17.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.84e-05/0.2744, allocations: 19.98 kB / 0.9891 GB, free: 17.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.2745, allocations: 15.98 kB / 0.9892 GB, free: 17.31 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.2747, allocations: 67.86 kB / 0.9892 GB, free: 17.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.445e-05/0.2748, allocations: 35.92 kB / 0.9893 GB, free: 17.21 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.963e-05/0.2749, allocations: 105 kB / 0.9894 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2749, allocations: 0 / 0.9894 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006021/0.2755, allocations: 95.98 kB / 0.9895 GB, free: 17.02 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.0003392/0.2758, allocations: 143.8 kB / 0.9896 GB, free: 16.87 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000918/0.2768, allocations: 0.5447 MB / 0.9901 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2768, allocations: 0.75 kB / 0.9901 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003604/0.2772, allocations: 264.1 kB / 0.9904 GB, free: 16.04 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.2775, allocations: 27.97 kB / 0.9904 GB, free: 16.01 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.2786, allocations: 469.4 kB / 0.9908 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.2789, allocations: 0.7413 MB / 0.9916 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001527/0.2791, allocations: 34.97 kB / 0.9916 GB, free: 14.73 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.2792, allocations: 43.41 kB / 0.9916 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of SimCode: time 5.51e-07/0.2792, allocations: 0 / 0.9916 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of Templates: time 0.009239/0.2884, allocations: 3.989 MB / 0.9955 GB, free: 10.71 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Latch.pipe 2>&1)