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.001762/0.001762, allocations: 104 kB / 16.45 MB, free: 6.449 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.002081/0.002081, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.517/1.517, allocations: 230.6 MB / 252.8 MB, free: 9.117 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.25/3.25, allocations: 0.505 GB / 0.8066 GB, free: 23.03 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.002306/0.002306, allocations: 70.77 kB / 1.172 GB, free: 17.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3944, allocations: 180.2 MB / 1.348 GB, free: 9.941 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002303/0.3967, allocations: 0.8327 MB / 1.349 GB, free: 9.113 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001787/0.3985, allocations: 1.315 MB / 1.35 GB, free: 7.785 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.109e-05/0.3986, allocations: 0 / 1.35 GB, free: 7.785 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.174e-05/0.3986, allocations: 11.81 kB / 1.35 GB, free: 7.773 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.483e-05/0.3987, allocations: 27.78 kB / 1.35 GB, free: 7.746 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008547/0.3995, allocations: 324.3 kB / 1.35 GB, free: 7.438 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004008/0.3999, allocations: 295.4 kB / 1.35 GB, free: 7.148 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.4001, allocations: 29.38 kB / 1.351 GB, free: 7.113 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.4002, allocations: 115.8 kB / 1.351 GB, free: 7 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.4004, allocations: 111.7 kB / 1.351 GB, free: 6.891 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.059e-05/0.4005, allocations: 31.94 kB / 1.351 GB, free: 6.859 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.63e-05/0.4006, allocations: 43.92 kB / 1.351 GB, free: 6.816 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.303e-05/0.4006, allocations: 23.91 kB / 1.351 GB, free: 6.793 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.4007, allocations: 103.6 kB / 1.351 GB, free: 6.691 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003483/0.4011, allocations: 271.4 kB / 1.351 GB, free: 6.426 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.4011, allocations: 0 / 1.351 GB, free: 6.426 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.423e-06/0.4011, allocations: 4 kB / 1.351 GB, free: 6.422 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.4011, allocations: 0 / 1.351 GB, free: 6.422 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.0007116/0.4018, allocations: 0.5273 MB / 1.352 GB, free: 5.828 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.4018, allocations: 11.98 kB / 1.352 GB, free: 5.816 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.26e-05/0.4019, allocations: 38.75 kB / 1.352 GB, free: 5.77 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.867e-05/0.402, allocations: 20.84 kB / 1.352 GB, free: 5.75 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.4021, allocations: 188.8 kB / 1.352 GB, free: 5.527 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.4022, allocations: 19.89 kB / 1.352 GB, free: 5.508 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.314e-05/0.4022, allocations: 27.98 kB / 1.352 GB, free: 5.48 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.4024, allocations: 85.64 kB / 1.352 GB, free: 5.391 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.4024, allocations: 0 / 1.352 GB, free: 5.391 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.4024, allocations: 8 kB / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-06/0.4024, allocations: 0 / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001046/0.4025, allocations: 43.92 kB / 1.352 GB, free: 5.34 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007383/0.4033, allocations: 496.5 kB / 1.353 GB, free: 4.805 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.4035, allocations: 66.5 kB / 1.353 GB, free: 4.73 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.014e-05/0.4035, allocations: 28.97 kB / 1.353 GB, free: 4.699 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.4035, allocations: 0 / 1.353 GB, free: 4.699 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002643/0.4038, allocations: 123.8 kB / 1.353 GB, free: 4.566 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.4038, allocations: 3.938 kB / 1.353 GB, free: 4.562 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0003822/0.4042, allocations: 175.9 kB / 1.353 GB, free: 4.387 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.4043, allocations: 55.41 kB / 1.353 GB, free: 4.32 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.4044, allocations: 174.9 kB / 1.353 GB, free: 4.141 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.317e-05/0.4045, allocations: 29.7 kB / 1.353 GB, free: 4.105 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.727e-05/0.4046, allocations: 108.1 kB / 1.353 GB, free: 3.996 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.4046, allocations: 27.8 kB / 1.353 GB, free: 3.969 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001466/0.4048, allocations: 73.67 kB / 1.353 GB, free: 3.891 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001768/0.4049, allocations: 322.8 kB / 1.354 GB, free: 3.566 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.4051, allocations: 99.94 kB / 1.354 GB, free: 3.469 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002604/0.4054, allocations: 146.9 kB / 1.354 GB, free: 3.305 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003559/0.4058, allocations: 257 kB / 1.354 GB, free: 3.016 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.4058, allocations: 4 kB / 1.354 GB, free: 3.012 MB / 1.045 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007107/0.4065, allocations: 404.6 kB / 1.355 GB, free: 2.594 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 8.902e-05/0.4066, allocations: 101 kB / 1.355 GB, free: 2.477 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.4066, allocations: 4.188 kB / 1.355 GB, free: 2.473 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.4066, allocations: 8 kB / 1.355 GB, free: 2.465 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.451e-05/0.4067, allocations: 15.94 kB / 1.355 GB, free: 2.449 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.4067, allocations: 0 / 1.355 GB, free: 2.449 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004879/0.4071, allocations: 87.75 kB / 1.355 GB, free: 2.363 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.781e-05/0.4072, allocations: 27.91 kB / 1.355 GB, free: 2.336 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.0001356/0.4073, allocations: 137.8 kB / 1.355 GB, free: 2.191 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/0.4074, allocations: 11.89 kB / 1.355 GB, free: 2.18 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.764e-05/0.4074, allocations: 12.84 kB / 1.355 GB, free: 2.164 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.4074, allocations: 0 / 1.355 GB, free: 2.164 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.4074, allocations: 0 / 1.355 GB, free: 2.164 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.4074, allocations: 3.984 kB / 1.355 GB, free: 2.16 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002226/0.4076, allocations: 225.5 kB / 1.355 GB, free: 1.891 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.4076, allocations: 7.938 kB / 1.355 GB, free: 1.883 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.832e-05/0.4077, allocations: 15.98 kB / 1.355 GB, free: 1.867 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.4077, allocations: 0 / 1.355 GB, free: 1.867 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.4077, allocations: 4 kB / 1.355 GB, free: 1.863 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.4077, allocations: 0 / 1.355 GB, free: 1.863 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.4077, allocations: 3.938 kB / 1.355 GB, free: 1.859 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/0.408, allocations: 157 kB / 1.355 GB, free: 1.688 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.009e-05/0.4081, allocations: 92.95 kB / 1.355 GB, free: 1.578 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.4081, allocations: 0 / 1.355 GB, free: 1.578 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.831e-05/0.4081, allocations: 11.98 kB / 1.356 GB, free: 1.566 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/0.4082, allocations: 8 kB / 1.356 GB, free: 1.559 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.223e-05/0.4082, allocations: 7.984 kB / 1.356 GB, free: 1.551 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.069e-05/0.4083, allocations: 115.2 kB / 1.356 GB, free: 1.438 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4083, allocations: 0 / 1.356 GB, free: 1.438 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002775/0.4086, allocations: 48 kB / 1.356 GB, free: 1.391 MB / 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.0006284/0.4092, allocations: 0.7138 MB / 1.356 GB, free: 0.6484 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.00056/0.4098, allocations: 344.4 kB / 1.357 GB, free: 284 kB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4098, allocations: 0 / 1.357 GB, free: 284 kB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 8.711e-05/0.4098, allocations: 47.92 kB / 1.357 GB, free: 236 kB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.4101, allocations: 28.3 kB / 1.357 GB, free: 208 kB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002972/0.4131, allocations: 2.251 MB / 1.359 GB, free: 13.81 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.4135, allocations: 0.7045 MB / 1.36 GB, free: 13.08 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 5.772e-05/0.4135, allocations: 20.62 kB / 1.36 GB, free: 13.06 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.061e-05/0.4136, allocations: 39.42 kB / 1.36 GB, free: 13.02 MB / 1.061 GB Notification: Performance of SimCode: time 5.41e-07/0.4136, allocations: 0 / 1.36 GB, free: 13.02 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0279/0.4415, allocations: 4.234 MB / 1.364 GB, free: 8.922 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.485/8.926, allocations: 14.77 kB / 1.364 GB, free: 8.91 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.790903970832005]