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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 109.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002477/0.002477, allocations: 219.2 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.211/3.211, allocations: 0.505 GB / 0.8101 GB, free: 22.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001997, allocations: 68.81 kB / 1.177 GB, free: 17.12 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.3578, allocations: 180.2 MB / 1.353 GB, free: 8.484 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002048/0.3599, allocations: 0.8328 MB / 1.354 GB, free: 7.652 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001675/0.3616, allocations: 1.338 MB / 1.355 GB, free: 6.301 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.523e-05/0.3616, allocations: 0 / 1.355 GB, free: 6.301 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.105e-05/0.3617, allocations: 7.875 kB / 1.355 GB, free: 6.293 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.279e-05/0.3618, allocations: 31.72 kB / 1.355 GB, free: 6.262 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008057/0.3626, allocations: 318 kB / 1.355 GB, free: 5.961 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000353/0.3629, allocations: 295.5 kB / 1.356 GB, free: 5.672 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.363, allocations: 25.62 kB / 1.356 GB, free: 5.645 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.3632, allocations: 123.8 kB / 1.356 GB, free: 5.523 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.3634, allocations: 107.7 kB / 1.356 GB, free: 5.418 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.011e-05/0.3634, allocations: 28 kB / 1.356 GB, free: 5.391 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.3635, allocations: 39.98 kB / 1.356 GB, free: 5.352 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.753e-05/0.3636, allocations: 31.84 kB / 1.356 GB, free: 5.32 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.3637, allocations: 99.67 kB / 1.356 GB, free: 5.223 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003225/0.364, allocations: 271.3 kB / 1.356 GB, free: 4.957 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.364, allocations: 0 / 1.356 GB, free: 4.957 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.413e-06/0.364, allocations: 0 / 1.356 GB, free: 4.957 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.364, allocations: 0 / 1.356 GB, free: 4.957 MB / 1.045 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.0006642/0.3647, allocations: 462.9 kB / 1.357 GB, free: 4.457 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3647, allocations: 12.03 kB / 1.357 GB, free: 4.445 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.133e-05/0.3648, allocations: 38.73 kB / 1.357 GB, free: 4.398 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.527e-05/0.3648, allocations: 24.84 kB / 1.357 GB, free: 4.375 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.3649, allocations: 123 kB / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.554e-05/0.365, allocations: 23.89 kB / 1.357 GB, free: 4.207 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.259e-05/0.365, allocations: 23.94 kB / 1.357 GB, free: 4.184 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001722/0.3652, allocations: 85.64 kB / 1.357 GB, free: 4.094 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3652, allocations: 0 / 1.357 GB, free: 4.094 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.3652, allocations: 4 kB / 1.357 GB, free: 4.09 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.3652, allocations: 8 kB / 1.357 GB, free: 4.082 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.3653, allocations: 43.97 kB / 1.357 GB, free: 4.039 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000704/0.366, allocations: 467.4 kB / 1.358 GB, free: 3.539 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.3663, allocations: 70.61 kB / 1.358 GB, free: 3.461 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.738e-05/0.3663, allocations: 28.84 kB / 1.358 GB, free: 3.43 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.3663, allocations: 11.94 kB / 1.358 GB, free: 3.418 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/0.3666, allocations: 111.8 kB / 1.358 GB, free: 3.297 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.3666, allocations: 0 / 1.358 GB, free: 3.297 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0003594/0.3669, allocations: 173.5 kB / 1.358 GB, free: 3.121 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.367, allocations: 59.41 kB / 1.358 GB, free: 3.051 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.3671, allocations: 166.1 kB / 1.358 GB, free: 2.879 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.3672, allocations: 33.7 kB / 1.358 GB, free: 2.84 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.376e-05/0.3673, allocations: 112.1 kB / 1.358 GB, free: 2.727 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.818e-05/0.3673, allocations: 27.8 kB / 1.358 GB, free: 2.699 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.3674, allocations: 77.66 kB / 1.358 GB, free: 2.617 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.3676, allocations: 326.8 kB / 1.359 GB, free: 2.289 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.3678, allocations: 87.95 kB / 1.359 GB, free: 2.203 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.368, allocations: 149.9 kB / 1.359 GB, free: 2.035 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003168/0.3683, allocations: 252.6 kB / 1.359 GB, free: 1.75 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3683, allocations: 4 kB / 1.359 GB, free: 1.746 MB / 1.045 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006591/0.369, allocations: 404 kB / 1.36 GB, free: 1.328 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 7.665e-05/0.3691, allocations: 101 kB / 1.36 GB, free: 1.211 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.3691, allocations: 0 / 1.36 GB, free: 1.211 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.3691, allocations: 4 kB / 1.36 GB, free: 1.207 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.759e-05/0.3691, allocations: 19.92 kB / 1.36 GB, free: 1.188 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.3691, allocations: 4 kB / 1.36 GB, free: 1.184 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000453/0.3696, allocations: 87.94 kB / 1.36 GB, free: 1.098 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-05/0.3696, allocations: 19.98 kB / 1.36 GB, free: 1.078 MB / 1.045 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,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001472/0.3698, allocations: 141.7 kB / 1.36 GB, free: 0.9297 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.3698, allocations: 15.88 kB / 1.36 GB, free: 0.9141 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.102e-05/0.3698, allocations: 24.78 kB / 1.36 GB, free: 0.8867 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3698, allocations: 3.938 kB / 1.36 GB, free: 0.8828 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.3699, allocations: 4 kB / 1.36 GB, free: 0.8789 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3699, allocations: 0 / 1.36 GB, free: 0.8789 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.37, allocations: 188.6 kB / 1.36 GB, free: 0.6523 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.37, allocations: 3.938 kB / 1.36 GB, free: 0.6484 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.973e-05/0.3701, allocations: 8 kB / 1.36 GB, free: 0.6406 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.3701, allocations: 4 kB / 1.36 GB, free: 0.6367 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.3701, allocations: 4 kB / 1.36 GB, free: 0.6328 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3701, allocations: 0 / 1.36 GB, free: 0.6328 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3701, allocations: 0 / 1.36 GB, free: 0.6328 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002385/0.3703, allocations: 159.3 kB / 1.36 GB, free: 472 kB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.135e-05/0.3704, allocations: 23.77 kB / 1.36 GB, free: 448 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.3704, allocations: 4 kB / 1.36 GB, free: 444 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.159e-05/0.3704, allocations: 4 kB / 1.36 GB, free: 440 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.249e-05/0.3705, allocations: 7.984 kB / 1.36 GB, free: 432 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.3705, allocations: 11.98 kB / 1.36 GB, free: 420 kB / 1.045 GB Notification: Performance of sorting global known variables: time 7.77e-05/0.3705, allocations: 111.2 kB / 1.36 GB, free: 308 kB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3705, allocations: 4 kB / 1.36 GB, free: 304 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002723/0.3708, allocations: 55.92 kB / 1.361 GB, free: 248 kB / 1.045 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005814/0.3714, allocations: 0.7036 MB / 1.361 GB, free: 15.51 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004865/0.3719, allocations: 352 kB / 1.362 GB, free: 15.13 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3719, allocations: 0 / 1.362 GB, free: 15.13 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.209e-05/0.372, allocations: 43.91 kB / 1.362 GB, free: 15.09 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.3722, allocations: 38.08 kB / 1.362 GB, free: 15.05 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002829/0.3751, allocations: 2.253 MB / 1.364 GB, free: 12.66 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.3754, allocations: 0.7045 MB / 1.365 GB, free: 11.93 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.646e-05/0.3754, allocations: 12.64 kB / 1.365 GB, free: 11.92 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.412e-05/0.3755, allocations: 39.42 kB / 1.365 GB, free: 11.88 MB / 1.061 GB Notification: Performance of SimCode: time 3.4e-07/0.3755, allocations: 0 / 1.365 GB, free: 11.88 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03843/0.4139, allocations: 4.4 MB / 1.369 GB, free: 7.641 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.33, allocations: 6.344 kB / 1.369 GB, free: 7.637 MB / 1.061 GB " [Timeout remaining time 289] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable integerSwitch.u1 in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u3 in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u3 from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.235410149000018]