Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.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.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001722/0.001722, allocations: 191 kB / 16.13 MB, free: 6.656 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.656/1.656, allocations: 205.1 MB / 222 MB, free: 4.789 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.834/1.834, allocations: 292.2 MB / 0.5484 GB, free: 13.63 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.001413/0.001414, allocations: 74.5 kB / 0.6708 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3093, allocations: 114.5 MB / 0.7827 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.002302/0.3116, allocations: 0.83 MB / 0.7835 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002013/0.3137, allocations: 1.367 MB / 0.7848 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.3138, allocations: 0 / 0.7848 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.076e-05/0.3138, allocations: 3.938 kB / 0.7848 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.578e-05/0.3139, allocations: 19.84 kB / 0.7849 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008313/0.3148, allocations: 282.4 kB / 0.7851 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003013/0.3151, allocations: 339.5 kB / 0.7855 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.3153, allocations: 48.89 kB / 0.7855 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.3154, allocations: 139.7 kB / 0.7856 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.3156, allocations: 123.6 kB / 0.7858 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.116e-05/0.3157, allocations: 20 kB / 0.7858 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.3158, allocations: 35.98 kB / 0.7858 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.331e-05/0.3159, allocations: 59.78 kB / 0.7859 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.316, allocations: 131.5 kB / 0.786 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003615/0.3164, allocations: 323.4 kB / 0.7863 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3164, allocations: 0 / 0.7863 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.203e-06/0.3164, allocations: 4 kB / 0.7863 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.167e-06/0.3164, allocations: 0 / 0.7863 GB, free: 10.27 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.0008206/0.3172, allocations: 0.5453 MB / 0.7868 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.3173, allocations: 8.031 kB / 0.7868 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.3174, allocations: 32.73 kB / 0.7869 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006205/0.318, allocations: 252.3 kB / 0.7871 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.95e-05/0.3181, allocations: 24.36 kB / 0.7871 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.394e-05/0.3182, allocations: 40.36 kB / 0.7872 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004042/0.3186, allocations: 225.9 kB / 0.7874 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.3186, allocations: 3.938 kB / 0.7874 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.53e-05/0.3186, allocations: 11.97 kB / 0.7874 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3186, allocations: 0 / 0.7874 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.3188, allocations: 95.94 kB / 0.7875 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000895/0.3197, allocations: 0.5625 MB / 0.788 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000483/0.3202, allocations: 257.3 kB / 0.7883 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/0.3205, allocations: 120.7 kB / 0.7884 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.612e-05/0.3205, allocations: 0 / 0.7884 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008746/0.3214, allocations: 0.5491 MB / 0.7889 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=44): time 1.513e-06/0.3214, allocations: 0 / 0.7889 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of matching and sorting (n=44): time 0.001012/0.3224, allocations: 0.5596 MB / 0.7895 GB, free: 6.816 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.3225, allocations: 75.28 kB / 0.7896 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.3226, allocations: 152.2 kB / 0.7897 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.451e-05/0.3227, allocations: 53.7 kB / 0.7898 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.3228, allocations: 116.8 kB / 0.7899 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.851e-05/0.3229, allocations: 102.9 kB / 0.79 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.3231, allocations: 122.2 kB / 0.7901 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3233, allocations: 342.8 kB / 0.7904 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003406/0.3236, allocations: 185.1 kB / 0.7906 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003966/0.324, allocations: 289.8 kB / 0.7909 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004633/0.3245, allocations: 365.1 kB / 0.7912 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.3245, allocations: 4 kB / 0.7912 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008188/0.3253, allocations: 0.572 MB / 0.7918 GB, free: 4.316 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.556e-05/0.3254, allocations: 71.39 kB / 0.7918 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3254, allocations: 0 / 0.7918 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.3254, allocations: 8 kB / 0.7918 GB, free: 4.227 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.001e-05/0.3255, allocations: 32.17 kB / 0.7919 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.3256, allocations: 8 kB / 0.7919 GB, free: 4.188 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003748/0.3259, allocations: 79.62 kB / 0.792 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.026e-05/0.326, allocations: 27.98 kB / 0.792 GB, free: 4.082 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.clr,$PRE.falCleFalIni.clr,$PRE.truCleTruIni.clr,$PRE.truCleFalIni.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$whenCondition27,$whenCondition28,$whenCondition25,$whenCondition26,fal.y,tru.y,falCleTruIni.clr,falCleFalIni.clr,truCleTruIni.clr,truCleFalIni.clr,togInp.y,$PRE.togInp.y,cleInp.y,$PRE.cleInp.y,swiCleInp1.y,$PRE.swiCleInp1.y,swiCleInp1.clr,swiCleInp1.u,$PRE.swiCleInp1.u,swiCleInp.y,$PRE.swiCleInp.y,swiCleInp.clr,swiCleInp.u,$PRE.swiCleInp.u,truCleFalIni.y,$PRE.truCleFalIni.y,truCleFalIni.u,$PRE.truCleFalIni.u,truCleTruIni.y,$PRE.truCleTruIni.y,truCleTruIni.u,$PRE.truCleTruIni.u,falCleFalIni.y,$PRE.falCleFalIni.y,falCleFalIni.u,$PRE.falCleFalIni.u,falCleTruIni.y,$PRE.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.0001994/0.3262, allocations: 178.9 kB / 0.7922 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.954e-05/0.3263, allocations: 23.81 kB / 0.7922 GB, free: 3.871 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.473e-05/0.3263, allocations: 34.31 kB / 0.7922 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.517e-06/0.3264, allocations: 7.938 kB / 0.7922 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.3264, allocations: 4 kB / 0.7922 GB, free: 3.828 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.3264, allocations: 7.984 kB / 0.7922 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.3275, allocations: 0.8781 MB / 0.7931 GB, free: 2.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3276, allocations: 3.938 kB / 0.7931 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.324e-05/0.3276, allocations: 15.92 kB / 0.7931 GB, free: 2.867 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.3276, allocations: 7.938 kB / 0.7931 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4e-05/0.3277, allocations: 19.97 kB / 0.7931 GB, free: 2.84 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.3277, allocations: 4 kB / 0.7931 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.3277, allocations: 0 / 0.7931 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007164/0.3284, allocations: 0.5341 MB / 0.7937 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.591e-05/0.3285, allocations: 96.8 kB / 0.7938 GB, free: 2.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.362e-05/0.3285, allocations: 27.98 kB / 0.7938 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.3287, allocations: 15.98 kB / 0.7938 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.3288, allocations: 67.89 kB / 0.7939 GB, free: 2.062 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.871e-05/0.3289, allocations: 35.97 kB / 0.7939 GB, free: 2.027 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.511e-05/0.329, allocations: 97.92 kB / 0.794 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.329, allocations: 4 kB / 0.794 GB, free: 1.93 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003972/0.3294, allocations: 99.89 kB / 0.7941 GB, free: 1.832 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 (swiCleInp1.clr,swiCleInp.clr,$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,falCleFalIni.u,falCleFalIni.y,truCleTruIni.u,truCleTruIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y,cleInp.y,togInp.y) * Number of discrete states: 12 (falCleFalIni.u,falCleFalIni.y,falCleTruIni.u,falCleTruIni.y,truCleTruIni.u,truCleTruIni.y,truCleFalIni.u,truCleFalIni.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.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.00026/0.3296, allocations: 151.2 kB / 0.7942 GB, free: 1.676 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000767/0.3304, allocations: 0.5654 MB / 0.7948 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3304, allocations: 4.125 kB / 0.7948 GB, free: 1.086 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000307/0.3307, allocations: 259.7 kB / 0.795 GB, free: 0.832 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.3311, allocations: 47.84 kB / 0.7951 GB, free: 0.7852 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007748/0.3319, allocations: 466.7 kB / 0.7955 GB, free: 308 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.3322, allocations: 0.7373 MB / 0.7962 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001558/0.3324, allocations: 42.95 kB / 0.7963 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.3325, allocations: 47.41 kB / 0.7963 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of SimCode: time 4.21e-07/0.3325, allocations: 0 / 0.7963 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of Templates: time 0.008757/0.3413, allocations: 4.68 MB / 0.8009 GB, free: 10.8 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)