Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.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.Integers.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_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.333/2.333, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001091/0.001092, allocations: 173.2 kB / 498.1 MB, free: 5.73 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.405/1.405, allocations: 223.2 MB / 0.7948 GB, free: 17.93 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.00116/0.00116, allocations: 98.06 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003543, allocations: 11.91 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2607, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1753/0.4361, allocations: 149.7 MB / 1.369 GB, free: 12.24 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.4363, allocations: 75.95 kB / 1.369 GB, free: 12.16 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0132/0.4496, allocations: 4.522 MB / 1.374 GB, free: 7.641 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.314e-06/0.4496, allocations: 0 / 1.374 GB, free: 7.641 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.423e-05/0.4496, allocations: 4 kB / 1.374 GB, free: 7.637 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006559/0.4503, allocations: 0.493 MB / 1.374 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.4503, allocations: 8.031 kB / 1.374 GB, free: 7.07 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.055e-05/0.4504, allocations: 42.55 kB / 1.374 GB, free: 7.02 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.92e-05/0.4505, allocations: 27.77 kB / 1.374 GB, free: 6.992 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.4506, allocations: 180.9 kB / 1.374 GB, free: 6.773 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.685e-05/0.4507, allocations: 16 kB / 1.374 GB, free: 6.758 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.462e-05/0.4507, allocations: 19.98 kB / 1.374 GB, free: 6.738 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001723/0.4509, allocations: 86.64 kB / 1.375 GB, free: 6.648 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.4509, allocations: 4 kB / 1.375 GB, free: 6.645 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.451, allocations: 0 / 1.375 GB, free: 6.645 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.451, allocations: 4 kB / 1.375 GB, free: 6.641 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001086/0.4511, allocations: 51.97 kB / 1.375 GB, free: 6.59 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000709/0.4518, allocations: 484.3 kB / 1.375 GB, free: 6.066 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.452, allocations: 82.61 kB / 1.375 GB, free: 5.977 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.452, allocations: 0 / 1.375 GB, free: 5.977 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.4523, allocations: 103.2 kB / 1.375 GB, free: 5.863 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.4523, allocations: 4 kB / 1.375 GB, free: 5.859 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14): time 0.000342/0.4526, allocations: 177.5 kB / 1.375 GB, free: 5.68 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.4527, allocations: 63.55 kB / 1.375 GB, free: 5.605 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.4528, allocations: 142 kB / 1.376 GB, free: 5.457 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/0.4529, allocations: 41.64 kB / 1.376 GB, free: 5.41 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.581e-05/0.453, allocations: 104 kB / 1.376 GB, free: 5.305 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.453, allocations: 27.62 kB / 1.376 GB, free: 5.277 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-05/0.453, allocations: 8 kB / 1.376 GB, free: 5.27 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.4532, allocations: 330.9 kB / 1.376 GB, free: 4.938 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000208/0.4534, allocations: 91.94 kB / 1.376 GB, free: 4.848 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.4536, allocations: 148.6 kB / 1.376 GB, free: 4.684 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.4538, allocations: 173 kB / 1.376 GB, free: 4.496 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4538, allocations: 0 / 1.376 GB, free: 4.496 MB / 0.8698 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005663/0.4544, allocations: 399 kB / 1.377 GB, free: 4.082 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.625e-05/0.4545, allocations: 106.3 kB / 1.377 GB, free: 3.961 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.4545, allocations: 7.922 kB / 1.377 GB, free: 3.953 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.4545, allocations: 4 kB / 1.377 GB, free: 3.949 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.714e-05/0.4546, allocations: 15.89 kB / 1.377 GB, free: 3.934 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.4546, allocations: 7.938 kB / 1.377 GB, free: 3.926 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004705/0.4551, allocations: 116 kB / 1.377 GB, free: 3.812 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.611e-05/0.4551, allocations: 15.98 kB / 1.377 GB, free: 3.797 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: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.0001191/0.4552, allocations: 137.8 kB / 1.377 GB, free: 3.652 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.069e-05/0.4553, allocations: 15.81 kB / 1.377 GB, free: 3.637 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.641e-05/0.4553, allocations: 12.84 kB / 1.377 GB, free: 3.617 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.4553, allocations: 0 / 1.377 GB, free: 3.617 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.4553, allocations: 7.953 kB / 1.377 GB, free: 3.609 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.4553, allocations: 3.984 kB / 1.377 GB, free: 3.605 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.4555, allocations: 209.6 kB / 1.377 GB, free: 3.352 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4555, allocations: 0 / 1.377 GB, free: 3.352 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.935e-05/0.4556, allocations: 12 kB / 1.377 GB, free: 3.34 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.4556, allocations: 0 / 1.377 GB, free: 3.34 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.4556, allocations: 7.984 kB / 1.377 GB, free: 3.332 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.4556, allocations: 0 / 1.377 GB, free: 3.332 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4556, allocations: 0 / 1.377 GB, free: 3.332 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.4558, allocations: 172.8 kB / 1.378 GB, free: 3.148 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.756e-05/0.4559, allocations: 92.86 kB / 1.378 GB, free: 3.039 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.4559, allocations: 7.984 kB / 1.378 GB, free: 3.031 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.097e-05/0.4559, allocations: 0 / 1.378 GB, free: 3.031 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.872e-05/0.456, allocations: 15.98 kB / 1.378 GB, free: 3.016 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.456, allocations: 7.984 kB / 1.378 GB, free: 3.008 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 7.544e-05/0.4561, allocations: 120.7 kB / 1.378 GB, free: 2.891 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4561, allocations: 0 / 1.378 GB, free: 2.891 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002812/0.4564, allocations: 59.89 kB / 1.378 GB, free: 2.832 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0004965/0.4569, allocations: 0.7175 MB / 1.379 GB, free: 2.086 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0004883/0.4574, allocations: 382.1 kB / 1.379 GB, free: 1.676 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4574, allocations: 384 / 1.379 GB, free: 1.676 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.84e-05/0.4575, allocations: 59.92 kB / 1.379 GB, free: 1.617 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.4577, allocations: 19.98 kB / 1.379 GB, free: 1.598 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009508/0.4586, allocations: 1.429 MB / 1.38 GB, free: 92 kB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002454/0.4589, allocations: 0.7204 MB / 1.381 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.562e-05/0.459, allocations: 8.656 kB / 1.381 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.64e-05/0.459, allocations: 35.42 kB / 1.381 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of SimCode: time 2.21e-07/0.459, allocations: 0 / 1.381 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01494/0.474, allocations: 3.825 MB / 1.385 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002618/0.4743, allocations: 187.8 kB / 1.385 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.657/2.131, allocations: 0 / 1.385 GB, free: 11.39 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat does not exist to compare? outputFormat=mat