Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_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_1.6_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.001173/0.001173, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 193.5 kB / 16.53 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.449/1.449, allocations: 222.9 MB / 240.2 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.011/3.011, allocations: 472.6 MB / 0.7451 GB, free: 4.617 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 65.09 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4242/0.4255, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle): time 0.002396/0.4279, allocations: 0.7616 MB / 1.069 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001907/0.4299, allocations: 1.342 MB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.4e-05/0.43, allocations: 3.938 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.123e-05/0.43, allocations: 15.8 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.832e-05/0.4301, allocations: 11.86 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008703/0.431, allocations: 318.4 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003649/0.4314, allocations: 371.3 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.4316, allocations: 57.06 kB / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.4318, allocations: 159.7 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001732/0.4319, allocations: 123.6 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.42e-05/0.432, allocations: 36 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.4321, allocations: 51.98 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.504e-05/0.4322, allocations: 75.77 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.4324, allocations: 135.6 kB / 1.072 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004448/0.4328, allocations: 335.4 kB / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.4329, allocations: 0 / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.733e-06/0.4329, allocations: 0 / 1.072 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.266e-06/0.4329, allocations: 0 / 1.072 GB, free: 6.664 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.0008189/0.4337, allocations: 0.5492 MB / 1.072 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.4338, allocations: 8.031 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.4339, allocations: 28.83 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006865/0.4346, allocations: 260.2 kB / 1.073 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.114e-05/0.4346, allocations: 24.36 kB / 1.073 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.69e-05/0.4347, allocations: 32.36 kB / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004154/0.4351, allocations: 223.9 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.4351, allocations: 7.938 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.998e-05/0.4352, allocations: 15.97 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.4352, allocations: 4 kB / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001983/0.4354, allocations: 87.94 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009697/0.4364, allocations: 0.5664 MB / 1.074 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004956/0.4369, allocations: 250.7 kB / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002386/0.4371, allocations: 118.3 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.4372, allocations: 4 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008608/0.438, allocations: 0.5545 MB / 1.075 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=44): time 4.869e-06/0.438, allocations: 0 / 1.075 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of matching and sorting (n=44): time 0.001062/0.4391, allocations: 0.5645 MB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.4392, allocations: 63.34 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.4393, allocations: 150.8 kB / 1.075 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.991e-05/0.4394, allocations: 57.69 kB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.4395, allocations: 120.9 kB / 1.075 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.4396, allocations: 98.84 kB / 1.076 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001937/0.4398, allocations: 126.2 kB / 1.076 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000185/0.44, allocations: 338.8 kB / 1.076 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.4404, allocations: 181.1 kB / 1.076 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.4408, allocations: 297.8 kB / 1.076 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004777/0.4413, allocations: 369.1 kB / 1.077 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.4413, allocations: 0 / 1.077 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001039/0.4423, allocations: 0.5682 MB / 1.077 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.4425, allocations: 67.39 kB / 1.077 GB, free: 0.6406 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.4425, allocations: 4 kB / 1.077 GB, free: 0.6367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.493e-05/0.4425, allocations: 4 kB / 1.077 GB, free: 0.6328 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.338e-05/0.4426, allocations: 31.8 kB / 1.077 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.4426, allocations: 4 kB / 1.077 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004632/0.4431, allocations: 91.91 kB / 1.078 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/0.4432, allocations: 27.98 kB / 1.078 GB, free: 492 kB / 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.0002094/0.4434, allocations: 174.9 kB / 1.078 GB, free: 308 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.306e-05/0.4434, allocations: 23.81 kB / 1.078 GB, free: 284 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.4436, allocations: 50.3 kB / 1.078 GB, free: 236 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.791e-05/0.4436, allocations: 7.938 kB / 1.078 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.4436, allocations: 0 / 1.078 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4436, allocations: 0 / 1.078 GB, free: 228 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.4449, allocations: 0.8809 MB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/0.4449, allocations: 3.938 kB / 1.079 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.652e-05/0.4449, allocations: 11.92 kB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.4449, allocations: 4 kB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.359e-05/0.445, allocations: 19.97 kB / 1.079 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.445, allocations: 4 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.445, allocations: 0 / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007296/0.4457, allocations: 0.5345 MB / 1.079 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.086e-05/0.4458, allocations: 96.8 kB / 1.079 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.27e-05/0.4459, allocations: 27.98 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.392e-05/0.446, allocations: 15.92 kB / 1.079 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.4462, allocations: 75.83 kB / 1.079 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-05/0.4462, allocations: 31.97 kB / 1.079 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.954e-05/0.4463, allocations: 101 kB / 1.08 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4463, allocations: 0 / 1.08 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004038/0.4467, allocations: 95.98 kB / 1.08 GB, free: 14.24 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.0002725/0.447, allocations: 149.2 kB / 1.08 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009632/0.448, allocations: 0.5878 MB / 1.08 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.448, allocations: 0 / 1.08 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000336/0.4483, allocations: 252.5 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.4487, allocations: 49.97 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009181/0.4497, allocations: 436.8 kB / 1.081 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.45, allocations: 0.7371 MB / 1.082 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001255/0.4502, allocations: 38.95 kB / 1.082 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.4503, allocations: 47.41 kB / 1.082 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of SimCode: time 7.51e-07/0.4503, allocations: 0 / 1.082 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of Templates: time 0.009598/0.4599, allocations: 4.562 MB / 1.086 GB, free: 7.348 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)