Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.001382/0.001382, 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.001649/0.001649, allocations: 212.1 kB / 22.25 MB, free: 5.258 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.497/1.497, 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.427/3.427, 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.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.002285/0.002285, allocations: 70.67 kB / 1.186 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3859/0.3882, allocations: 181.9 MB / 1.363 GB, free: 14.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002163/0.3904, allocations: 0.7687 MB / 1.364 GB, free: 13.27 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001742/0.3921, allocations: 1.16 MB / 1.365 GB, free: 12.1 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.998e-05/0.3922, allocations: 0 / 1.365 GB, free: 12.1 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.126e-05/0.3922, allocations: 3.938 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 9.157e-05/0.3923, allocations: 23.86 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005618/0.3929, allocations: 130.8 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.3931, allocations: 135.7 kB / 1.366 GB, free: 11.81 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.3932, allocations: 8 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.3934, allocations: 55.89 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.3935, allocations: 43.81 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.829e-05/0.3935, allocations: 12 kB / 1.366 GB, free: 11.7 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.531e-05/0.3936, allocations: 23.98 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.469e-05/0.3936, allocations: 15.98 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 7.726e-05/0.3937, allocations: 43.84 kB / 1.366 GB, free: 11.61 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002195/0.3939, allocations: 123.8 kB / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3939, allocations: 0 / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3939, allocations: 0 / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.394, allocations: 0 / 1.366 GB, free: 11.49 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007022/0.3947, allocations: 351.7 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.3947, allocations: 12.03 kB / 1.366 GB, free: 11.1 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.131e-05/0.3947, allocations: 38.69 kB / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.558e-05/0.3948, allocations: 12.89 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.3949, allocations: 112.9 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.3949, allocations: 8.359 kB / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/0.3949, allocations: 8.375 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.3952, allocations: 78.2 kB / 1.367 GB, free: 10.81 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3952, allocations: 3.938 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.3952, allocations: 0 / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3952, allocations: 0 / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003085/0.3955, allocations: 75.92 kB / 1.367 GB, free: 10.73 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004792/0.396, allocations: 287.8 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.3962, allocations: 50.53 kB / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.3964, allocations: 40.92 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.3964, allocations: 11.92 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003101/0.3967, allocations: 99.23 kB / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.3967, allocations: 0 / 1.367 GB, free: 10.18 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0006207/0.3973, allocations: 165.6 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.3974, allocations: 59.41 kB / 1.367 GB, free: 9.945 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.3975, allocations: 122 kB / 1.367 GB, free: 9.812 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.3976, allocations: 29.7 kB / 1.367 GB, free: 9.777 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.727e-05/0.3976, allocations: 96.12 kB / 1.368 GB, free: 9.68 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.3976, allocations: 11.91 kB / 1.368 GB, free: 9.668 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.462e-05/0.3977, allocations: 33.7 kB / 1.368 GB, free: 9.629 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3979, allocations: 318.8 kB / 1.368 GB, free: 9.309 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.3981, allocations: 93.64 kB / 1.368 GB, free: 9.211 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.3984, allocations: 120.1 kB / 1.368 GB, free: 9.078 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003722/0.3987, allocations: 140.2 kB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3987, allocations: 0 / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005715/0.3993, allocations: 252.9 kB / 1.368 GB, free: 8.66 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.016e-05/0.3993, allocations: 33.69 kB / 1.368 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.3993, allocations: 4 kB / 1.368 GB, free: 8.617 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.3994, allocations: 0 / 1.368 GB, free: 8.617 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.3995, allocations: 19.92 kB / 1.368 GB, free: 8.598 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.3995, allocations: 0 / 1.368 GB, free: 8.598 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.3997, allocations: 55.89 kB / 1.369 GB, free: 8.543 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.3998, allocations: 4 kB / 1.369 GB, free: 8.539 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001045/0.3999, allocations: 121.9 kB / 1.369 GB, free: 8.41 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.249e-05/0.3999, allocations: 3.938 kB / 1.369 GB, free: 8.406 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.495e-05/0.3999, allocations: 12.38 kB / 1.369 GB, free: 8.391 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.3999, allocations: 3.984 kB / 1.369 GB, free: 8.387 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3999, allocations: 0 / 1.369 GB, free: 8.387 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3999, allocations: 0 / 1.369 GB, free: 8.387 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.4001, allocations: 144.6 kB / 1.369 GB, free: 8.203 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.4001, allocations: 11.98 kB / 1.369 GB, free: 8.191 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.4002, allocations: 11.98 kB / 1.369 GB, free: 8.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.4002, allocations: 0 / 1.369 GB, free: 8.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.4002, allocations: 12.25 kB / 1.369 GB, free: 8.168 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.4002, allocations: 4 kB / 1.369 GB, free: 8.164 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4002, allocations: 0 / 1.369 GB, free: 8.164 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004001/0.4006, allocations: 148.9 kB / 1.369 GB, free: 8 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.301e-05/0.4006, allocations: 11.95 kB / 1.369 GB, free: 7.988 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.4006, allocations: 0 / 1.369 GB, free: 7.988 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.606e-05/0.4007, allocations: 19.97 kB / 1.369 GB, free: 7.969 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.909e-05/0.4007, allocations: 4 kB / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.4008, allocations: 3.984 kB / 1.369 GB, free: 7.961 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.215e-05/0.4008, allocations: 97.64 kB / 1.369 GB, free: 7.867 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4008, allocations: 0 / 1.369 GB, free: 7.867 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002259/0.401, allocations: 24 kB / 1.369 GB, free: 7.844 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007732/0.4018, allocations: 0.6865 MB / 1.37 GB, free: 7.129 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000527/0.4023, allocations: 204.9 kB / 1.37 GB, free: 6.91 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.4023, allocations: 0 / 1.37 GB, free: 6.91 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.4025, allocations: 48.08 kB / 1.37 GB, free: 6.863 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.4027, allocations: 21.64 kB / 1.37 GB, free: 6.844 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002493/0.4052, allocations: 1.761 MB / 1.372 GB, free: 4.957 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.816e-05/0.4053, allocations: 75.19 kB / 1.372 GB, free: 4.863 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.363e-05/0.4054, allocations: 7.984 kB / 1.372 GB, free: 4.855 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.262e-05/0.4054, allocations: 23.44 kB / 1.372 GB, free: 4.832 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.4054, allocations: 0 / 1.372 GB, free: 4.832 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03097/0.4364, allocations: 3.371 MB / 1.375 GB, free: 1.609 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.8, allocations: 12.3 kB / 1.375 GB, free: 1.605 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.910374539904296]