Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001856/0.001856, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002529/0.002529, allocations: 213.3 kB / 22.24 MB, free: 5.242 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 / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.158/3.158, allocations: 0.4892 GB / 0.7943 GB, free: 35.64 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_12_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.002078/0.002078, allocations: 69.05 kB / 1.153 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4352/0.4373, allocations: 176.1 MB / 1.325 GB, free: 2.359 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002212/0.4395, allocations: 0.8085 MB / 1.326 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001801/0.4413, allocations: 1.299 MB / 1.327 GB, free: 248 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.697e-05/0.4414, allocations: 4 kB / 1.327 GB, free: 244 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.26e-05/0.4414, allocations: 7.875 kB / 1.327 GB, free: 236 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.01e-05/0.4415, allocations: 27.72 kB / 1.327 GB, free: 208 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008566/0.4424, allocations: 318.9 kB / 1.327 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003622/0.4427, allocations: 291.5 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.4429, allocations: 29.61 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.443, allocations: 115.8 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.4432, allocations: 95.66 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.504e-05/0.4433, allocations: 31.94 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.4434, allocations: 43.98 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.427e-05/0.4434, allocations: 19.92 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.4435, allocations: 95.73 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003537/0.4439, allocations: 271.3 kB / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.4439, allocations: 0 / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4439, allocations: 0 / 1.328 GB, free: 14.92 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.842e-06/0.4439, allocations: 0 / 1.328 GB, free: 14.92 MB / 1.029 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.0007154/0.4446, allocations: 460.8 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.4446, allocations: 8.031 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.41e-05/0.4447, allocations: 50.73 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.962e-05/0.4448, allocations: 20.84 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.4449, allocations: 132.7 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.4449, allocations: 19.88 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.593e-05/0.445, allocations: 16 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.4452, allocations: 97.59 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.4452, allocations: 0 / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.4452, allocations: 4 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.4452, allocations: 0 / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.4453, allocations: 47.97 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00073/0.446, allocations: 415.5 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.4463, allocations: 66.5 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.598e-05/0.4463, allocations: 32.91 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.4463, allocations: 0 / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002365/0.4466, allocations: 118.2 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.4466, allocations: 4 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.000385/0.4469, allocations: 173.5 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.447, allocations: 59.41 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.4472, allocations: 161.5 kB / 1.33 GB, free: 12.9 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.4472, allocations: 33.7 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.884e-05/0.4473, allocations: 116 kB / 1.33 GB, free: 12.74 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.4473, allocations: 31.83 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.4475, allocations: 77.67 kB / 1.33 GB, free: 12.63 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.4476, allocations: 322.8 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.4479, allocations: 189 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003041/0.4482, allocations: 237.3 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003356/0.4485, allocations: 257 kB / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.4486, allocations: 0 / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007471/0.4493, allocations: 495.5 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.88e-05/0.4494, allocations: 101.1 kB / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.4494, allocations: 3.938 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.4494, allocations: 4 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.811e-05/0.4495, allocations: 11.94 kB / 1.332 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.4495, allocations: 7.984 kB / 1.332 GB, free: 10.87 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004641/0.45, allocations: 87.98 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.45, allocations: 15.98 kB / 1.332 GB, free: 10.77 MB / 1.029 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.0001628/0.4502, allocations: 142.3 kB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.529e-05/0.4502, allocations: 15.84 kB / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.893e-05/0.4502, allocations: 24.7 kB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.4502, allocations: 4 kB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4502, allocations: 0 / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.4502, allocations: 0 / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.4505, allocations: 172.7 kB / 1.332 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.4505, allocations: 11.94 kB / 1.332 GB, free: 10.35 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.503e-05/0.4505, allocations: 11.98 kB / 1.332 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.4505, allocations: 0 / 1.332 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.4505, allocations: 0 / 1.332 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4505, allocations: 0 / 1.332 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4505, allocations: 4 kB / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.4508, allocations: 168.9 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.941e-05/0.4508, allocations: 19.83 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.298e-05/0.4509, allocations: 4 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.495e-05/0.4509, allocations: 7.984 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.109e-05/0.4509, allocations: 7.984 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.4509, allocations: 8 kB / 1.333 GB, free: 10.1 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.175e-05/0.451, allocations: 113.2 kB / 1.333 GB, free: 9.992 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.451, allocations: 0 / 1.333 GB, free: 9.992 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002789/0.4513, allocations: 51.94 kB / 1.333 GB, free: 9.941 MB / 1.029 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.0006652/0.452, allocations: 0.7214 MB / 1.334 GB, free: 9.195 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006522/0.4526, allocations: 431.2 kB / 1.334 GB, free: 8.719 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4526, allocations: 3.938 kB / 1.334 GB, free: 8.715 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.311e-05/0.4527, allocations: 43.92 kB / 1.334 GB, free: 8.672 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.453, allocations: 29.2 kB / 1.334 GB, free: 8.645 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003694/0.4567, allocations: 2.626 MB / 1.337 GB, free: 5.809 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001156/0.4568, allocations: 98.7 kB / 1.337 GB, free: 5.691 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.444e-05/0.4569, allocations: 8.656 kB / 1.337 GB, free: 5.684 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.423e-05/0.457, allocations: 39.42 kB / 1.337 GB, free: 5.645 MB / 1.029 GB Notification: Performance of SimCode: time 1.092e-06/0.457, allocations: 0 / 1.337 GB, free: 5.645 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.49, allocations: 5.104 MB / 1.342 GB, free: 0.7383 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.95, allocations: 4.062 kB / 1.342 GB, free: 0.7344 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_12_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u1 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u2 in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u2 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.u3 in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.u3 from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! Error: Could not read variable integerSwitch.y in file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv. Warning: Get data of variable integerSwitch.y from file Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.82794164866209]