Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0.0/package.mo): time 2.371/2.371, allocations: 284.9 MB / 292.4 MB, free: 10.57 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.001433/0.001433, allocations: 180.9 kB / 360.6 MB, free: 7.273 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.2 MB / 0.6191 GB, free: 12.21 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.001105/0.001104, allocations: 98.28 kB / 0.7321 GB, free: 44.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.27e-05/3.282e-05, allocations: 8 kB / 0.8509 GB, free: 3.328 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8109/0.811, allocations: 115.3 MB / 0.9634 GB, free: 78.67 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2365/1.048, allocations: 137.7 MB / 1.098 GB, free: 2.875 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/1.048, allocations: 71.95 kB / 1.098 GB, free: 2.805 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01913/1.067, allocations: 3.951 MB / 1.102 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.423e-06/1.067, allocations: 2.156 kB / 1.102 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.316e-06/1.067, allocations: 0 / 1.102 GB, free: 14.93 MB / 0.7136 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.0007903/1.068, allocations: 494.4 kB / 1.102 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/1.068, allocations: 12.03 kB / 1.102 GB, free: 14.37 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/1.068, allocations: 23.86 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/1.068, allocations: 175.8 kB / 1.102 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.691e-05/1.068, allocations: 7.984 kB / 1.102 GB, free: 14.13 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/1.068, allocations: 24 kB / 1.102 GB, free: 14.11 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002816/1.069, allocations: 87.92 kB / 1.103 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004774/1.069, allocations: 195.9 kB / 1.103 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/1.069, allocations: 0 / 1.103 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.858e-05/1.069, allocations: 11.97 kB / 1.103 GB, free: 13.81 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/1.069, allocations: 7.953 kB / 1.103 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/1.07, allocations: 0.4985 MB / 1.103 GB, free: 13.27 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005953/1.071, allocations: 263.8 kB / 1.104 GB, free: 13 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/1.071, allocations: 130.6 kB / 1.104 GB, free: 12.88 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/1.071, allocations: 4 kB / 1.104 GB, free: 12.87 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/1.072, allocations: 0.5353 MB / 1.104 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=48): time 2.866e-06/1.072, allocations: 0 / 1.104 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of matching and sorting (n=48): time 0.001182/1.074, allocations: 435.8 kB / 1.105 GB, free: 11.89 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/1.074, allocations: 60.06 kB / 1.105 GB, free: 11.82 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/1.074, allocations: 125.7 kB / 1.105 GB, free: 11.7 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0001327/1.074, allocations: 57.69 kB / 1.105 GB, free: 11.63 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/1.074, allocations: 97.34 kB / 1.105 GB, free: 11.53 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/1.074, allocations: 106.8 kB / 1.105 GB, free: 11.43 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/1.074, allocations: 4 kB / 1.105 GB, free: 11.42 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001577/1.075, allocations: 338.8 kB / 1.105 GB, free: 11.08 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004792/1.075, allocations: 157.3 kB / 1.105 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005654/1.076, allocations: 263.8 kB / 1.106 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006789/1.076, allocations: 138 kB / 1.106 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/1.076, allocations: 0 / 1.106 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001524/1.078, allocations: 474.5 kB / 1.106 GB, free: 10.04 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.569e-05/1.078, allocations: 73.73 kB / 1.106 GB, free: 9.957 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/1.078, allocations: 4 kB / 1.106 GB, free: 9.953 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/1.078, allocations: 8 kB / 1.106 GB, free: 9.945 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/1.078, allocations: 23.86 kB / 1.106 GB, free: 9.922 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/1.078, allocations: 8 kB / 1.106 GB, free: 9.914 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006808/1.079, allocations: 71.92 kB / 1.107 GB, free: 9.844 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.73e-05/1.079, allocations: 27.31 kB / 1.107 GB, free: 9.82 MB / 0.7136 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 () * 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.0002638/1.079, allocations: 154 kB / 1.107 GB, free: 9.66 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001015/1.08, allocations: 431.7 kB / 1.107 GB, free: 9.234 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.334e-05/1.08, allocations: 23.8 kB / 1.107 GB, free: 9.211 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/1.081, allocations: 34.19 kB / 1.107 GB, free: 9.176 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/1.081, allocations: 4 kB / 1.107 GB, free: 9.172 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/1.081, allocations: 0 / 1.107 GB, free: 9.172 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/1.081, allocations: 7.922 kB / 1.107 GB, free: 9.164 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002007/1.083, allocations: 0.8731 MB / 1.108 GB, free: 8.234 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/1.083, allocations: 0 / 1.108 GB, free: 8.234 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.186e-05/1.083, allocations: 19.88 kB / 1.108 GB, free: 8.215 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/1.083, allocations: 4.125 kB / 1.108 GB, free: 8.211 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.077e-05/1.083, allocations: 23.95 kB / 1.108 GB, free: 8.188 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-05/1.083, allocations: 4 kB / 1.108 GB, free: 8.184 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/1.083, allocations: 7.938 kB / 1.108 GB, free: 8.176 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/1.084, allocations: 0.5718 MB / 1.109 GB, free: 7.547 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.645e-05/1.084, allocations: 92.83 kB / 1.109 GB, free: 7.438 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/1.084, allocations: 23.98 kB / 1.109 GB, free: 7.414 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/1.084, allocations: 7.984 kB / 1.109 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/1.085, allocations: 99.73 kB / 1.109 GB, free: 7.309 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.49e-05/1.085, allocations: 40.53 kB / 1.109 GB, free: 7.27 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.754e-05/1.085, allocations: 92.91 kB / 1.109 GB, free: 7.18 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.01e-07/1.085, allocations: 0 / 1.109 GB, free: 7.18 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007259/1.086, allocations: 83.98 kB / 1.109 GB, free: 7.098 MB / 0.7136 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) * 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.001716/1.087, allocations: 1.438 MB / 1.11 GB, free: 5.609 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001271/1.089, allocations: 0.5311 MB / 1.111 GB, free: 5.047 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/1.089, allocations: 1.5 kB / 1.111 GB, free: 5.047 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0005021/1.089, allocations: 235.9 kB / 1.111 GB, free: 4.816 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004493/1.09, allocations: 26.03 kB / 1.111 GB, free: 4.793 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001359/1.091, allocations: 401 kB / 1.112 GB, free: 4.355 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/1.091, allocations: 0.7387 MB / 1.112 GB, free: 3.59 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0002142/1.092, allocations: 35.28 kB / 1.112 GB, free: 3.551 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/1.092, allocations: 91.38 kB / 1.112 GB, free: 3.461 MB / 0.7136 GB Notification: Performance of SimCode: time 9.21e-07/1.092, allocations: 3.938 kB / 1.112 GB, free: 3.457 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04856/1.14, allocations: 5.9 MB / 1.118 GB, free: 13.68 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003071/1.141, allocations: 143.5 kB / 1.118 GB, free: 13.49 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.586/3.727, allocations: 0 / 1.118 GB, free: 13.49 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)