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.001468/0.001474, 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.001894/0.001894, allocations: 191.3 kB / 16.14 MB, free: 6.664 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.56/1.56, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.139/3.139, allocations: 472.6 MB / 0.7447 GB, free: 5.055 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 67.19 kB / 0.9114 GB, free: 33.75 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.432/0.4333, allocations: 159.9 MB / 1.068 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.002682/0.4361, allocations: 0.8226 MB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00219/0.4383, allocations: 1.365 MB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.4384, allocations: 4 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.511e-05/0.4385, allocations: 7.875 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.439e-05/0.4386, allocations: 15.84 kB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.4397, allocations: 286.4 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003943/0.4401, allocations: 331.3 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001667/0.4402, allocations: 49.09 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002721/0.4405, allocations: 147.7 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.4407, allocations: 119.6 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.227e-05/0.4408, allocations: 20 kB / 1.071 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.4409, allocations: 35.92 kB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.464e-05/0.441, allocations: 59.86 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.4412, allocations: 127.6 kB / 1.071 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004558/0.4417, allocations: 319.4 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.4417, allocations: 0 / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.343e-06/0.4417, allocations: 0 / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.738e-06/0.4417, allocations: 0 / 1.071 GB, free: 7.289 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.001179/0.4429, allocations: 0.5492 MB / 1.072 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.443, allocations: 12.03 kB / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.4431, allocations: 28.77 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000733/0.4439, allocations: 264.2 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.874e-05/0.4439, allocations: 24.36 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.602e-05/0.444, allocations: 32.36 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004267/0.4444, allocations: 225.9 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.4445, allocations: 3.938 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.844e-05/0.4445, allocations: 11.98 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.4445, allocations: 4 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002254/0.4447, allocations: 93.25 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009945/0.4458, allocations: 0.5703 MB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004891/0.4463, allocations: 246.6 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.4465, allocations: 116.8 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.4465, allocations: 4 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009409/0.4475, allocations: 0.5515 MB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=44): time 2.485e-06/0.4475, allocations: 0 / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44): time 0.001072/0.4486, allocations: 0.5645 MB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.4486, allocations: 59.34 kB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.4488, allocations: 155.2 kB / 1.075 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 8.476e-05/0.4489, allocations: 61.69 kB / 1.075 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.686e-05/0.449, allocations: 108.9 kB / 1.075 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.655e-05/0.4491, allocations: 110.8 kB / 1.075 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.4493, allocations: 122.2 kB / 1.075 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001615/0.4495, allocations: 334.8 kB / 1.075 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004194/0.4499, allocations: 181.1 kB / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004955/0.4504, allocations: 297.8 kB / 1.076 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005594/0.451, allocations: 361.2 kB / 1.076 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.451, allocations: 4 kB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001039/0.452, allocations: 0.576 MB / 1.077 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.452e-05/0.4521, allocations: 64.48 kB / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.4521, allocations: 4 kB / 1.077 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/0.4522, allocations: 4 kB / 1.077 GB, free: 1.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.407e-05/0.4523, allocations: 35.8 kB / 1.077 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.448e-05/0.4523, allocations: 8.375 kB / 1.077 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004185/0.4527, allocations: 83.53 kB / 1.077 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.986e-05/0.4528, allocations: 27.98 kB / 1.077 GB, free: 1.098 MB / 0.8262 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.00022/0.453, allocations: 182.9 kB / 1.077 GB, free: 0.9062 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.261e-05/0.4531, allocations: 19.81 kB / 1.077 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.82e-05/0.4532, allocations: 42.25 kB / 1.077 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/0.4532, allocations: 7.938 kB / 1.077 GB, free: 0.8398 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4532, allocations: 0 / 1.077 GB, free: 0.8398 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.4532, allocations: 3.984 kB / 1.077 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.4546, allocations: 0.8809 MB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.4546, allocations: 3.938 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.791e-05/0.4546, allocations: 19.92 kB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.4547, allocations: 0 / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.414e-05/0.4547, allocations: 23.97 kB / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.4547, allocations: 0 / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.4547, allocations: 4 kB / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007638/0.4555, allocations: 0.5306 MB / 1.078 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.638e-05/0.4556, allocations: 100.8 kB / 1.079 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.702e-05/0.4557, allocations: 23.98 kB / 1.079 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.4558, allocations: 11.98 kB / 1.079 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.456, allocations: 71.89 kB / 1.079 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.013e-05/0.456, allocations: 35.91 kB / 1.079 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.347e-05/0.4561, allocations: 108.6 kB / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4561, allocations: 0 / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004416/0.4566, allocations: 104 kB / 1.079 GB, free: 14.84 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.0002778/0.4569, allocations: 144.7 kB / 1.079 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009928/0.4579, allocations: 0.5606 MB / 1.08 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4579, allocations: 4.75 kB / 1.08 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003891/0.4583, allocations: 251.8 kB / 1.08 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004016/0.4587, allocations: 43.89 kB / 1.08 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009036/0.4596, allocations: 474.6 kB / 1.08 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.4599, allocations: 0.7374 MB / 1.081 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001388/0.4601, allocations: 38.95 kB / 1.081 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.4603, allocations: 51.41 kB / 1.081 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of SimCode: time 2.194e-06/0.4603, allocations: 0 / 1.081 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of Templates: time 0.009748/0.47, allocations: 4.683 MB / 1.086 GB, free: 7.82 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)