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.825/1.825, allocations: 289.7 MB / 302.2 MB, free: 2.176 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.001154/0.001154, allocations: 178.7 kB / 371.6 MB, free: 3.383 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.61/1.61, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.0009227/0.0009229, allocations: 88.7 kB / 0.745 GB, free: 54.67 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.876e-05/3.879e-05, allocations: 4 kB / 0.8663 GB, free: 14.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2914, allocations: 116.3 MB / 0.9799 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9591/1.251, allocations: 139.5 MB / 1.116 GB, free: 44.35 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/1.251, allocations: 68.23 kB / 1.116 GB, free: 44.32 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01466/1.266, allocations: 3.963 MB / 1.12 GB, free: 42.12 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.487e-06/1.266, allocations: 4 kB / 1.12 GB, free: 42.12 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.18e-05/1.266, allocations: 0 / 1.12 GB, free: 42.12 MB / 0.7448 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.0009114/1.267, allocations: 486 kB / 1.121 GB, free: 41.64 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.02e-05/1.267, allocations: 15.45 kB / 1.121 GB, free: 41.63 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/1.267, allocations: 41.84 kB / 1.121 GB, free: 41.59 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/1.267, allocations: 23.98 kB / 1.121 GB, free: 41.57 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/1.267, allocations: 182.8 kB / 1.121 GB, free: 41.36 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.673e-05/1.267, allocations: 24.03 kB / 1.121 GB, free: 41.34 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/1.267, allocations: 34.8 kB / 1.121 GB, free: 41.32 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005217/1.268, allocations: 218.2 kB / 1.121 GB, free: 41.21 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/1.268, allocations: 3.938 kB / 1.121 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.48e-05/1.268, allocations: 18.77 kB / 1.121 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/1.268, allocations: 1.078 kB / 1.121 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002534/1.268, allocations: 90.05 kB / 1.121 GB, free: 41.14 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/1.269, allocations: 0.537 MB / 1.122 GB, free: 40.78 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005422/1.27, allocations: 289.4 kB / 1.122 GB, free: 40.6 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/1.27, allocations: 130.7 kB / 1.122 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/1.27, allocations: 7.688 kB / 1.122 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009564/1.271, allocations: 0.5602 MB / 1.123 GB, free: 40.21 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=48): time 6.032e-06/1.271, allocations: 7.938 kB / 1.123 GB, free: 40.21 MB / 0.7448 GB Notification: Performance of matching and sorting (n=48): time 0.001062/1.272, allocations: 473.3 kB / 1.123 GB, free: 39.91 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/1.272, allocations: 60.5 kB / 1.123 GB, free: 39.84 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/1.272, allocations: 123 kB / 1.123 GB, free: 39.73 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001035/1.272, allocations: 64.47 kB / 1.123 GB, free: 39.68 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.682e-05/1.273, allocations: 96.8 kB / 1.123 GB, free: 39.59 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001168/1.273, allocations: 111.4 kB / 1.124 GB, free: 39.51 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.923e-05/1.273, allocations: 11.69 kB / 1.124 GB, free: 39.51 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.042e-05/1.273, allocations: 333.7 kB / 1.124 GB, free: 39.19 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004544/1.273, allocations: 187.6 kB / 1.124 GB, free: 39.08 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004949/1.274, allocations: 276.5 kB / 1.124 GB, free: 38.87 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/1.274, allocations: 198.7 kB / 1.124 GB, free: 38.72 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/1.274, allocations: 0 / 1.124 GB, free: 38.72 MB / 0.7448 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001161/1.275, allocations: 0.5588 MB / 1.125 GB, free: 38.3 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 6.644e-05/1.275, allocations: 70.22 kB / 1.125 GB, free: 38.22 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/1.275, allocations: 4 kB / 1.125 GB, free: 38.22 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.803e-05/1.275, allocations: 4.938 kB / 1.125 GB, free: 38.21 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/1.276, allocations: 26.5 kB / 1.125 GB, free: 38.2 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/1.276, allocations: 4.781 kB / 1.125 GB, free: 38.19 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005934/1.276, allocations: 83.47 kB / 1.125 GB, free: 38.14 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.893e-05/1.276, allocations: 29.84 kB / 1.125 GB, free: 38.12 MB / 0.7448 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.0002092/1.277, allocations: 174.5 kB / 1.125 GB, free: 37.96 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.975e-05/1.277, allocations: 23.72 kB / 1.125 GB, free: 37.94 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/1.277, allocations: 45.39 kB / 1.125 GB, free: 37.94 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/1.277, allocations: 4 kB / 1.125 GB, free: 37.93 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/1.277, allocations: 1.375 kB / 1.125 GB, free: 37.93 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/1.277, allocations: 0.5625 kB / 1.125 GB, free: 37.93 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/1.278, allocations: 0.9536 MB / 1.126 GB, free: 37.25 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/1.279, allocations: 4.125 kB / 1.126 GB, free: 37.25 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.919e-05/1.279, allocations: 15.31 kB / 1.126 GB, free: 37.24 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.458e-06/1.279, allocations: 4 kB / 1.126 GB, free: 37.23 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6e-05/1.279, allocations: 31.8 kB / 1.126 GB, free: 37.22 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/1.279, allocations: 1.219 kB / 1.126 GB, free: 37.22 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/1.279, allocations: 7.938 kB / 1.126 GB, free: 37.21 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009475/1.28, allocations: 0.6204 MB / 1.127 GB, free: 36.71 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.745e-05/1.28, allocations: 88.92 kB / 1.127 GB, free: 36.61 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/1.28, allocations: 30.3 kB / 1.127 GB, free: 36.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/1.28, allocations: 10.73 kB / 1.127 GB, free: 36.59 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/1.28, allocations: 107.5 kB / 1.127 GB, free: 36.55 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.468e-05/1.28, allocations: 40.59 kB / 1.127 GB, free: 36.53 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 6.207e-05/1.28, allocations: 95.41 kB / 1.127 GB, free: 36.45 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.11e-07/1.28, allocations: 0 / 1.127 GB, free: 36.45 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0006504/1.281, allocations: 102.1 kB / 1.128 GB, free: 36.36 MB / 0.7448 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.001375/1.282, allocations: 1.491 MB / 1.129 GB, free: 35.01 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001066/1.284, allocations: 0.5609 MB / 1.13 GB, free: 34.59 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/1.284, allocations: 0.6562 kB / 1.13 GB, free: 34.59 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0004406/1.284, allocations: 258.1 kB / 1.13 GB, free: 34.43 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004086/1.284, allocations: 31.23 kB / 1.13 GB, free: 34.42 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/1.286, allocations: 443.5 kB / 1.13 GB, free: 34.06 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/1.286, allocations: 0.7471 MB / 1.131 GB, free: 33.31 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001701/1.286, allocations: 37.17 kB / 1.131 GB, free: 33.29 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002526/1.286, allocations: 82.34 kB / 1.131 GB, free: 33.26 MB / 0.7448 GB Notification: Performance of SimCode: time 2.434e-06/1.286, allocations: 0 / 1.131 GB, free: 33.26 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/1.314, allocations: 6.393 MB / 1.137 GB, free: 29.71 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002233/1.315, allocations: 153.3 kB / 1.137 GB, free: 29.48 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.963/3.278, allocations: 4 kB / 1.137 GB, free: 29.48 MB / 0.7448 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)