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.49/1.49, allocations: 249.3 MB / 261.8 MB, free: 5.934 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001426/0.001426, allocations: 178.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.874/1.874, allocations: 205.2 MB / 0.572 GB, free: 10.69 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.0009879/0.0009876, allocations: 86.47 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.993e-05/3.995e-05, allocations: 7.984 kB / 0.7881 GB, free: 96.99 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2684, allocations: 106.3 MB / 0.8919 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7576/1.026, allocations: 131.9 MB / 1.021 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/1.026, allocations: 65.97 kB / 1.021 GB, free: 2.734 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.005656/1.032, allocations: 1.984 MB / 1.023 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.693e-06/1.032, allocations: 0 / 1.023 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.037e-05/1.032, allocations: 4 kB / 1.023 GB, free: 0.957 MB / 0.6355 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.0006272/1.033, allocations: 450.2 kB / 1.023 GB, free: 500 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/1.033, allocations: 12.03 kB / 1.023 GB, free: 488 kB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.877e-05/1.033, allocations: 45.73 kB / 1.023 GB, free: 440 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/1.033, allocations: 15.91 kB / 1.023 GB, free: 424 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/1.033, allocations: 183.1 kB / 1.023 GB, free: 204 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/1.033, allocations: 23.73 kB / 1.023 GB, free: 184 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/1.033, allocations: 23.5 kB / 1.023 GB, free: 168 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/1.034, allocations: 214.1 kB / 1.024 GB, free: 0 / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/1.034, allocations: 2.625 kB / 1.024 GB, free: 0 / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.721e-05/1.034, allocations: 16.61 kB / 1.024 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/1.034, allocations: 4 kB / 1.024 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001827/1.034, allocations: 89.05 kB / 1.024 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009015/1.035, allocations: 0.5374 MB / 1.024 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000661/1.035, allocations: 326.6 kB / 1.025 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002018/1.036, allocations: 137 kB / 1.025 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/1.036, allocations: 3.953 kB / 1.025 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000734/1.036, allocations: 0.5514 MB / 1.025 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 5.26e-06/1.036, allocations: 0 / 1.025 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0006902/1.037, allocations: 432.6 kB / 1.026 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/1.037, allocations: 59.39 kB / 1.026 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/1.037, allocations: 136.9 kB / 1.026 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 6.638e-05/1.037, allocations: 58.69 kB / 1.026 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.987e-05/1.037, allocations: 106.2 kB / 1.026 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 8.377e-05/1.038, allocations: 107.9 kB / 1.026 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.862e-05/1.038, allocations: 11.38 kB / 1.026 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001408/1.038, allocations: 336.8 kB / 1.026 GB, free: 13.54 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/1.038, allocations: 138.5 kB / 1.027 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/1.038, allocations: 213.5 kB / 1.027 GB, free: 13.28 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/1.039, allocations: 96.52 kB / 1.027 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/1.039, allocations: 0 / 1.027 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006359/1.039, allocations: 392 kB / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/1.039, allocations: 4 kB / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/1.039, allocations: 4.219 kB / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/1.039, allocations: 4 kB / 1.027 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/1.039, allocations: 33.92 kB / 1.027 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/1.04, allocations: 7.984 kB / 1.027 GB, free: 12.87 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001629/1.04, allocations: 35.08 kB / 1.027 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.042e-05/1.04, allocations: 15.5 kB / 1.027 GB, free: 12.83 MB / 0.6511 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 () * 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.0001448/1.04, allocations: 156.2 kB / 1.028 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.713e-05/1.04, allocations: 31.75 kB / 1.028 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.932e-05/1.04, allocations: 34.44 kB / 1.028 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/1.04, allocations: 4 kB / 1.028 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/1.04, allocations: 4 kB / 1.028 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/1.04, allocations: 7.984 kB / 1.028 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001377/1.041, allocations: 0.9555 MB / 1.029 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/1.041, allocations: 4 kB / 1.029 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.78e-05/1.042, allocations: 19.73 kB / 1.029 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/1.042, allocations: 4 kB / 1.029 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.143e-05/1.042, allocations: 23.16 kB / 1.029 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.131e-05/1.042, allocations: 3.938 kB / 1.029 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/1.042, allocations: 4 kB / 1.029 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007166/1.042, allocations: 0.5721 MB / 1.029 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.193e-05/1.042, allocations: 99.56 kB / 1.029 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.487e-05/1.043, allocations: 28.86 kB / 1.029 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/1.043, allocations: 29.59 kB / 1.029 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/1.043, allocations: 96.98 kB / 1.029 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-05/1.043, allocations: 42.7 kB / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.246e-05/1.043, allocations: 108 kB / 1.03 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/1.043, allocations: 0 / 1.03 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003479/1.043, allocations: 81.61 kB / 1.03 GB, free: 10.77 MB / 0.6511 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) * 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.001347/1.045, allocations: 1.434 MB / 1.031 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0006482/1.045, allocations: 364.1 kB / 1.031 GB, free: 9.141 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/1.045, allocations: 4.188 kB / 1.031 GB, free: 9.137 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003237/1.046, allocations: 229.6 kB / 1.032 GB, free: 8.984 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/1.046, allocations: 32.77 kB / 1.032 GB, free: 8.961 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/1.047, allocations: 465.2 kB / 1.032 GB, free: 8.535 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/1.047, allocations: 0.7426 MB / 1.033 GB, free: 7.766 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001395/1.048, allocations: 46.94 kB / 1.033 GB, free: 7.723 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001946/1.048, allocations: 86.52 kB / 1.033 GB, free: 7.68 MB / 0.6511 GB Notification: Performance of SimCode: time 8.72e-07/1.048, allocations: 0 / 1.033 GB, free: 7.68 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0169/1.065, allocations: 5.548 MB / 1.038 GB, free: 2.262 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/1.065, allocations: 164.2 kB / 1.038 GB, free: 2.039 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.76/2.825, allocations: 0 / 1.038 GB, free: 2.039 MB / 0.6511 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)