Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.389/2.389, 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.001082/0.001082, allocations: 191.1 kB / 0.4902 GB, free: 2.242 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.648/1.648, allocations: 223.1 MB / 0.7992 GB, free: 15.68 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.0009739/0.0009739, allocations: 104.2 kB / 0.9396 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004454/0.0004453, allocations: 11.47 kB / 1.09 GB, free: 213 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2935, allocations: 143 MB / 1.229 GB, free: 85.4 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1876/0.4812, allocations: 150.2 MB / 1.376 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.4814, allocations: 71.95 kB / 1.376 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01257/0.494, allocations: 4.08 MB / 1.38 GB, free: 10.87 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.988e-06/0.4941, allocations: 4 kB / 1.38 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.4941, allocations: 7.938 kB / 1.38 GB, free: 10.86 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.0006374/0.4947, allocations: 472.1 kB / 1.38 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.4948, allocations: 8.562 kB / 1.38 GB, free: 10.32 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.843e-05/0.4948, allocations: 34.55 kB / 1.381 GB, free: 10.28 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.366e-05/0.4949, allocations: 15.91 kB / 1.381 GB, free: 10.26 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.4951, allocations: 173.1 kB / 1.381 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.4951, allocations: 7.984 kB / 1.381 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.944e-05/0.4952, allocations: 23.98 kB / 1.381 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001301/0.4953, allocations: 53.67 kB / 1.381 GB, free: 9.965 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.4954, allocations: 4 kB / 1.381 GB, free: 9.961 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.4954, allocations: 0 / 1.381 GB, free: 9.961 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.4954, allocations: 0 / 1.381 GB, free: 9.961 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.488e-05/0.4954, allocations: 23.92 kB / 1.381 GB, free: 9.938 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006254/0.4961, allocations: 412.5 kB / 1.381 GB, free: 9.484 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 6.935e-05/0.4962, allocations: 30.56 kB / 1.381 GB, free: 9.445 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.4962, allocations: 4 kB / 1.381 GB, free: 9.441 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.4964, allocations: 103.3 kB / 1.381 GB, free: 9.328 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.4964, allocations: 0 / 1.381 GB, free: 9.328 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.0003125/0.4967, allocations: 141.5 kB / 1.381 GB, free: 9.184 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.4968, allocations: 55.41 kB / 1.382 GB, free: 9.117 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.4969, allocations: 124.8 kB / 1.382 GB, free: 8.988 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.497, allocations: 37.69 kB / 1.382 GB, free: 8.945 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.895e-05/0.4971, allocations: 100.2 kB / 1.382 GB, free: 8.844 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.4971, allocations: 19.72 kB / 1.382 GB, free: 8.824 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.512e-05/0.4972, allocations: 4 kB / 1.382 GB, free: 8.82 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.4973, allocations: 322.8 kB / 1.382 GB, free: 8.496 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.4975, allocations: 87.94 kB / 1.382 GB, free: 8.41 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002196/0.4978, allocations: 138.6 kB / 1.382 GB, free: 8.254 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.498, allocations: 165.1 kB / 1.382 GB, free: 8.074 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.498, allocations: 4 kB / 1.382 GB, free: 8.07 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006131/0.4986, allocations: 377.9 kB / 1.383 GB, free: 7.68 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.591e-05/0.4987, allocations: 106.2 kB / 1.383 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.4987, allocations: 0 / 1.383 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.4987, allocations: 7.953 kB / 1.383 GB, free: 7.551 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.879e-05/0.4988, allocations: 7.938 kB / 1.383 GB, free: 7.543 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.4988, allocations: 0 / 1.383 GB, free: 7.543 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.4993, allocations: 107.9 kB / 1.383 GB, free: 7.438 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.586e-05/0.4994, allocations: 23.97 kB / 1.383 GB, free: 7.414 MB / 0.8855 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.0001335/0.4995, allocations: 131.9 kB / 1.383 GB, free: 7.277 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.804e-05/0.4995, allocations: 7.906 kB / 1.383 GB, free: 7.27 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.962e-05/0.4996, allocations: 12.38 kB / 1.383 GB, free: 7.254 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.4996, allocations: 0 / 1.383 GB, free: 7.254 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/0.4996, allocations: 3.953 kB / 1.383 GB, free: 7.25 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.4996, allocations: 0 / 1.383 GB, free: 7.25 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.4998, allocations: 186 kB / 1.383 GB, free: 7.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4998, allocations: 4 kB / 1.383 GB, free: 7.016 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.278e-05/0.4998, allocations: 4 kB / 1.383 GB, free: 7.012 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.4998, allocations: 0 / 1.383 GB, free: 7.012 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.4998, allocations: 7.922 kB / 1.383 GB, free: 7.004 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.4998, allocations: 8 kB / 1.383 GB, free: 6.996 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4998, allocations: 3.984 kB / 1.383 GB, free: 6.992 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001884/0.5, allocations: 136.9 kB / 1.384 GB, free: 6.84 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.768e-05/0.5001, allocations: 85.02 kB / 1.384 GB, free: 6.738 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.5001, allocations: 7.984 kB / 1.384 GB, free: 6.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.275e-05/0.5002, allocations: 0 / 1.384 GB, free: 6.73 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.426e-05/0.5002, allocations: 11.98 kB / 1.384 GB, free: 6.719 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.5002, allocations: 4 kB / 1.384 GB, free: 6.715 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 9.579e-05/0.5003, allocations: 105.3 kB / 1.384 GB, free: 6.613 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5003, allocations: 0 / 1.384 GB, free: 6.613 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002983/0.5006, allocations: 47.94 kB / 1.384 GB, free: 6.566 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: 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.0005683/0.5012, allocations: 0.695 MB / 1.384 GB, free: 5.844 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004526/0.5017, allocations: 354.1 kB / 1.385 GB, free: 5.461 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5017, allocations: 0 / 1.385 GB, free: 5.461 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 6.921e-05/0.5018, allocations: 43.92 kB / 1.385 GB, free: 5.418 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.502, allocations: 20.72 kB / 1.385 GB, free: 5.398 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.5032, allocations: 1.361 MB / 1.386 GB, free: 3.953 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.5035, allocations: 0.6965 MB / 1.387 GB, free: 3.23 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.03e-05/0.5035, allocations: 8.438 kB / 1.387 GB, free: 3.223 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.45e-05/0.5036, allocations: 27.42 kB / 1.387 GB, free: 3.195 MB / 0.8855 GB Notification: Performance of SimCode: time 9.52e-07/0.5036, allocations: 0 / 1.387 GB, free: 3.195 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01783/0.5215, allocations: 3.395 MB / 1.39 GB, free: 15.96 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002054/0.5217, allocations: 182.8 kB / 1.39 GB, free: 15.72 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.223, allocations: 0 / 1.39 GB, free: 15.72 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat does not exist to compare? outputFormat=mat