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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.725/1.725, allocations: 292.6 MB / 307.5 MB, free: 5.09 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001133/0.001132, allocations: 185 kB / 377.1 MB, free: 1.414 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.966/1.966, allocations: 205.4 MB / 0.6366 GB, free: 8.629 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000831/0.000831, allocations: 92.17 kB / 0.7509 GB, free: 62.94 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003837, allocations: 8 kB / 0.8749 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2412, allocations: 116.3 MB / 0.9884 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7014/0.9426, allocations: 139.6 MB / 1.125 GB, free: 35.15 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.9429, allocations: 70.36 kB / 1.125 GB, free: 35.09 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.0108/0.9537, allocations: 3.973 MB / 1.129 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.254e-06/0.9537, allocations: 0 / 1.129 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.434e-05/0.9538, allocations: 8 kB / 1.129 GB, free: 32.37 MB / 0.7292 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.0007804/0.9545, allocations: 497.8 kB / 1.129 GB, free: 31.85 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 6.02e-05/0.9546, allocations: 16.02 kB / 1.129 GB, free: 31.84 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.9547, allocations: 50.66 kB / 1.129 GB, free: 31.79 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.9549, allocations: 23.81 kB / 1.129 GB, free: 31.76 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.955, allocations: 174.6 kB / 1.129 GB, free: 31.56 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.286e-05/0.955, allocations: 25.36 kB / 1.129 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.614e-05/0.9551, allocations: 35.47 kB / 1.129 GB, free: 31.51 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003876/0.9555, allocations: 216.7 kB / 1.13 GB, free: 31.36 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.9556, allocations: 7.375 kB / 1.13 GB, free: 31.35 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/0.9556, allocations: 11.47 kB / 1.13 GB, free: 31.34 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.9556, allocations: 5.031 kB / 1.13 GB, free: 31.34 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.9558, allocations: 97.38 kB / 1.13 GB, free: 31.26 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008474/0.9567, allocations: 0.5456 MB / 1.13 GB, free: 30.8 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003924/0.9571, allocations: 291.3 kB / 1.131 GB, free: 30.54 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.9571, allocations: 3.938 kB / 1.131 GB, free: 30.54 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006808/0.9578, allocations: 0.5661 MB / 1.131 GB, free: 30.16 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=48): time 3.086e-06/0.9578, allocations: 1.922 kB / 1.131 GB, free: 30.16 MB / 0.7292 GB Notification: Performance of matching and sorting (n=48): time 0.0009249/0.9587, allocations: 0.6123 MB / 1.132 GB, free: 29.61 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.9588, allocations: 67.83 kB / 1.132 GB, free: 29.53 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.55e-05/0.9589, allocations: 128.4 kB / 1.132 GB, free: 29.41 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 7.902e-05/0.959, allocations: 60.94 kB / 1.132 GB, free: 29.34 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.36e-05/0.959, allocations: 100.2 kB / 1.132 GB, free: 29.25 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.005e-05/0.9591, allocations: 105.6 kB / 1.132 GB, free: 29.15 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.9592, allocations: 16 kB / 1.132 GB, free: 29.14 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.794e-05/0.9593, allocations: 335 kB / 1.133 GB, free: 28.81 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003568/0.9596, allocations: 188.8 kB / 1.133 GB, free: 28.64 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003471/0.96, allocations: 282.2 kB / 1.133 GB, free: 28.37 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.9602, allocations: 196.3 kB / 1.133 GB, free: 28.18 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.9602, allocations: 4.344 kB / 1.133 GB, free: 28.17 MB / 0.7292 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0007343/0.961, allocations: 0.5731 MB / 1.134 GB, free: 27.62 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.361e-05/0.961, allocations: 73.66 kB / 1.134 GB, free: 27.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.961, allocations: 4.703 kB / 1.134 GB, free: 27.54 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.9611, allocations: 4 kB / 1.134 GB, free: 27.54 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.994e-05/0.9611, allocations: 23.41 kB / 1.134 GB, free: 27.52 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.9611, allocations: 7.938 kB / 1.134 GB, free: 27.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003737/0.9615, allocations: 86.72 kB / 1.134 GB, free: 27.44 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.9616, allocations: 27.38 kB / 1.134 GB, free: 27.42 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.falCleTruIni.clr,$PRE.falCleFalIni.clr,$PRE.truCleTruIni.clr,$PRE.truCleFalIni.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$PRE.falCleTruIni.u,falCleTruIni.u,falCleTruIni.clr,$PRE.falCleTruIni.y,falCleTruIni.y,$PRE.falCleFalIni.u,falCleFalIni.u,falCleFalIni.clr,$PRE.falCleFalIni.y,falCleFalIni.y,$PRE.truCleTruIni.u,truCleTruIni.u,truCleTruIni.clr,$PRE.truCleTruIni.y,truCleTruIni.y,$PRE.truCleFalIni.u,truCleFalIni.u,truCleFalIni.clr,$PRE.truCleFalIni.y,truCleFalIni.y,$PRE.swiCleInp.u,swiCleInp.u,swiCleInp.clr,$PRE.swiCleInp.y,swiCleInp.y,$PRE.swiCleInp1.u,swiCleInp1.u,swiCleInp1.clr,$PRE.swiCleInp1.y,swiCleInp1.y,$PRE.cleInp.y,cleInp.y,$PRE.togInp.y,togInp.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001704/0.9618, allocations: 179.8 kB / 1.134 GB, free: 27.24 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.9618, allocations: 23.77 kB / 1.134 GB, free: 27.21 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.398e-05/0.9619, allocations: 44 kB / 1.134 GB, free: 27.18 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.9619, allocations: 7.938 kB / 1.134 GB, free: 27.18 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.9619, allocations: 0 / 1.134 GB, free: 27.18 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.9619, allocations: 3.922 kB / 1.134 GB, free: 27.18 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.9632, allocations: 0.963 MB / 1.135 GB, free: 26.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.9632, allocations: 0 / 1.135 GB, free: 26.3 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.043e-05/0.9632, allocations: 18.66 kB / 1.135 GB, free: 26.29 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.9632, allocations: 0 / 1.135 GB, free: 26.29 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.697e-05/0.9633, allocations: 29.23 kB / 1.135 GB, free: 26.27 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.9633, allocations: 4.516 kB / 1.135 GB, free: 26.26 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.9633, allocations: 3.938 kB / 1.135 GB, free: 26.26 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007591/0.9641, allocations: 0.63 MB / 1.136 GB, free: 25.63 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.218e-05/0.9641, allocations: 93.48 kB / 1.136 GB, free: 25.52 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.228e-05/0.9642, allocations: 29.36 kB / 1.136 GB, free: 25.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.9643, allocations: 12.08 kB / 1.136 GB, free: 25.49 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/0.9646, allocations: 100.4 kB / 1.136 GB, free: 25.44 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.385e-05/0.9646, allocations: 31.88 kB / 1.136 GB, free: 25.42 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.402e-05/0.9647, allocations: 107.7 kB / 1.136 GB, free: 25.32 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9647, allocations: 0 / 1.136 GB, free: 25.32 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004067/0.9651, allocations: 103.4 kB / 1.136 GB, free: 25.22 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 48 (swiCleInp1.clr,swiCleInp.clr,$whenCondition25,$whenCondition26,$whenCondition27,$whenCondition28,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,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,falCleFalIni.clr,falCleTruIni.clr,truCleFalIni.clr,truCleTruIni.clr) * Number of discrete states: 12 (truCleFalIni.u,truCleFalIni.y,falCleTruIni.u,falCleTruIni.y,truCleTruIni.u,truCleTruIni.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y,falCleFalIni.u,falCleFalIni.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001081/0.9662, allocations: 1.493 MB / 1.138 GB, free: 23.73 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007749/0.967, allocations: 0.5817 MB / 1.138 GB, free: 23.17 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.967, allocations: 0.9375 kB / 1.138 GB, free: 23.17 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.9673, allocations: 267 kB / 1.139 GB, free: 22.93 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.9676, allocations: 36.27 kB / 1.139 GB, free: 22.9 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.969, allocations: 2.31 MB / 1.141 GB, free: 20.56 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001841/0.9692, allocations: 0.7463 MB / 1.142 GB, free: 19.81 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001229/0.9693, allocations: 36.38 kB / 1.142 GB, free: 19.79 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.9695, allocations: 85.36 kB / 1.142 GB, free: 19.71 MB / 0.7292 GB Notification: Performance of SimCode: time 3.31e-07/0.9695, allocations: 1.219 kB / 1.142 GB, free: 19.71 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.9898, allocations: 6.204 MB / 1.148 GB, free: 16.27 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001315/0.99, allocations: 185.9 kB / 1.148 GB, free: 16.03 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/2.816, allocations: 0 / 1.148 GB, free: 16.03 MB / 0.7292 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)