Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001272/0.001272, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001456/0.001456, allocations: 213.3 kB / 22.24 MB, free: 4.855 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.478/1.478, 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.375/3.375, allocations: 0.5107 GB / 0.8158 GB, free: 17.84 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.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",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.002128/0.002128, allocations: 77.84 kB / 1.186 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.387, allocations: 181.9 MB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002408/0.3894, allocations: 0.6638 MB / 1.364 GB, free: 13.46 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001778/0.3912, allocations: 1.089 MB / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.073e-05/0.3913, allocations: 0 / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.486e-05/0.3913, allocations: 3.938 kB / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.851e-05/0.3914, allocations: 7.922 kB / 1.365 GB, free: 12.35 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003138/0.3917, allocations: 39.84 kB / 1.365 GB, free: 12.31 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.3918, allocations: 55.84 kB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.3919, allocations: 7.984 kB / 1.365 GB, free: 12.25 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.783e-05/0.392, allocations: 23.92 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.414e-05/0.3921, allocations: 15.92 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.3921, allocations: 4 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.366e-05/0.3921, allocations: 19.98 kB / 1.365 GB, free: 12.19 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.927e-05/0.3922, allocations: 15.97 kB / 1.365 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.513e-05/0.3922, allocations: 11.94 kB / 1.365 GB, free: 12.16 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.3924, allocations: 64 kB / 1.365 GB, free: 12.1 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3924, allocations: 0 / 1.365 GB, free: 12.1 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3924, allocations: 4 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.3924, allocations: 0 / 1.365 GB, free: 12.09 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.0006349/0.393, allocations: 290.2 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.3931, allocations: 8.031 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.848e-05/0.3931, allocations: 38.75 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.744e-05/0.3932, allocations: 0.9375 kB / 1.366 GB, free: 11.72 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.3933, allocations: 122.4 kB / 1.366 GB, free: 11.58 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.3933, allocations: 4.375 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.3933, allocations: 4.375 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.3935, allocations: 62.23 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.3935, allocations: 3.938 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.3936, allocations: 7.938 kB / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3936, allocations: 0 / 1.366 GB, free: 11.49 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.3937, allocations: 39.95 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004608/0.3942, allocations: 239.9 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001674/0.3944, allocations: 54.55 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.757e-05/0.3945, allocations: 34.02 kB / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.3945, allocations: 0 / 1.366 GB, free: 11.08 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002443/0.3947, allocations: 71.38 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/0.3947, allocations: 4 kB / 1.366 GB, free: 10.99 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.000439/0.3952, allocations: 125.5 kB / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.3952, allocations: 55.41 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.186e-05/0.3953, allocations: 105.9 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.3953, allocations: 29.69 kB / 1.367 GB, free: 10.65 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.486e-05/0.3954, allocations: 88.2 kB / 1.367 GB, free: 10.56 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.3954, allocations: 11.91 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.71e-05/0.3955, allocations: 25.7 kB / 1.367 GB, free: 10.52 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3956, allocations: 318.8 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.3957, allocations: 27.97 kB / 1.367 GB, free: 10.17 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.3958, allocations: 43.42 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002032/0.396, allocations: 83.33 kB / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.396, allocations: 0 / 1.367 GB, free: 10.02 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002724/0.3963, allocations: 106 kB / 1.367 GB, free: 9.91 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.3963, allocations: 10.12 kB / 1.367 GB, free: 9.902 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.3963, allocations: 4 kB / 1.367 GB, free: 9.898 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.3963, allocations: 4.047 kB / 1.367 GB, free: 9.895 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.3964, allocations: 19.97 kB / 1.367 GB, free: 9.875 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.3965, allocations: 0 / 1.367 GB, free: 9.875 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.666e-05/0.3965, allocations: 19.92 kB / 1.367 GB, free: 9.855 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.3965, allocations: 0 / 1.367 GB, free: 9.855 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.0001033/0.3966, allocations: 121.7 kB / 1.367 GB, free: 9.727 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.407e-05/0.3967, allocations: 7.953 kB / 1.367 GB, free: 9.719 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003063/0.397, allocations: 106 kB / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.397, allocations: 0 / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.397, allocations: 0 / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.397, allocations: 0 / 1.368 GB, free: 9.605 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004741/0.3975, allocations: 321.5 kB / 1.368 GB, free: 9.242 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3975, allocations: 0 / 1.368 GB, free: 9.242 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.743e-05/0.3975, allocations: 7.984 kB / 1.368 GB, free: 9.234 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3975, allocations: 4 kB / 1.368 GB, free: 9.23 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.3975, allocations: 4 kB / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3975, allocations: 0 / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3975, allocations: 0 / 1.368 GB, free: 9.227 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003215/0.3979, allocations: 207.3 kB / 1.368 GB, free: 9.008 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 7.203e-06/0.3979, allocations: 0 / 1.368 GB, free: 9.008 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.3979, allocations: 0 / 1.368 GB, free: 9.008 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.968e-05/0.398, allocations: 19.92 kB / 1.368 GB, free: 8.988 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/0.398, allocations: 7.922 kB / 1.368 GB, free: 8.98 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.398, allocations: 4 kB / 1.368 GB, free: 8.977 MB / 1.061 GB Notification: Performance of sorting global known variables: time 5.273e-05/0.3981, allocations: 91.47 kB / 1.368 GB, free: 8.887 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3981, allocations: 0 / 1.368 GB, free: 8.887 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002456/0.3983, allocations: 12 kB / 1.368 GB, free: 8.875 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007346/0.3991, allocations: 0.7241 MB / 1.369 GB, free: 8.125 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002746/0.3993, allocations: 68 kB / 1.369 GB, free: 8.059 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3993, allocations: 4.062 kB / 1.369 GB, free: 8.055 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.3995, allocations: 27.92 kB / 1.369 GB, free: 8.027 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.3998, allocations: 15.92 kB / 1.369 GB, free: 8.012 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/0.4015, allocations: 1.376 MB / 1.37 GB, free: 6.543 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.572e-05/0.4016, allocations: 67.33 kB / 1.37 GB, free: 6.457 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.365e-05/0.4017, allocations: 4 kB / 1.37 GB, free: 6.453 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.924e-05/0.4017, allocations: 15.44 kB / 1.37 GB, free: 6.438 MB / 1.061 GB Notification: Performance of SimCode: time 4.51e-07/0.4017, allocations: 0 / 1.37 GB, free: 6.438 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02916/0.4309, allocations: 2.316 MB / 1.373 GB, free: 4.254 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.91, allocations: 13.5 kB / 1.373 GB, free: 4.246 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sampler1.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv. Warning: Get data of variable sampler1.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.93895526183769]