Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Toggle,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.284/2.284, allocations: 390.3 MB / 405.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 177 kB / 498.1 MB, free: 5.68 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 223.2 MB / 0.7948 GB, free: 17.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 100.9 kB / 0.9346 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.0003949, allocations: 10.16 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.309, allocations: 142.4 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1894/0.4985, allocations: 149.8 MB / 1.369 GB, free: 12.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.4988, allocations: 71.97 kB / 1.369 GB, free: 12.03 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01237/0.5112, allocations: 3.99 MB / 1.373 GB, free: 8.031 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.126e-06/0.5113, allocations: 0 / 1.373 GB, free: 8.031 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.328e-05/0.5113, allocations: 0 / 1.373 GB, free: 8.031 MB / 0.8698 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.0009071/0.5122, allocations: 0.4911 MB / 1.374 GB, free: 7.477 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/0.5123, allocations: 8.031 kB / 1.374 GB, free: 7.469 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.5124, allocations: 54.47 kB / 1.374 GB, free: 7.406 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.5125, allocations: 24.12 kB / 1.374 GB, free: 7.383 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.5127, allocations: 174.9 kB / 1.374 GB, free: 7.172 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.49e-05/0.5127, allocations: 20 kB / 1.374 GB, free: 7.152 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.027e-05/0.5128, allocations: 31.98 kB / 1.374 GB, free: 7.121 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004023/0.5132, allocations: 225.4 kB / 1.374 GB, free: 6.895 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.5133, allocations: 0 / 1.374 GB, free: 6.895 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.5133, allocations: 27.91 kB / 1.374 GB, free: 6.867 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.5133, allocations: 0 / 1.374 GB, free: 6.867 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.5135, allocations: 99.88 kB / 1.374 GB, free: 6.77 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008595/0.5144, allocations: 0.5432 MB / 1.375 GB, free: 6.176 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004277/0.5148, allocations: 296.3 kB / 1.375 GB, free: 5.879 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.5149, allocations: 4 kB / 1.375 GB, free: 5.875 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007681/0.5156, allocations: 0.5634 MB / 1.376 GB, free: 5.301 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=48): time 2.184e-06/0.5156, allocations: 3.938 kB / 1.376 GB, free: 5.297 MB / 0.8698 GB Notification: Performance of matching and sorting (n=48): time 0.001051/0.5167, allocations: 0.6082 MB / 1.376 GB, free: 4.68 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.5167, allocations: 59.83 kB / 1.376 GB, free: 4.609 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.5169, allocations: 128.9 kB / 1.377 GB, free: 4.477 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.459e-05/0.5169, allocations: 61.7 kB / 1.377 GB, free: 4.41 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.876e-05/0.517, allocations: 105 kB / 1.377 GB, free: 4.305 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 9.971e-05/0.5171, allocations: 110.8 kB / 1.377 GB, free: 4.195 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-05/0.5172, allocations: 12 kB / 1.377 GB, free: 4.184 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.5173, allocations: 343.1 kB / 1.377 GB, free: 3.84 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003431/0.5177, allocations: 185.1 kB / 1.377 GB, free: 3.66 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003842/0.5181, allocations: 284 kB / 1.378 GB, free: 3.352 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/0.5184, allocations: 193.6 kB / 1.378 GB, free: 3.152 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.5184, allocations: 0 / 1.378 GB, free: 3.152 MB / 0.8698 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008778/0.5192, allocations: 0.5644 MB / 1.378 GB, free: 2.566 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.349e-05/0.5193, allocations: 71.7 kB / 1.378 GB, free: 2.484 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.5193, allocations: 7.938 kB / 1.378 GB, free: 2.477 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.5194, allocations: 8 kB / 1.378 GB, free: 2.469 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.711e-05/0.5194, allocations: 23.86 kB / 1.378 GB, free: 2.445 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.5195, allocations: 8 kB / 1.378 GB, free: 2.438 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004221/0.5199, allocations: 83.88 kB / 1.378 GB, free: 2.355 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.999e-05/0.52, allocations: 27.98 kB / 1.379 GB, free: 2.328 MB / 0.8698 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.0001981/0.5202, allocations: 174.9 kB / 1.379 GB, free: 2.148 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.361e-05/0.5202, allocations: 35.7 kB / 1.379 GB, free: 2.113 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.979e-05/0.5203, allocations: 34.28 kB / 1.379 GB, free: 2.082 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.5203, allocations: 4 kB / 1.379 GB, free: 2.078 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.5204, allocations: 4 kB / 1.379 GB, free: 2.074 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.5204, allocations: 3.984 kB / 1.379 GB, free: 2.07 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001455/0.5218, allocations: 0.9622 MB / 1.38 GB, free: 1.039 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.5218, allocations: 0 / 1.38 GB, free: 1.039 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.974e-05/0.5219, allocations: 23.86 kB / 1.38 GB, free: 1.016 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.5219, allocations: 4 kB / 1.38 GB, free: 1.012 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.674e-05/0.522, allocations: 23.97 kB / 1.38 GB, free: 0.9883 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.522, allocations: 4.125 kB / 1.38 GB, free: 0.9844 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.522, allocations: 4 kB / 1.38 GB, free: 0.9805 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007851/0.5228, allocations: 0.6264 MB / 1.38 GB, free: 304 kB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.75e-05/0.5229, allocations: 100.8 kB / 1.38 GB, free: 184 kB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.72e-05/0.5229, allocations: 27.98 kB / 1.38 GB, free: 156 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.5231, allocations: 11.98 kB / 1.381 GB, free: 144 kB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.5233, allocations: 99.78 kB / 1.381 GB, free: 44 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.028e-05/0.5233, allocations: 35.97 kB / 1.381 GB, free: 8 kB / 0.8698 GB Notification: Performance of sorting global known variables: time 8.642e-05/0.5234, allocations: 103.3 kB / 1.381 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5234, allocations: 0 / 1.381 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004451/0.5239, allocations: 99.92 kB / 1.381 GB, free: 15.81 MB / 0.8855 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.001407/0.5253, allocations: 1.497 MB / 1.382 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0008835/0.5262, allocations: 0.5828 MB / 1.383 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5262, allocations: 0 / 1.383 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000325/0.5265, allocations: 264.1 kB / 1.383 GB, free: 13.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.5268, allocations: 31.91 kB / 1.383 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.5285, allocations: 2.316 MB / 1.385 GB, free: 10.94 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.5287, allocations: 0.7464 MB / 1.386 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001306/0.5289, allocations: 42.95 kB / 1.386 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.5291, allocations: 79.39 kB / 1.386 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of SimCode: time 2.31e-07/0.5291, allocations: 3.938 kB / 1.386 GB, free: 10.04 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/0.5492, allocations: 6.195 MB / 1.392 GB, free: 4.004 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002302/0.5495, allocations: 180.7 kB / 1.392 GB, free: 3.766 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/2.269, allocations: 0 / 1.392 GB, free: 3.766 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Toggle.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Toggle_res.mat does not exist to compare? outputFormat=mat