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.001014/0.001014, allocations: 102.7 kB / 16.36 MB, free: 6.305 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.0009795/0.0009795, allocations: 192.5 kB / 17.29 MB, free: 5.875 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.406/1.406, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.809/1.809, allocations: 292.3 MB / 0.5496 GB, free: 17.46 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.002521/0.002521, allocations: 75.91 kB / 0.6729 GB, free: 5.789 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2493, allocations: 114.6 MB / 0.7848 GB, free: 3.125 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.002419/0.2518, allocations: 0.7911 MB / 0.7856 GB, free: 2.328 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001951/0.2538, allocations: 1.34 MB / 0.7869 GB, free: 0.9727 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.2539, allocations: 4 kB / 0.7869 GB, free: 0.9688 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 5.316e-05/0.2539, allocations: 11.86 kB / 0.7869 GB, free: 0.957 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.081e-05/0.2541, allocations: 7.875 kB / 0.7869 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009331/0.255, allocations: 321.8 kB / 0.7872 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0004799/0.2555, allocations: 375.5 kB / 0.7876 GB, free: 280 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.2557, allocations: 53.09 kB / 0.7876 GB, free: 228 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.2559, allocations: 159.7 kB / 0.7878 GB, free: 68 kB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.377/0.6329, allocations: 131.7 kB / 0.7879 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.6331, allocations: 37.75 kB / 0.7879 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.6332, allocations: 51.77 kB / 0.788 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.839e-05/0.6333, allocations: 67.25 kB / 0.788 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.6335, allocations: 138.4 kB / 0.7882 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003637/0.6338, allocations: 340.2 kB / 0.7885 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.6339, allocations: 2.719 kB / 0.7885 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.583e-06/0.6339, allocations: 0 / 0.7885 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.103e-06/0.6339, allocations: 2.625 kB / 0.7885 GB, free: 47.52 MB / 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.0006727/0.6346, allocations: 0.5391 MB / 0.789 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.6346, allocations: 10.75 kB / 0.789 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.976e-05/0.6347, allocations: 30.77 kB / 0.7891 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.6352, allocations: 255 kB / 0.7893 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.579e-05/0.6352, allocations: 23 kB / 0.7893 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.492e-05/0.6353, allocations: 38.08 kB / 0.7894 GB, free: 46.89 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003242/0.6356, allocations: 222.8 kB / 0.7896 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.6357, allocations: 3.938 kB / 0.7896 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.6357, allocations: 16.58 kB / 0.7896 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.6357, allocations: 3.625 kB / 0.7896 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.6359, allocations: 92.2 kB / 0.7897 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006836/0.6366, allocations: 0.5619 MB / 0.7902 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003814/0.637, allocations: 250.5 kB / 0.7905 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.6371, allocations: 117.9 kB / 0.7906 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.6371, allocations: 7.594 kB / 0.7906 GB, free: 46.54 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000687/0.6378, allocations: 0.5537 MB / 0.7911 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=44): time 1.844e-06/0.6378, allocations: 0 / 0.7911 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of matching and sorting (n=44): time 0.0008428/0.6387, allocations: 0.5567 MB / 0.7917 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.6387, allocations: 66.34 kB / 0.7917 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.772e-05/0.6389, allocations: 153.6 kB / 0.7919 GB, free: 46.26 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.227e-05/0.6389, allocations: 61.5 kB / 0.792 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.085e-05/0.639, allocations: 107.3 kB / 0.7921 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.21e-05/0.6391, allocations: 99.83 kB / 0.7922 GB, free: 46.09 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.6392, allocations: 122.9 kB / 0.7923 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.937e-05/0.6393, allocations: 336.9 kB / 0.7926 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.6396, allocations: 183.2 kB / 0.7928 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000335/0.6399, allocations: 292.8 kB / 0.793 GB, free: 45.66 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000393/0.6403, allocations: 371.7 kB / 0.7934 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.6403, allocations: 0 / 0.7934 GB, free: 45.48 MB / 0.6544 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007388/0.6411, allocations: 0.5726 MB / 0.794 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.6411, allocations: 64.16 kB / 0.794 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.6411, allocations: 5.25 kB / 0.794 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.6412, allocations: 5.844 kB / 0.794 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.176e-05/0.6412, allocations: 33.97 kB / 0.7941 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.6413, allocations: 8.344 kB / 0.7941 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003734/0.6416, allocations: 81.64 kB / 0.7941 GB, free: 45.28 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.846e-05/0.6417, allocations: 28.03 kB / 0.7942 GB, free: 45.28 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.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.0001587/0.6419, allocations: 185 kB / 0.7944 GB, free: 45.16 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.064e-05/0.6419, allocations: 22.12 kB / 0.7944 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.027e-05/0.642, allocations: 41.62 kB / 0.7944 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.642, allocations: 7.719 kB / 0.7944 GB, free: 45.14 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.642, allocations: 0 / 0.7944 GB, free: 45.14 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.642, allocations: 3.5 kB / 0.7944 GB, free: 45.14 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009821/0.643, allocations: 0.8916 MB / 0.7953 GB, free: 44.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.643, allocations: 3.938 kB / 0.7953 GB, free: 44.82 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.657e-05/0.6431, allocations: 10.2 kB / 0.7953 GB, free: 44.82 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.6431, allocations: 3.438 kB / 0.7953 GB, free: 44.82 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.547e-05/0.6431, allocations: 26.53 kB / 0.7953 GB, free: 44.82 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.6431, allocations: 2.859 kB / 0.7953 GB, free: 44.82 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.6432, allocations: 0 / 0.7953 GB, free: 44.82 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005579/0.6437, allocations: 0.5317 MB / 0.7959 GB, free: 44.67 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.402e-05/0.6438, allocations: 95.86 kB / 0.7959 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.626e-05/0.6438, allocations: 25.89 kB / 0.796 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.525e-05/0.6439, allocations: 15.03 kB / 0.796 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.6441, allocations: 68.92 kB / 0.7961 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.073e-05/0.6441, allocations: 30.95 kB / 0.7961 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.691e-05/0.6442, allocations: 107.5 kB / 0.7962 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6442, allocations: 1.812 kB / 0.7962 GB, free: 44.49 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003908/0.6446, allocations: 95.66 kB / 0.7963 GB, free: 44.49 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 (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.0001991/0.6448, allocations: 151.5 kB / 0.7964 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0007083/0.6455, allocations: 0.5615 MB / 0.797 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6455, allocations: 1.125 kB / 0.797 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002709/0.6458, allocations: 262.6 kB / 0.7972 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.6462, allocations: 46.16 kB / 0.7973 GB, free: 44.25 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007282/0.6469, allocations: 462.1 kB / 0.7977 GB, free: 43.98 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001637/0.6471, allocations: 0.7332 MB / 0.7984 GB, free: 43.28 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.6472, allocations: 48.69 kB / 0.7985 GB, free: 43.27 MB / 0.6544 GB Notification: Performance of SimCode: time 3.01e-07/0.6472, allocations: 0.8438 kB / 0.7985 GB, free: 43.27 MB / 0.6544 GB Notification: Performance of Templates: time 0.008761/0.656, allocations: 3.938 MB / 0.8023 GB, free: 43.04 MB / 0.6544 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)