Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.424/2.424, allocations: 393.5 MB / 408.4 MB, free: 11.09 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.00109/0.00109, allocations: 180 kB / 0.4901 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.767/1.767, allocations: 223.1 MB / 0.7992 GB, free: 14.77 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.0009107/0.0009105, allocations: 96.33 kB / 0.9396 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004269/0.000427, allocations: 10.56 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2687, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1734/0.4422, allocations: 150.5 MB / 1.376 GB, free: 2.961 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.4425, allocations: 71.95 kB / 1.376 GB, free: 2.891 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01401/0.4565, allocations: 4.526 MB / 1.381 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.005e-06/0.4566, allocations: 0 / 1.381 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.31e-05/0.4566, allocations: 4 kB / 1.381 GB, free: 14.36 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007053/0.4573, allocations: 0.4891 MB / 1.381 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.4574, allocations: 8.562 kB / 1.381 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.954e-05/0.4575, allocations: 50.53 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.4576, allocations: 23.77 kB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.4578, allocations: 179.7 kB / 1.382 GB, free: 13.49 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.53e-05/0.4578, allocations: 11.98 kB / 1.382 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.202e-05/0.4579, allocations: 20 kB / 1.382 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002031/0.4581, allocations: 90.98 kB / 1.382 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.4582, allocations: 0 / 1.382 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.4582, allocations: 0 / 1.382 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.4582, allocations: 4 kB / 1.382 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.4583, allocations: 55.91 kB / 1.382 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008328/0.4591, allocations: 488.3 kB / 1.382 GB, free: 12.78 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000237/0.4594, allocations: 74.55 kB / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.4594, allocations: 0 / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.4597, allocations: 127.1 kB / 1.382 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 1.803e-06/0.4597, allocations: 0 / 1.382 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0003723/0.46, allocations: 169.7 kB / 1.383 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.4601, allocations: 59.41 kB / 1.383 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.4602, allocations: 150.8 kB / 1.383 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.4603, allocations: 29.7 kB / 1.383 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.929e-05/0.4604, allocations: 108 kB / 1.383 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.354e-05/0.4604, allocations: 31.64 kB / 1.383 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.4605, allocations: 8 kB / 1.383 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4606, allocations: 322.8 kB / 1.383 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.4608, allocations: 99.84 kB / 1.383 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002188/0.4611, allocations: 151.3 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002387/0.4613, allocations: 171.3 kB / 1.384 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.4613, allocations: 0 / 1.384 GB, free: 11.21 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006208/0.4619, allocations: 394.4 kB / 1.384 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.389e-05/0.462, allocations: 105.1 kB / 1.384 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.462, allocations: 0 / 1.384 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.4621, allocations: 4 kB / 1.384 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.234e-05/0.4621, allocations: 15.89 kB / 1.384 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.4622, allocations: 8 kB / 1.384 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005154/0.4627, allocations: 123.9 kB / 1.384 GB, free: 10.53 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.024e-05/0.4627, allocations: 15.98 kB / 1.384 GB, free: 10.52 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: 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.000163/0.4629, allocations: 142.5 kB / 1.384 GB, free: 10.37 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.578e-05/0.4629, allocations: 7.906 kB / 1.384 GB, free: 10.36 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.62e-05/0.463, allocations: 16.84 kB / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.463, allocations: 0 / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.463, allocations: 7.953 kB / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.463, allocations: 7.984 kB / 1.384 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002421/0.4633, allocations: 213.5 kB / 1.385 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.4633, allocations: 0 / 1.385 GB, free: 10.07 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.705e-05/0.4633, allocations: 8 kB / 1.385 GB, free: 10.06 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.4634, allocations: 0 / 1.385 GB, free: 10.06 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.4634, allocations: 11.98 kB / 1.385 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.4634, allocations: 0 / 1.385 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4634, allocations: 0 / 1.385 GB, free: 10.05 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002302/0.4636, allocations: 164.9 kB / 1.385 GB, free: 9.871 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.864e-05/0.4637, allocations: 88.92 kB / 1.385 GB, free: 9.766 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.4637, allocations: 0 / 1.385 GB, free: 9.766 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.512e-05/0.4638, allocations: 8 kB / 1.385 GB, free: 9.758 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.4638, allocations: 11.97 kB / 1.385 GB, free: 9.746 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.4638, allocations: 11.98 kB / 1.385 GB, free: 9.734 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001045/0.4639, allocations: 116.7 kB / 1.385 GB, free: 9.621 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.31e-07/0.464, allocations: 3.938 kB / 1.385 GB, free: 9.617 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003197/0.4643, allocations: 59.89 kB / 1.385 GB, free: 9.559 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: 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.0006043/0.4649, allocations: 0.7067 MB / 1.386 GB, free: 8.824 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000513/0.4654, allocations: 385.3 kB / 1.386 GB, free: 8.414 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4654, allocations: 4.375 kB / 1.386 GB, free: 8.41 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 8.81e-05/0.4655, allocations: 51.92 kB / 1.386 GB, free: 8.359 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.4658, allocations: 25.19 kB / 1.386 GB, free: 8.336 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.4669, allocations: 1.436 MB / 1.388 GB, free: 6.816 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.4672, allocations: 0.7204 MB / 1.388 GB, free: 6.07 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.309e-05/0.4673, allocations: 8.656 kB / 1.388 GB, free: 6.062 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.995e-05/0.4674, allocations: 35.42 kB / 1.388 GB, free: 6.027 MB / 0.8855 GB Notification: Performance of SimCode: time 4.51e-07/0.4674, allocations: 0 / 1.388 GB, free: 6.027 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.4841, allocations: 3.826 MB / 1.392 GB, free: 2.359 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/0.4844, allocations: 187.8 kB / 1.392 GB, free: 2.117 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.739/2.223, allocations: 0 / 1.392 GB, free: 2.117 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat does not exist to compare? outputFormat=mat