Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_3.0.0_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_3.0.0_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.001159/0.001159, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009246/0.009247, allocations: 169 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.582/1.582, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.229/3.229, allocations: 473.4 MB / 0.7469 GB, free: 6.031 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004297/0.0004301, allocations: 14.14 kB / 0.9158 GB, free: 33.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4246/0.4251, allocations: 162.2 MB / 1.074 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.001074/0.4262, allocations: 491.4 kB / 1.075 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002271/0.4285, allocations: 1.35 MB / 1.076 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.4286, allocations: 4 kB / 1.076 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.24e-05/0.4287, allocations: 7.922 kB / 1.076 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.4288, allocations: 7.938 kB / 1.076 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.4299, allocations: 286 kB / 1.076 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005232/0.4304, allocations: 339.2 kB / 1.077 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.4307, allocations: 49.08 kB / 1.077 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003468/0.431, allocations: 131.8 kB / 1.077 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002653/0.4313, allocations: 115.6 kB / 1.077 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.126e-05/0.4314, allocations: 16 kB / 1.077 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.4315, allocations: 31.98 kB / 1.077 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.619e-05/0.4316, allocations: 51.84 kB / 1.077 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.4318, allocations: 141.3 kB / 1.077 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004827/0.4323, allocations: 319.3 kB / 1.077 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.4323, allocations: 8 kB / 1.077 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.027e-06/0.4323, allocations: 0 / 1.077 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.162e-05/0.4323, allocations: 3.938 kB / 1.077 GB, free: 4.18 MB / 0.8262 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.0009071/0.4333, allocations: 474.6 kB / 1.078 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/0.4333, allocations: 8.031 kB / 1.078 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.4335, allocations: 28.75 kB / 1.078 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000786/0.4343, allocations: 272.1 kB / 1.078 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.159e-05/0.4344, allocations: 20.38 kB / 1.078 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.697e-05/0.4345, allocations: 36.36 kB / 1.078 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005406/0.435, allocations: 226.5 kB / 1.078 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.435, allocations: 3.938 kB / 1.078 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.037e-05/0.4351, allocations: 15.95 kB / 1.078 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.4351, allocations: 0 / 1.078 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002141/0.4353, allocations: 95.94 kB / 1.079 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009515/0.4363, allocations: 0.5625 MB / 1.079 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004661/0.4367, allocations: 258.6 kB / 1.079 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.4369, allocations: 112.8 kB / 1.079 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.437, allocations: 0 / 1.079 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008951/0.4379, allocations: 0.5569 MB / 1.08 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=44): time 1.954e-06/0.4379, allocations: 0 / 1.08 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44): time 0.001021/0.4389, allocations: 0.553 MB / 1.08 GB, free: 0.8008 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.033e-05/0.439, allocations: 71.28 kB / 1.081 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.4392, allocations: 156 kB / 1.081 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.4393, allocations: 57.69 kB / 1.081 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.777e-05/0.4394, allocations: 116.8 kB / 1.081 GB, free: 384 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.4395, allocations: 106.8 kB / 1.081 GB, free: 276 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.4396, allocations: 61.69 kB / 1.081 GB, free: 208 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.4398, allocations: 338.8 kB / 1.081 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003694/0.4402, allocations: 185.1 kB / 1.082 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004479/0.4406, allocations: 289.8 kB / 1.082 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000559/0.4412, allocations: 369.1 kB / 1.082 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.4412, allocations: 0 / 1.082 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0009968/0.4422, allocations: 0.5643 MB / 1.083 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.239e-05/0.4423, allocations: 71.39 kB / 1.083 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.4423, allocations: 4.375 kB / 1.083 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/0.4424, allocations: 8 kB / 1.083 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.842e-05/0.4424, allocations: 31.8 kB / 1.083 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.4425, allocations: 7.938 kB / 1.083 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004719/0.4429, allocations: 99.62 kB / 1.083 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.963e-05/0.443, allocations: 31.98 kB / 1.083 GB, free: 14.1 MB / 0.8419 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.000257/0.4433, allocations: 174.9 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.252e-05/0.4433, allocations: 31.72 kB / 1.083 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.4435, allocations: 34.31 kB / 1.083 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.4435, allocations: 7.938 kB / 1.083 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/0.4435, allocations: 0 / 1.083 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.4435, allocations: 3.984 kB / 1.083 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.4448, allocations: 0.881 MB / 1.084 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.4448, allocations: 3.938 kB / 1.084 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.606e-05/0.4449, allocations: 19.92 kB / 1.084 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.4449, allocations: 0 / 1.084 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.445, allocations: 23.97 kB / 1.084 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.445, allocations: 0 / 1.084 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.445, allocations: 3.938 kB / 1.084 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007666/0.4458, allocations: 0.5307 MB / 1.085 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.174e-05/0.4459, allocations: 104.7 kB / 1.085 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.384e-05/0.4459, allocations: 19.98 kB / 1.085 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.851e-05/0.446, allocations: 15.98 kB / 1.085 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.4462, allocations: 71.83 kB / 1.085 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-05/0.4463, allocations: 35.97 kB / 1.085 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.449e-05/0.4464, allocations: 100.7 kB / 1.085 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4464, allocations: 3.938 kB / 1.085 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000435/0.4468, allocations: 95.98 kB / 1.085 GB, free: 11.85 MB / 0.8419 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.0002704/0.4471, allocations: 155.9 kB / 1.085 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008777/0.448, allocations: 0.5645 MB / 1.086 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.448, allocations: 0.75 kB / 1.086 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003483/0.4483, allocations: 251.8 kB / 1.086 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.4487, allocations: 50.72 kB / 1.086 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009576/0.4497, allocations: 477.5 kB / 1.087 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.45, allocations: 0.7374 MB / 1.087 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001204/0.4502, allocations: 34.97 kB / 1.087 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.4503, allocations: 51.39 kB / 1.087 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of SimCode: time 4.31e-07/0.4503, allocations: 0 / 1.087 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of Templates: time 0.01117/0.4615, allocations: 4.626 MB / 1.092 GB, free: 4.871 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)