Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",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.325/2.325, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001281/0.001281, allocations: 185.1 kB / 498.1 MB, free: 5.75 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.634/1.634, allocations: 223.2 MB / 0.7948 GB, free: 17.95 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.0009147/0.0009146, allocations: 98.12 kB / 0.9346 GB, free: 6.289 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.0003951, allocations: 14.25 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.286, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1697/0.4557, allocations: 149.4 MB / 1.369 GB, free: 12.65 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.456, allocations: 71.95 kB / 1.369 GB, free: 12.58 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01193/0.4679, allocations: 4.07 MB / 1.373 GB, free: 8.504 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.883e-06/0.468, allocations: 0 / 1.373 GB, free: 8.504 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.196e-06/0.468, allocations: 4 kB / 1.373 GB, free: 8.5 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004585/0.4684, allocations: 464.2 kB / 1.373 GB, free: 7.98 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.4685, allocations: 8.031 kB / 1.373 GB, free: 7.973 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.282e-05/0.4685, allocations: 38.55 kB / 1.373 GB, free: 7.926 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.838e-05/0.4686, allocations: 15.91 kB / 1.373 GB, free: 7.91 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.4687, allocations: 171 kB / 1.374 GB, free: 7.703 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.4688, allocations: 15.94 kB / 1.374 GB, free: 7.688 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.824e-05/0.4688, allocations: 15.98 kB / 1.374 GB, free: 7.672 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001179/0.4689, allocations: 57.67 kB / 1.374 GB, free: 7.609 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.4689, allocations: 0 / 1.374 GB, free: 7.609 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.469, allocations: 0 / 1.374 GB, free: 7.609 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.469, allocations: 0 / 1.374 GB, free: 7.609 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.417e-05/0.469, allocations: 27.97 kB / 1.374 GB, free: 7.582 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005347/0.4696, allocations: 416.4 kB / 1.374 GB, free: 7.125 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.004e-05/0.4696, allocations: 38.56 kB / 1.374 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.4697, allocations: 0 / 1.374 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001746/0.4698, allocations: 95.38 kB / 1.374 GB, free: 6.973 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 2.975e-06/0.4698, allocations: 4 kB / 1.374 GB, free: 6.969 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0002759/0.4701, allocations: 149.7 kB / 1.374 GB, free: 6.816 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.4702, allocations: 51.41 kB / 1.374 GB, free: 6.754 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.745e-05/0.4703, allocations: 125 kB / 1.375 GB, free: 6.625 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.4703, allocations: 37.64 kB / 1.375 GB, free: 6.582 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.832e-05/0.4704, allocations: 96.05 kB / 1.375 GB, free: 6.484 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.4704, allocations: 19.88 kB / 1.375 GB, free: 6.465 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.546e-05/0.4704, allocations: 8 kB / 1.375 GB, free: 6.457 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.4706, allocations: 322.8 kB / 1.375 GB, free: 6.133 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001801/0.4708, allocations: 91.94 kB / 1.375 GB, free: 6.043 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.471, allocations: 135.7 kB / 1.375 GB, free: 5.891 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002392/0.4712, allocations: 173 kB / 1.375 GB, free: 5.703 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4712, allocations: 0 / 1.375 GB, free: 5.703 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006451/0.4719, allocations: 374 kB / 1.376 GB, free: 5.316 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.193e-05/0.472, allocations: 98.19 kB / 1.376 GB, free: 5.203 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.472, allocations: 4 kB / 1.376 GB, free: 5.199 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.472, allocations: 3.953 kB / 1.376 GB, free: 5.195 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.981e-05/0.472, allocations: 4 kB / 1.376 GB, free: 5.191 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.472, allocations: 8.125 kB / 1.376 GB, free: 5.184 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004771/0.4725, allocations: 123.7 kB / 1.376 GB, free: 5.062 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/0.4726, allocations: 15.98 kB / 1.376 GB, free: 5.047 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001133/0.4727, allocations: 128.1 kB / 1.376 GB, free: 4.914 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.692e-05/0.4727, allocations: 11.91 kB / 1.376 GB, free: 4.902 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.76e-05/0.4727, allocations: 12.38 kB / 1.376 GB, free: 4.887 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.4728, allocations: 4 kB / 1.376 GB, free: 4.883 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4728, allocations: 3.953 kB / 1.376 GB, free: 4.879 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.4728, allocations: 7.969 kB / 1.376 GB, free: 4.871 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001378/0.4729, allocations: 185.6 kB / 1.376 GB, free: 4.641 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4729, allocations: 0 / 1.376 GB, free: 4.641 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.366e-05/0.4729, allocations: 7.938 kB / 1.376 GB, free: 4.633 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.473, allocations: 0 / 1.376 GB, free: 4.633 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.473, allocations: 7.984 kB / 1.376 GB, free: 4.625 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.473, allocations: 0 / 1.376 GB, free: 4.625 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.473, allocations: 4 kB / 1.376 GB, free: 4.621 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001818/0.4732, allocations: 136.9 kB / 1.376 GB, free: 4.469 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.414e-05/0.4732, allocations: 85.02 kB / 1.377 GB, free: 4.367 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.4732, allocations: 3.984 kB / 1.377 GB, free: 4.363 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.468e-05/0.4733, allocations: 7.938 kB / 1.377 GB, free: 4.355 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.301e-05/0.4733, allocations: 8.078 kB / 1.377 GB, free: 4.348 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.4733, allocations: 7.938 kB / 1.377 GB, free: 4.34 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6.253e-05/0.4734, allocations: 109.8 kB / 1.377 GB, free: 4.234 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4734, allocations: 0 / 1.377 GB, free: 4.234 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002716/0.4737, allocations: 51.94 kB / 1.377 GB, free: 4.184 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004903/0.4742, allocations: 0.6785 MB / 1.377 GB, free: 3.477 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0004437/0.4746, allocations: 370.1 kB / 1.378 GB, free: 3.078 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.4747, allocations: 0 / 1.378 GB, free: 3.078 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 5.867e-05/0.4747, allocations: 32 kB / 1.378 GB, free: 3.047 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000211/0.4749, allocations: 23.97 kB / 1.378 GB, free: 3.023 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000939/0.4759, allocations: 1.346 MB / 1.379 GB, free: 1.594 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.4761, allocations: 0.7043 MB / 1.38 GB, free: 0.8633 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.214e-05/0.4762, allocations: 8.438 kB / 1.38 GB, free: 0.8555 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.451e-05/0.4762, allocations: 27.42 kB / 1.38 GB, free: 0.8281 MB / 0.8698 GB Notification: Performance of SimCode: time 4.21e-07/0.4762, allocations: 0 / 1.38 GB, free: 0.8281 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01381/0.4901, allocations: 3.397 MB / 1.383 GB, free: 13.58 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001592/0.4902, allocations: 182.6 kB / 1.383 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.485/1.976, allocations: 7.938 kB / 1.383 GB, free: 13.33 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat does not exist to compare? outputFormat=mat