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.001073/0.001073, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001253/0.001253, allocations: 188.9 kB / 16.25 MB, free: 6.625 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.678/1.678, allocations: 205.1 MB / 222.1 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.917/1.917, allocations: 292.2 MB / 0.5485 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.001447/0.001447, allocations: 69.05 kB / 0.671 GB, free: 26.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3001, allocations: 114.6 MB / 0.7829 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Latch): time 0.002541/0.3027, allocations: 0.8416 MB / 0.7837 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001914/0.3046, allocations: 1.332 MB / 0.785 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.552e-05/0.3047, allocations: 0 / 0.785 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.997e-05/0.3048, allocations: 3.938 kB / 0.785 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.736e-05/0.3049, allocations: 19.91 kB / 0.785 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008263/0.3057, allocations: 282.1 kB / 0.7853 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003439/0.3061, allocations: 363.5 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.3063, allocations: 60.86 kB / 0.7857 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.3064, allocations: 151.8 kB / 0.7858 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001615/0.3066, allocations: 119.6 kB / 0.7859 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.516e-05/0.3067, allocations: 36 kB / 0.786 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.3068, allocations: 55.97 kB / 0.786 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.668e-05/0.3069, allocations: 71.84 kB / 0.7861 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.307, allocations: 139.6 kB / 0.7862 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003359/0.3074, allocations: 331.4 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3074, allocations: 0 / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3074, allocations: 0 / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.3074, allocations: 4 kB / 0.7866 GB, free: 10.11 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.000795/0.3082, allocations: 0.5336 MB / 0.7871 GB, free: 9.516 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.3082, allocations: 12.03 kB / 0.7871 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.885e-05/0.3083, allocations: 32.73 kB / 0.7871 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006256/0.309, allocations: 268.2 kB / 0.7874 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/0.309, allocations: 24.36 kB / 0.7874 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.677e-05/0.3091, allocations: 36.36 kB / 0.7874 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004048/0.3095, allocations: 209.9 kB / 0.7876 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.3095, allocations: 3.938 kB / 0.7876 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.771e-05/0.3096, allocations: 15.97 kB / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.3096, allocations: 7.938 kB / 0.7877 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.3098, allocations: 95.94 kB / 0.7878 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008595/0.3106, allocations: 0.5664 MB / 0.7883 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004748/0.3111, allocations: 265.6 kB / 0.7886 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001856/0.3113, allocations: 116.8 kB / 0.7887 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.3113, allocations: 4 kB / 0.7887 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007978/0.3122, allocations: 494.5 kB / 0.7891 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=44): time 2.334e-06/0.3122, allocations: 0 / 0.7891 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of matching and sorting (n=44): time 0.001015/0.3132, allocations: 0.5713 MB / 0.7897 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.3132, allocations: 67.3 kB / 0.7898 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.3134, allocations: 152.2 kB / 0.7899 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.094e-05/0.3135, allocations: 53.7 kB / 0.79 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.819e-05/0.3136, allocations: 116.8 kB / 0.7901 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.699e-05/0.3136, allocations: 102.9 kB / 0.7902 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.3138, allocations: 122.2 kB / 0.7903 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.314, allocations: 334.8 kB / 0.7906 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002922/0.3143, allocations: 173.1 kB / 0.7908 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/0.3147, allocations: 289.7 kB / 0.791 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004574/0.3151, allocations: 361.2 kB / 0.7914 GB, free: 4.836 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3151, allocations: 4 kB / 0.7914 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008299/0.316, allocations: 0.5603 MB / 0.7919 GB, free: 4.25 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.265e-05/0.316, allocations: 63.39 kB / 0.792 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3161, allocations: 4 kB / 0.792 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.65e-05/0.3161, allocations: 8 kB / 0.792 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.141e-05/0.3162, allocations: 32.17 kB / 0.792 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.3162, allocations: 8 kB / 0.7921 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003942/0.3166, allocations: 79.62 kB / 0.7921 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.557e-05/0.3167, allocations: 31.98 kB / 0.7922 GB, free: 4.016 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.0001987/0.3169, allocations: 174.9 kB / 0.7923 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.069e-05/0.3169, allocations: 23.81 kB / 0.7924 GB, free: 3.809 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.481e-05/0.317, allocations: 34.31 kB / 0.7924 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.317, allocations: 11.92 kB / 0.7924 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.317, allocations: 3.938 kB / 0.7924 GB, free: 3.762 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.3171, allocations: 4 kB / 0.7924 GB, free: 3.758 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.3181, allocations: 0.8469 MB / 0.7932 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3181, allocations: 0 / 0.7932 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.424e-05/0.3182, allocations: 11.92 kB / 0.7932 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.3182, allocations: 11.88 kB / 0.7933 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.81e-05/0.3182, allocations: 23.97 kB / 0.7933 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3182, allocations: 0 / 0.7933 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3182, allocations: 4 kB / 0.7933 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006942/0.3189, allocations: 0.5343 MB / 0.7938 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.774e-05/0.319, allocations: 104.7 kB / 0.7939 GB, free: 2.133 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.029e-05/0.3191, allocations: 19.98 kB / 0.7939 GB, free: 2.113 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.759e-05/0.3192, allocations: 15.98 kB / 0.7939 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.3193, allocations: 47.92 kB / 0.794 GB, free: 2.051 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.321e-05/0.3194, allocations: 31.97 kB / 0.794 GB, free: 2.02 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.011e-05/0.3195, allocations: 107.2 kB / 0.7941 GB, free: 1.914 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3195, allocations: 4 kB / 0.7941 GB, free: 1.91 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003887/0.3199, allocations: 95.98 kB / 0.7942 GB, free: 1.816 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.000256/0.3201, allocations: 143.2 kB / 0.7943 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0009799/0.3211, allocations: 0.5655 MB / 0.7949 GB, free: 1.082 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3211, allocations: 4.125 kB / 0.7949 GB, free: 1.078 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003177/0.3214, allocations: 255.7 kB / 0.7951 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003944/0.3218, allocations: 43.94 kB / 0.7952 GB, free: 0.7852 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008025/0.3227, allocations: 484.8 kB / 0.7956 GB, free: 288 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.323, allocations: 0.7371 MB / 0.7964 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001144/0.3231, allocations: 38.95 kB / 0.7964 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.3232, allocations: 39.36 kB / 0.7964 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of SimCode: time 5.81e-07/0.3232, allocations: 0 / 0.7964 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of Templates: time 0.008454/0.3317, allocations: 4.504 MB / 0.8008 GB, free: 10.96 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)