Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 109 kB / 17.54 MB, free: 4.781 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 189.9 kB / 20.71 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 225.6 MB / 249.3 MB, free: 3.328 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.481/2.481, allocations: 476.7 MB / 0.7628 GB, free: 15.26 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 71.88 kB / 1.107 GB, free: 5.148 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7731/0.7749, allocations: 168.7 MB / 1.271 GB, free: 7.688 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001578/0.7765, allocations: 0.6865 MB / 1.272 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000967/0.7775, allocations: 1.059 MB / 1.273 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.461e-05/0.7775, allocations: 0.8125 kB / 1.273 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.45e-05/0.7775, allocations: 7.938 kB / 1.273 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.029e-05/0.7776, allocations: 9.469 kB / 1.273 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002223/0.7778, allocations: 38.8 kB / 1.273 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 8.503e-05/0.7779, allocations: 48.88 kB / 1.273 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.893e-05/0.778, allocations: 9.375 kB / 1.273 GB, free: 6.438 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.9e-05/0.778, allocations: 19 kB / 1.273 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.006e-05/0.7781, allocations: 23.69 kB / 1.273 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.7781, allocations: 4.031 kB / 1.273 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.05e-05/0.7781, allocations: 21.77 kB / 1.273 GB, free: 6.41 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.761e-05/0.7782, allocations: 8.641 kB / 1.273 GB, free: 6.406 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.7782, allocations: 23.38 kB / 1.273 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001256/0.7783, allocations: 59.23 kB / 1.273 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.7783, allocations: 0 / 1.273 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.392e-06/0.7783, allocations: 0 / 1.273 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.7783, allocations: 1.406 kB / 1.273 GB, free: 6.367 MB / 0.9981 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.0004718/0.7788, allocations: 365.6 kB / 1.274 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.7788, allocations: 9.844 kB / 1.274 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.3e-05/0.7789, allocations: 36.48 kB / 1.274 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.798e-05/0.7789, allocations: 4.594 kB / 1.274 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.556e-05/0.7789, allocations: 171.5 kB / 1.274 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.779, allocations: 5.25 kB / 1.274 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.779, allocations: 4.094 kB / 1.274 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001732/0.7791, allocations: 61.73 kB / 1.274 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.7792, allocations: 4.547 kB / 1.274 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.996e-06/0.7792, allocations: 0.9062 kB / 1.274 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.7792, allocations: 0.8125 kB / 1.274 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.7793, allocations: 46.38 kB / 1.274 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003103/0.7797, allocations: 281.7 kB / 1.274 GB, free: 5.402 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.7798, allocations: 50.72 kB / 1.274 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.8e-05/0.7799, allocations: 29.56 kB / 1.274 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.7799, allocations: 4 kB / 1.274 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001509/0.78, allocations: 74.83 kB / 1.274 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.78, allocations: 3.938 kB / 1.274 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0003646/0.7804, allocations: 127 kB / 1.275 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.09e-05/0.7804, allocations: 56.53 kB / 1.275 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.738e-05/0.7805, allocations: 107 kB / 1.275 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.735e-06/0.7805, allocations: 26.77 kB / 1.275 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.045e-05/0.7805, allocations: 86.2 kB / 1.275 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.341e-05/0.7805, allocations: 13.72 kB / 1.275 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.7806, allocations: 26.23 kB / 1.275 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.265e-05/0.7806, allocations: 319.7 kB / 1.275 GB, free: 4.598 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.975e-05/0.7807, allocations: 25.56 kB / 1.275 GB, free: 4.59 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.453e-05/0.7808, allocations: 55.98 kB / 1.275 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.7809, allocations: 79.16 kB / 1.275 GB, free: 4.496 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7809, allocations: 1.062 kB / 1.275 GB, free: 4.496 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002243/0.7812, allocations: 102.6 kB / 1.275 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.7812, allocations: 5.969 kB / 1.275 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.7812, allocations: 1.156 kB / 1.275 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.7812, allocations: 2 kB / 1.275 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.01e-05/0.7813, allocations: 13.31 kB / 1.275 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.7813, allocations: 6.406 kB / 1.275 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.91e-05/0.7814, allocations: 6.125 kB / 1.275 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.7814, allocations: 4.656 kB / 1.275 GB, free: 4.441 MB / 0.9981 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 4.635e-05/0.7814, allocations: 122.1 kB / 1.276 GB, free: 4.316 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.157e-05/0.7814, allocations: 5.516 kB / 1.276 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002385/0.7817, allocations: 101.5 kB / 1.276 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.7817, allocations: 0.8594 kB / 1.276 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.7817, allocations: 9.453 kB / 1.276 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.7817, allocations: 2.766 kB / 1.276 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003168/0.782, allocations: 362.5 kB / 1.276 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.782, allocations: 0 / 1.276 GB, free: 3.91 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.494e-05/0.782, allocations: 14.31 kB / 1.276 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.782, allocations: 0 / 1.276 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.7821, allocations: 1 kB / 1.276 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.7821, allocations: 4.938 kB / 1.276 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.7821, allocations: 0 / 1.276 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002298/0.7823, allocations: 200.5 kB / 1.276 GB, free: 3.746 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.489e-05/0.7823, allocations: 78.42 kB / 1.276 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.7823, allocations: 5.219 kB / 1.276 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.165e-05/0.7824, allocations: 8.766 kB / 1.276 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.7824, allocations: 14.33 kB / 1.276 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.7824, allocations: 1.75 kB / 1.276 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.228e-05/0.7825, allocations: 85.2 kB / 1.276 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.7825, allocations: 0 / 1.276 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002267/0.7827, allocations: 9.781 kB / 1.276 GB, free: 3.562 MB / 0.9981 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.0003909/0.7831, allocations: 0.7423 MB / 1.277 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002312/0.7833, allocations: 60.91 kB / 1.277 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.7833, allocations: 0.9375 kB / 1.277 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.7834, allocations: 32.81 kB / 1.277 GB, free: 2.852 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.7837, allocations: 16.14 kB / 1.277 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.7849, allocations: 1.373 MB / 1.279 GB, free: 17.57 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.7852, allocations: 0.6828 MB / 1.279 GB, free: 16.88 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.632e-05/0.7852, allocations: 3.141 kB / 1.279 GB, free: 16.88 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.246e-05/0.7852, allocations: 19.75 kB / 1.279 GB, free: 16.87 MB / 1.014 GB Notification: Performance of SimCode: time 3.41e-07/0.7852, allocations: 0 / 1.279 GB, free: 16.87 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/0.8073, allocations: 1.746 MB / 1.281 GB, free: 16.47 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.037/7.844, allocations: 5.422 kB / 1.281 GB, free: 16.47 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv. Warning: Get data of variable sampler1.u from file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 13.18459806899773]