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.00166/0.00166, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002184/0.002184, allocations: 213.5 kB / 22.24 MB, free: 5.262 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.538/1.538, allocations: 230.6 MB / 256 MB, free: 7.789 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.503/3.503, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 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.00274/0.00274, allocations: 66.44 kB / 1.186 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.395/0.3978, allocations: 181.9 MB / 1.363 GB, free: 14.08 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002283/0.4001, allocations: 0.8081 MB / 1.364 GB, free: 13.27 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002157/0.4022, allocations: 1.3 MB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.4023, allocations: 3.938 kB / 1.365 GB, free: 11.96 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 5.651e-05/0.4024, allocations: 11.86 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.4025, allocations: 19.8 kB / 1.365 GB, free: 11.93 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.4035, allocations: 323.9 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004673/0.404, allocations: 295.5 kB / 1.366 GB, free: 11.33 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.4042, allocations: 25.62 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002205/0.4044, allocations: 111.8 kB / 1.366 GB, free: 11.19 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.4046, allocations: 103.6 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 7.584e-05/0.4047, allocations: 28 kB / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.4048, allocations: 32 kB / 1.366 GB, free: 11.03 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.969e-05/0.4048, allocations: 31.8 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.4049, allocations: 99.73 kB / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.4053, allocations: 271.4 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4053, allocations: 0 / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.273e-06/0.4053, allocations: 0 / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.4053, allocations: 0 / 1.367 GB, free: 10.63 MB / 1.061 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.000714/0.406, allocations: 454.9 kB / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.4061, allocations: 8.031 kB / 1.367 GB, free: 10.13 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.001e-05/0.4061, allocations: 42.73 kB / 1.367 GB, free: 10.08 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.223e-05/0.4062, allocations: 16.89 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.4063, allocations: 132.6 kB / 1.367 GB, free: 9.914 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.347e-05/0.4064, allocations: 19.92 kB / 1.367 GB, free: 9.895 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.4064, allocations: 24 kB / 1.367 GB, free: 9.871 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.4066, allocations: 87.38 kB / 1.368 GB, free: 9.781 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.4066, allocations: 4 kB / 1.368 GB, free: 9.777 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.4066, allocations: 4 kB / 1.368 GB, free: 9.773 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.4066, allocations: 0 / 1.368 GB, free: 9.773 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001084/0.4067, allocations: 55.91 kB / 1.368 GB, free: 9.719 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007523/0.4075, allocations: 415.4 kB / 1.368 GB, free: 9.27 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002688/0.4078, allocations: 70.53 kB / 1.368 GB, free: 9.191 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.164e-05/0.4078, allocations: 24.98 kB / 1.368 GB, free: 9.164 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.4078, allocations: 8 kB / 1.368 GB, free: 9.156 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002672/0.4081, allocations: 119.1 kB / 1.368 GB, free: 9.027 MB / 1.061 GB Notification: Performance of pre-optimization done (n=14): time 1.983e-06/0.4081, allocations: 0 / 1.368 GB, free: 9.027 MB / 1.061 GB Notification: Performance of matching and sorting (n=14): time 0.0004013/0.4085, allocations: 172.7 kB / 1.368 GB, free: 8.855 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.215e-05/0.4086, allocations: 59.39 kB / 1.368 GB, free: 8.785 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.4087, allocations: 167.7 kB / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.517e-05/0.4088, allocations: 37.7 kB / 1.369 GB, free: 8.566 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.4089, allocations: 108.1 kB / 1.369 GB, free: 8.457 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.212e-05/0.4089, allocations: 23.81 kB / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.4091, allocations: 73.67 kB / 1.369 GB, free: 8.355 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001705/0.4092, allocations: 330.8 kB / 1.369 GB, free: 8.023 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000269/0.4095, allocations: 185 kB / 1.369 GB, free: 7.824 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.4098, allocations: 245.7 kB / 1.37 GB, free: 7.547 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/0.4102, allocations: 250.9 kB / 1.37 GB, free: 7.262 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.4102, allocations: 0 / 1.37 GB, free: 7.262 MB / 1.061 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000737/0.4109, allocations: 0.4955 MB / 1.37 GB, free: 6.723 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.569e-05/0.411, allocations: 97.09 kB / 1.37 GB, free: 6.609 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.411, allocations: 0 / 1.37 GB, free: 6.609 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.411, allocations: 4 kB / 1.37 GB, free: 6.605 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.913e-05/0.4111, allocations: 11.98 kB / 1.37 GB, free: 6.594 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.617e-06/0.4111, allocations: 4 kB / 1.37 GB, free: 6.59 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004746/0.4115, allocations: 95.86 kB / 1.37 GB, free: 6.496 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.4116, allocations: 19.98 kB / 1.37 GB, free: 6.477 MB / 1.061 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.0001507/0.4117, allocations: 141.7 kB / 1.371 GB, free: 6.328 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.4118, allocations: 11.89 kB / 1.371 GB, free: 6.316 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.264e-05/0.4118, allocations: 12.78 kB / 1.371 GB, free: 6.301 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4118, allocations: 4 kB / 1.371 GB, free: 6.297 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.4118, allocations: 0 / 1.371 GB, free: 6.297 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4118, allocations: 4 kB / 1.371 GB, free: 6.293 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.412, allocations: 184.6 kB / 1.371 GB, free: 6.07 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.412, allocations: 3.938 kB / 1.371 GB, free: 6.066 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.916e-05/0.4121, allocations: 11.94 kB / 1.371 GB, free: 6.055 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.4121, allocations: 0 / 1.371 GB, free: 6.055 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.4121, allocations: 4 kB / 1.371 GB, free: 6.051 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.4121, allocations: 0 / 1.371 GB, free: 6.051 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.4121, allocations: 8 kB / 1.371 GB, free: 6.043 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/0.4123, allocations: 157 kB / 1.371 GB, free: 5.871 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.531e-05/0.4124, allocations: 15.88 kB / 1.371 GB, free: 5.855 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.4124, allocations: 12 kB / 1.371 GB, free: 5.844 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.041e-05/0.4124, allocations: 0 / 1.371 GB, free: 5.844 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.4125, allocations: 15.98 kB / 1.371 GB, free: 5.828 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.358e-06/0.4125, allocations: 4 kB / 1.371 GB, free: 5.824 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001006/0.4126, allocations: 117.9 kB / 1.371 GB, free: 5.711 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4126, allocations: 0 / 1.371 GB, free: 5.711 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002865/0.4128, allocations: 59.88 kB / 1.371 GB, free: 5.652 MB / 1.061 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.0006232/0.4135, allocations: 0.7004 MB / 1.372 GB, free: 4.926 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006023/0.4141, allocations: 443.2 kB / 1.372 GB, free: 4.438 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4141, allocations: 0 / 1.372 GB, free: 4.438 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.644e-05/0.4142, allocations: 43.97 kB / 1.372 GB, free: 4.395 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.4144, allocations: 26.02 kB / 1.372 GB, free: 4.371 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003291/0.4177, allocations: 2.624 MB / 1.375 GB, free: 1.539 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.4178, allocations: 98.72 kB / 1.375 GB, free: 1.418 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.619e-05/0.4179, allocations: 12.64 kB / 1.375 GB, free: 1.406 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.481e-05/0.4179, allocations: 39.42 kB / 1.375 GB, free: 1.367 MB / 1.061 GB Notification: Performance of SimCode: time 3.9e-07/0.4179, allocations: 3.938 kB / 1.375 GB, free: 1.363 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04539/0.4633, allocations: 5.091 MB / 1.38 GB, free: 12.46 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.9, allocations: 9.094 kB / 1.38 GB, free: 12.45 MB / 1.076 GB " [Timeout remaining time 288] (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: 19.175076310057193]