Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.241/2.241, allocations: 387.1 MB / 399.7 MB, free: 9.441 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.0009548/0.0009548, allocations: 173 kB / 492.3 MB, free: 0.6172 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.559/1.559, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.001216/0.001216, allocations: 98.48 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.243e-05/4.249e-05, allocations: 8 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3558, allocations: 142.3 MB / 1.213 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.145/1.501, allocations: 149.5 MB / 1.359 GB, free: 19.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002789/1.501, allocations: 69.25 kB / 1.359 GB, free: 19.07 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007459/1.509, allocations: 2.232 MB / 1.361 GB, free: 34.66 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.094e-06/1.509, allocations: 0 / 1.361 GB, free: 34.66 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.055e-05/1.509, allocations: 0 / 1.361 GB, free: 34.66 MB / 0.8386 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.0005326/1.509, allocations: 423.9 kB / 1.361 GB, free: 34.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.509, allocations: 12.89 kB / 1.361 GB, free: 34.26 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.225e-05/1.509, allocations: 37.56 kB / 1.361 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.585e-05/1.51, allocations: 9.266 kB / 1.361 GB, free: 34.21 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001062/1.51, allocations: 175.2 kB / 1.361 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/1.51, allocations: 5.422 kB / 1.361 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/1.51, allocations: 7.719 kB / 1.361 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001251/1.51, allocations: 59.67 kB / 1.361 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/1.51, allocations: 0 / 1.361 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/1.51, allocations: 4 kB / 1.361 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/1.51, allocations: 0 / 1.361 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.443e-05/1.51, allocations: 24.55 kB / 1.361 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004511/1.51, allocations: 333.7 kB / 1.362 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.234e-05/1.511, allocations: 28.55 kB / 1.362 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.733e-05/1.511, allocations: 27.23 kB / 1.362 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/1.511, allocations: 1.5 kB / 1.362 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001306/1.511, allocations: 65.39 kB / 1.362 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/1.511, allocations: 0 / 1.362 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001961/1.511, allocations: 79.31 kB / 1.362 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/1.511, allocations: 59.2 kB / 1.362 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.652e-05/1.511, allocations: 116.9 kB / 1.362 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/1.511, allocations: 33.58 kB / 1.362 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.153e-05/1.511, allocations: 89.47 kB / 1.362 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/1.511, allocations: 23.83 kB / 1.362 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.496e-05/1.511, allocations: 0 / 1.362 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001423/1.511, allocations: 321.7 kB / 1.363 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.043e-05/1.511, allocations: 35.5 kB / 1.363 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.432e-05/1.512, allocations: 56.39 kB / 1.363 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/1.512, allocations: 67.58 kB / 1.363 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/1.512, allocations: 0 / 1.363 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000279/1.512, allocations: 163.5 kB / 1.363 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.997e-05/1.512, allocations: 39.72 kB / 1.363 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/1.512, allocations: 0 / 1.363 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/1.512, allocations: 3.969 kB / 1.363 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/1.512, allocations: 24.83 kB / 1.363 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/1.512, allocations: 1.406 kB / 1.363 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/1.512, allocations: 54.59 kB / 1.363 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/1.512, allocations: 20.08 kB / 1.363 GB, free: 32.79 MB / 0.8386 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 () * 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 7.236e-05/1.513, allocations: 107.8 kB / 1.363 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.325e-05/1.513, allocations: 7.719 kB / 1.363 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.622e-05/1.513, allocations: 12.12 kB / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/1.513, allocations: 0 / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/1.513, allocations: 128 / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/1.513, allocations: 7.969 kB / 1.363 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/1.513, allocations: 180.3 kB / 1.363 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/1.513, allocations: 0 / 1.363 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/1.513, allocations: 29.44 kB / 1.363 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/1.513, allocations: 0 / 1.363 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/1.513, allocations: 0 / 1.363 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/1.513, allocations: 3.969 kB / 1.363 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/1.513, allocations: 0 / 1.363 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001304/1.513, allocations: 108.2 kB / 1.363 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.353e-05/1.513, allocations: 85.02 kB / 1.364 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/1.513, allocations: 0 / 1.364 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.32e-05/1.513, allocations: 19.08 kB / 1.364 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.435e-05/1.513, allocations: 11.08 kB / 1.364 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/1.513, allocations: 5.422 kB / 1.364 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.506e-05/1.513, allocations: 91.75 kB / 1.364 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.513, allocations: 3.75 kB / 1.364 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001982/1.514, allocations: 23.69 kB / 1.364 GB, free: 32.21 MB / 0.8386 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 () * 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.000445/1.514, allocations: 0.6616 MB / 1.364 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002226/1.514, allocations: 138.4 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.514, allocations: 3.938 kB / 1.364 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.423e-05/1.514, allocations: 23.78 kB / 1.365 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001634/1.514, allocations: 18.08 kB / 1.365 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003818/1.515, allocations: 148.1 kB / 1.365 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/1.515, allocations: 0.6929 MB / 1.365 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.16e-05/1.515, allocations: 5.453 kB / 1.365 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/1.515, allocations: 22.98 kB / 1.365 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.515, allocations: 0 / 1.365 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01532/1.531, allocations: 2.266 MB / 1.368 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002534/1.531, allocations: 166.1 kB / 1.368 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/3.319, allocations: 0 / 1.368 GB, free: 30.24 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat does not exist to compare? outputFormat=mat