Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.356/1.356, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 178.2 kB / 326.5 MB, free: 2.262 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.112/2.112, allocations: 205.4 MB / 0.5775 GB, free: 20.28 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009907/0.0009908, allocations: 93.91 kB / 0.6821 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003618, allocations: 12.47 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2543, allocations: 106.3 MB / 0.9002 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1795/0.4339, allocations: 132 MB / 1.029 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.4342, allocations: 71.95 kB / 1.029 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005295/0.4395, allocations: 1.974 MB / 1.031 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.785e-06/0.4395, allocations: 0 / 1.031 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.4395, allocations: 4 kB / 1.031 GB, free: 9.605 MB / 0.6823 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.0006496/0.4402, allocations: 455.1 kB / 1.032 GB, free: 9.113 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.4402, allocations: 12.03 kB / 1.032 GB, free: 9.102 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.815e-05/0.4403, allocations: 46.55 kB / 1.032 GB, free: 9.047 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.011e-05/0.4404, allocations: 19.89 kB / 1.032 GB, free: 9.027 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.4405, allocations: 182.8 kB / 1.032 GB, free: 8.809 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.4406, allocations: 15.98 kB / 1.032 GB, free: 8.793 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.762e-05/0.4406, allocations: 31.98 kB / 1.032 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.441, allocations: 214.1 kB / 1.032 GB, free: 8.547 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.441, allocations: 0 / 1.032 GB, free: 8.547 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.4411, allocations: 19.95 kB / 1.032 GB, free: 8.527 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.4411, allocations: 8 kB / 1.032 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/0.4413, allocations: 87.94 kB / 1.032 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009243/0.4422, allocations: 0.5392 MB / 1.033 GB, free: 7.844 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007082/0.443, allocations: 338.4 kB / 1.033 GB, free: 7.504 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 9.217e-06/0.443, allocations: 352 / 1.033 GB, free: 7.504 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007621/0.4437, allocations: 0.5691 MB / 1.034 GB, free: 6.926 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 1.744e-06/0.4438, allocations: 0 / 1.034 GB, free: 6.926 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.0009135/0.4447, allocations: 0.5533 MB / 1.034 GB, free: 6.367 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.4447, allocations: 63.16 kB / 1.034 GB, free: 6.293 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.4449, allocations: 135.7 kB / 1.034 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.44e-05/0.4449, allocations: 61.69 kB / 1.034 GB, free: 6.086 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.95e-05/0.445, allocations: 101.1 kB / 1.034 GB, free: 5.984 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 9.048e-05/0.4451, allocations: 103.1 kB / 1.035 GB, free: 5.883 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.471e-05/0.4451, allocations: 12 kB / 1.035 GB, free: 5.871 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4453, allocations: 342.7 kB / 1.035 GB, free: 5.527 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002192/0.4455, allocations: 141.1 kB / 1.035 GB, free: 5.391 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.4458, allocations: 229.8 kB / 1.035 GB, free: 5.137 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.4459, allocations: 90.19 kB / 1.035 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.446, allocations: 4 kB / 1.035 GB, free: 5.043 MB / 0.6823 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005457/0.4465, allocations: 390.6 kB / 1.036 GB, free: 4.656 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.4465, allocations: 8.203 kB / 1.036 GB, free: 4.648 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.4466, allocations: 11.98 kB / 1.036 GB, free: 4.637 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.4466, allocations: 4 kB / 1.036 GB, free: 4.633 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.888e-05/0.4467, allocations: 27.86 kB / 1.036 GB, free: 4.605 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.4467, allocations: 4 kB / 1.036 GB, free: 4.602 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.4468, allocations: 31.89 kB / 1.036 GB, free: 4.57 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.4469, allocations: 24 kB / 1.036 GB, free: 4.547 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 66 ($PRE.falCle.clr,$PRE.truCle.clr,$PRE.iniFalOut.clr,$PRE.iniTruOut.clr,$PRE.swiCleInp.clr,$PRE.swiCleInp1.clr,$whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$PRE.falCle.u,falCle.u,falCle.clr,$PRE.falCle.y,falCle.y,$PRE.truCle.u,truCle.u,truCle.clr,$PRE.truCle.y,truCle.y,$PRE.iniFalOut.u,iniFalOut.u,iniFalOut.clr,$PRE.iniFalOut.y,iniFalOut.y,$PRE.iniTruOut.u,iniTruOut.u,iniTruOut.clr,$PRE.iniTruOut.y,iniTruOut.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.pulseStart,cleInp.pulseStart,$PRE.togInp.pulseStart,togInp.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * 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.0001689/0.4471, allocations: 170.9 kB / 1.036 GB, free: 4.371 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.427e-05/0.4471, allocations: 27.8 kB / 1.036 GB, free: 4.344 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.4472, allocations: 46.27 kB / 1.036 GB, free: 4.301 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.4472, allocations: 4 kB / 1.036 GB, free: 4.297 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.4472, allocations: 0 / 1.036 GB, free: 4.297 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.4473, allocations: 3.984 kB / 1.036 GB, free: 4.293 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.4486, allocations: 0.965 MB / 1.037 GB, free: 3.246 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4486, allocations: 4.031 kB / 1.037 GB, free: 3.242 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.467e-05/0.4487, allocations: 19.92 kB / 1.037 GB, free: 3.223 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.4487, allocations: 4 kB / 1.037 GB, free: 3.219 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.4487, allocations: 19.97 kB / 1.037 GB, free: 3.199 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.4487, allocations: 4 kB / 1.037 GB, free: 3.195 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4487, allocations: 4 kB / 1.037 GB, free: 3.191 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006884/0.4494, allocations: 0.5868 MB / 1.038 GB, free: 2.551 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.532e-05/0.4495, allocations: 100.8 kB / 1.038 GB, free: 2.434 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.397e-05/0.4496, allocations: 31.94 kB / 1.038 GB, free: 2.402 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.4498, allocations: 31.97 kB / 1.038 GB, free: 2.371 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.4499, allocations: 95.8 kB / 1.038 GB, free: 2.277 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.69e-05/0.45, allocations: 35.97 kB / 1.038 GB, free: 2.242 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.927e-05/0.4501, allocations: 107.2 kB / 1.038 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.71e-07/0.4501, allocations: 0 / 1.038 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003309/0.4504, allocations: 72 kB / 1.038 GB, free: 2.066 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 46 (swiCleInp.clr,swiCleInp1.clr,$whenCondition26,$whenCondition25,$whenCondition21,$whenCondition22,$whenCondition23,$whenCondition24,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,falCle.u,falCle.y,truCle.u,truCle.y,iniFalOut.u,iniFalOut.y,iniTruOut.u,iniTruOut.y,swiCleInp.u,swiCleInp.y,swiCleInp1.u,swiCleInp1.y,cleInp.pulseStart,togInp.pulseStart,falCle.clr,iniFalOut.clr,iniTruOut.clr,truCle.clr) * Number of discrete states: 12 (iniTruOut.u,iniTruOut.y,iniFalOut.u,iniFalOut.y,truCle.u,truCle.y,falCle.u,falCle.y,swiCleInp1.u,swiCleInp1.y,swiCleInp.u,swiCleInp.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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.001191/0.4516, allocations: 1.448 MB / 1.039 GB, free: 0.5664 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005687/0.4522, allocations: 379.7 kB / 1.04 GB, free: 200 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4522, allocations: 0 / 1.04 GB, free: 200 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003239/0.4525, allocations: 232.6 kB / 1.04 GB, free: 15.96 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.4528, allocations: 31.92 kB / 1.04 GB, free: 15.93 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.4556, allocations: 2.727 MB / 1.043 GB, free: 13.11 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.4559, allocations: 0.7387 MB / 1.043 GB, free: 12.34 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001197/0.456, allocations: 42.95 kB / 1.044 GB, free: 12.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.4562, allocations: 83.39 kB / 1.044 GB, free: 12.22 MB / 0.698 GB Notification: Performance of SimCode: time 6.71e-07/0.4562, allocations: 4 kB / 1.044 GB, free: 12.21 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.4734, allocations: 5.383 MB / 1.049 GB, free: 6.996 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/0.4736, allocations: 188.2 kB / 1.049 GB, free: 6.762 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/2.265, allocations: 3.938 kB / 1.049 GB, free: 6.758 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1)