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.00156/0.00156, allocations: 110.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.001482/0.001482, allocations: 208.5 kB / 22.25 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.571/1.571, allocations: 230.6 MB / 256 MB, free: 7.965 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.342/3.342, allocations: 0.505 GB / 0.8101 GB, free: 21.98 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.002902/0.002902, allocations: 71.41 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.385, allocations: 180.2 MB / 1.353 GB, free: 8.434 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002765/0.3878, allocations: 0.8328 MB / 1.354 GB, free: 7.602 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.002031/0.3898, allocations: 1.319 MB / 1.355 GB, free: 6.27 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.3899, allocations: 3.938 kB / 1.355 GB, free: 6.266 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.392e-05/0.39, allocations: 11.81 kB / 1.355 GB, free: 6.254 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.3901, allocations: 23.8 kB / 1.355 GB, free: 6.23 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000995/0.3911, allocations: 328.6 kB / 1.355 GB, free: 5.918 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000436/0.3915, allocations: 295.5 kB / 1.356 GB, free: 5.629 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.3917, allocations: 29.62 kB / 1.356 GB, free: 5.598 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.3919, allocations: 119.8 kB / 1.356 GB, free: 5.48 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002376/0.3921, allocations: 111.7 kB / 1.356 GB, free: 5.371 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.123e-05/0.3922, allocations: 24 kB / 1.356 GB, free: 5.348 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.3923, allocations: 35.98 kB / 1.356 GB, free: 5.312 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.01e-05/0.3923, allocations: 31.86 kB / 1.356 GB, free: 5.281 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.3925, allocations: 107.7 kB / 1.356 GB, free: 5.176 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003932/0.3929, allocations: 267.3 kB / 1.356 GB, free: 4.914 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3929, allocations: 0 / 1.356 GB, free: 4.914 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3929, allocations: 0 / 1.356 GB, free: 4.914 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.965e-06/0.3929, allocations: 0 / 1.356 GB, free: 4.914 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.0007649/0.3937, allocations: 458.9 kB / 1.357 GB, free: 4.418 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.3937, allocations: 12.03 kB / 1.357 GB, free: 4.406 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.378e-05/0.3938, allocations: 42.73 kB / 1.357 GB, free: 4.355 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.835e-05/0.3939, allocations: 24.84 kB / 1.357 GB, free: 4.332 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.394, allocations: 131.5 kB / 1.357 GB, free: 4.18 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.394, allocations: 15.89 kB / 1.357 GB, free: 4.164 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.3941, allocations: 20 kB / 1.357 GB, free: 4.145 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.3943, allocations: 91.19 kB / 1.357 GB, free: 4.051 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3943, allocations: 0 / 1.357 GB, free: 4.051 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.3943, allocations: 0 / 1.357 GB, free: 4.051 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.3943, allocations: 4 kB / 1.357 GB, free: 4.047 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.3944, allocations: 47.97 kB / 1.357 GB, free: 4 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007906/0.3952, allocations: 471.4 kB / 1.358 GB, free: 3.496 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.3955, allocations: 74.48 kB / 1.358 GB, free: 3.414 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.127e-05/0.3955, allocations: 32.89 kB / 1.358 GB, free: 3.379 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 8.846e-06/0.3955, allocations: 0 / 1.358 GB, free: 3.379 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.3958, allocations: 115.8 kB / 1.358 GB, free: 3.254 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.3958, allocations: 4 kB / 1.358 GB, free: 3.25 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0003855/0.3962, allocations: 176 kB / 1.358 GB, free: 3.074 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.3962, allocations: 59.39 kB / 1.358 GB, free: 3.004 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.3964, allocations: 166.1 kB / 1.358 GB, free: 2.832 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.707e-05/0.3964, allocations: 37.7 kB / 1.358 GB, free: 2.789 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3965, allocations: 108.1 kB / 1.358 GB, free: 2.68 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.3966, allocations: 27.75 kB / 1.358 GB, free: 2.652 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.3967, allocations: 77.66 kB / 1.358 GB, free: 2.57 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3969, allocations: 326.8 kB / 1.359 GB, free: 2.242 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.3971, allocations: 95.95 kB / 1.359 GB, free: 2.148 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002391/0.3973, allocations: 141.9 kB / 1.359 GB, free: 1.988 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/0.3977, allocations: 260.7 kB / 1.359 GB, free: 1.695 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3977, allocations: 0 / 1.359 GB, free: 1.695 MB / 1.045 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007038/0.3984, allocations: 398.4 kB / 1.36 GB, free: 1.281 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 9.02e-05/0.3985, allocations: 105.3 kB / 1.36 GB, free: 1.16 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.3985, allocations: 0 / 1.36 GB, free: 1.16 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.3985, allocations: 7.938 kB / 1.36 GB, free: 1.152 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.301e-05/0.3985, allocations: 15.92 kB / 1.36 GB, free: 1.137 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.3986, allocations: 4 kB / 1.36 GB, free: 1.133 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004589/0.399, allocations: 87.75 kB / 1.36 GB, free: 1.047 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.249e-05/0.3991, allocations: 23.98 kB / 1.36 GB, free: 1.023 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.0001579/0.3992, allocations: 145.6 kB / 1.36 GB, free: 0.8711 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.862e-05/0.3992, allocations: 15.88 kB / 1.36 GB, free: 0.8555 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.564e-05/0.3993, allocations: 12.78 kB / 1.36 GB, free: 0.8398 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3993, allocations: 4 kB / 1.36 GB, free: 0.8359 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3993, allocations: 0 / 1.36 GB, free: 0.8359 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3993, allocations: 0 / 1.36 GB, free: 0.8359 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.3995, allocations: 196.6 kB / 1.36 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3995, allocations: 7.938 kB / 1.36 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.589e-05/0.3995, allocations: 8 kB / 1.36 GB, free: 0.5859 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3995, allocations: 0 / 1.36 GB, free: 0.5859 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.3996, allocations: 0 / 1.36 GB, free: 0.5859 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.3996, allocations: 4 kB / 1.36 GB, free: 0.582 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3996, allocations: 0 / 1.36 GB, free: 0.582 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.3998, allocations: 157 kB / 1.36 GB, free: 420 kB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.477e-05/0.3998, allocations: 19.83 kB / 1.36 GB, free: 400 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.3998, allocations: 8 kB / 1.36 GB, free: 392 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.986e-05/0.3999, allocations: 0 / 1.36 GB, free: 392 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.3999, allocations: 11.98 kB / 1.36 GB, free: 380 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.3999, allocations: 7.984 kB / 1.36 GB, free: 372 kB / 1.045 GB Notification: Performance of sorting global known variables: time 9.48e-05/0.4, allocations: 115.3 kB / 1.36 GB, free: 256 kB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.4, allocations: 0 / 1.36 GB, free: 256 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002929/0.4003, allocations: 55.92 kB / 1.361 GB, free: 200 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.0006247/0.4009, allocations: 0.7063 MB / 1.361 GB, free: 15.46 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005705/0.4015, allocations: 342.1 kB / 1.362 GB, free: 15.09 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4015, allocations: 0 / 1.362 GB, free: 15.09 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 9.048e-05/0.4016, allocations: 55.84 kB / 1.362 GB, free: 15.04 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.4019, allocations: 30.23 kB / 1.362 GB, free: 15.01 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003283/0.4052, allocations: 2.255 MB / 1.364 GB, free: 12.61 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004515/0.4056, allocations: 0.7084 MB / 1.365 GB, free: 11.88 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.185e-05/0.4057, allocations: 12.64 kB / 1.365 GB, free: 11.87 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.264e-05/0.4058, allocations: 39.42 kB / 1.365 GB, free: 11.83 MB / 1.061 GB Notification: Performance of SimCode: time 6.72e-07/0.4058, allocations: 0 / 1.365 GB, free: 11.83 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03708/0.4429, allocations: 4.389 MB / 1.369 GB, free: 7.602 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.67, allocations: 9.719 kB / 1.369 GB, free: 7.594 MB / 1.061 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 & /home/hudson/saved_omc/OMSimulator/install/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 --stepSize=0.002 --timeout=800 --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) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.677354306913912]