Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.515/2.515, allocations: 393.5 MB / 408.4 MB, free: 11.06 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.001246/0.001246, allocations: 179.3 kB / 0.4901 GB, free: 2.254 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.547/1.547, allocations: 223.1 MB / 0.7992 GB, free: 15.7 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.001155/0.001154, allocations: 107.1 kB / 0.9396 GB, free: 2.887 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003816/0.0003816, allocations: 15.48 kB / 1.09 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2992, allocations: 143 MB / 1.229 GB, free: 85.39 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1935/0.4928, allocations: 150.4 MB / 1.376 GB, free: 14.82 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/0.4932, allocations: 67.97 kB / 1.376 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.006947/0.5001, allocations: 2.239 MB / 1.378 GB, free: 12.51 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.284e-06/0.5002, allocations: 0 / 1.378 GB, free: 12.51 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.965e-06/0.5002, allocations: 0 / 1.378 GB, free: 12.51 MB / 0.8855 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.0006376/0.5008, allocations: 437.3 kB / 1.379 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.5009, allocations: 8.562 kB / 1.379 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.738e-05/0.5009, allocations: 34.56 kB / 1.379 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.855e-05/0.501, allocations: 7.906 kB / 1.379 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001494/0.5012, allocations: 180.9 kB / 1.379 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.5012, allocations: 8 kB / 1.379 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.5012, allocations: 4 kB / 1.379 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002651/0.5015, allocations: 89.64 kB / 1.379 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.5015, allocations: 0 / 1.379 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.5015, allocations: 0 / 1.379 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.5015, allocations: 0 / 1.379 GB, free: 11.65 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.5019, allocations: 99.91 kB / 1.379 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005425/0.5024, allocations: 344.6 kB / 1.38 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001969/0.5026, allocations: 58.55 kB / 1.38 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.5026, allocations: 4 kB / 1.38 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003192/0.503, allocations: 107.4 kB / 1.38 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=6): time 2.184e-06/0.503, allocations: 3.938 kB / 1.38 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.0006164/0.5036, allocations: 197.5 kB / 1.38 GB, free: 10.78 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.5037, allocations: 55.34 kB / 1.38 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.68e-05/0.5038, allocations: 121.1 kB / 1.38 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.5038, allocations: 25.7 kB / 1.38 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.414e-05/0.5039, allocations: 88.14 kB / 1.38 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.5039, allocations: 19.81 kB / 1.38 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.313e-05/0.5039, allocations: 4 kB / 1.38 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.504, allocations: 318.8 kB / 1.381 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.5043, allocations: 63.95 kB / 1.381 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.5045, allocations: 94.52 kB / 1.381 GB, free: 9.953 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.5047, allocations: 105.6 kB / 1.381 GB, free: 9.844 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.5047, allocations: 0 / 1.381 GB, free: 9.844 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005411/0.5053, allocations: 239.2 kB / 1.381 GB, free: 9.598 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.5053, allocations: 33.7 kB / 1.381 GB, free: 9.559 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.5053, allocations: 0 / 1.381 GB, free: 9.559 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.5054, allocations: 0 / 1.381 GB, free: 9.559 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.5055, allocations: 28.03 kB / 1.381 GB, free: 9.531 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.5055, allocations: 3.953 kB / 1.381 GB, free: 9.527 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/0.5058, allocations: 64.11 kB / 1.381 GB, free: 9.465 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.5058, allocations: 4 kB / 1.381 GB, free: 9.461 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001149/0.5059, allocations: 117.8 kB / 1.381 GB, free: 9.336 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/0.506, allocations: 7.906 kB / 1.381 GB, free: 9.328 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.941e-05/0.506, allocations: 12.38 kB / 1.381 GB, free: 9.309 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.506, allocations: 0 / 1.381 GB, free: 9.309 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.506, allocations: 0 / 1.381 GB, free: 9.309 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.506, allocations: 3.953 kB / 1.381 GB, free: 9.305 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.5062, allocations: 181.6 kB / 1.381 GB, free: 9.078 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.5062, allocations: 4 kB / 1.381 GB, free: 9.074 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.5064, allocations: 23.92 kB / 1.381 GB, free: 9.051 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.5064, allocations: 0 / 1.381 GB, free: 9.051 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.5064, allocations: 4 kB / 1.381 GB, free: 9.047 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.5064, allocations: 0 / 1.381 GB, free: 9.047 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.5064, allocations: 0 / 1.381 GB, free: 9.047 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003947/0.5068, allocations: 177.2 kB / 1.382 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.25e-05/0.5069, allocations: 85.02 kB / 1.382 GB, free: 8.754 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.5069, allocations: 8 kB / 1.382 GB, free: 8.746 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.169e-05/0.507, allocations: 19.97 kB / 1.382 GB, free: 8.727 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.507, allocations: 7.984 kB / 1.382 GB, free: 8.719 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/0.507, allocations: 0 / 1.382 GB, free: 8.719 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.453e-05/0.5071, allocations: 103.1 kB / 1.382 GB, free: 8.621 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5071, allocations: 3.938 kB / 1.382 GB, free: 8.617 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002244/0.5073, allocations: 28 kB / 1.382 GB, free: 8.59 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008972/0.5082, allocations: 0.7224 MB / 1.383 GB, free: 7.84 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005472/0.5088, allocations: 211.2 kB / 1.383 GB, free: 7.621 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.5088, allocations: 0 / 1.383 GB, free: 7.621 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000187/0.509, allocations: 64.08 kB / 1.383 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.5092, allocations: 14.14 kB / 1.383 GB, free: 7.547 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009266/0.5102, allocations: 0.6867 MB / 1.384 GB, free: 6.801 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.5106, allocations: 0.7004 MB / 1.384 GB, free: 6.074 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.682e-05/0.5106, allocations: 8.172 kB / 1.384 GB, free: 6.062 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.127e-05/0.5107, allocations: 19.44 kB / 1.384 GB, free: 6.047 MB / 0.8855 GB Notification: Performance of SimCode: time 5.61e-07/0.5107, allocations: 0 / 1.384 GB, free: 6.047 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0168/0.5275, allocations: 2.25 MB / 1.386 GB, free: 3.945 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/0.5278, allocations: 185 kB / 1.387 GB, free: 3.707 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.572/2.1, allocations: 0 / 1.387 GB, free: 3.707 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat does not exist to compare? outputFormat=mat