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.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.001291/0.001291, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001432/0.001432, allocations: 214.3 kB / 22.25 MB, free: 5.082 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.8/2.8, allocations: 476.8 MB / 0.7707 GB, free: 4.238 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.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: 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.002083/0.002083, allocations: 65.83 kB / 1.117 GB, free: 39.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3066, allocations: 170 MB / 1.283 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002062/0.3087, allocations: 0.6738 MB / 1.284 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001576/0.3103, allocations: 1.102 MB / 1.285 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.11e-05/0.3103, allocations: 8 kB / 1.285 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.502e-05/0.3104, allocations: 3.938 kB / 1.285 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.434e-05/0.3104, allocations: 3.938 kB / 1.285 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.3107, allocations: 47.83 kB / 1.285 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.3108, allocations: 43.91 kB / 1.285 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.484e-05/0.3109, allocations: 4 kB / 1.285 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.012e-05/0.311, allocations: 23.92 kB / 1.285 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.769e-05/0.311, allocations: 27.84 kB / 1.285 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/0.311, allocations: 4 kB / 1.285 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.783e-05/0.3111, allocations: 19.98 kB / 1.285 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.168e-05/0.3112, allocations: 15.92 kB / 1.285 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.966e-05/0.3112, allocations: 23.94 kB / 1.285 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.3113, allocations: 55.36 kB / 1.285 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.3114, allocations: 4 kB / 1.285 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.303e-06/0.3114, allocations: 3.938 kB / 1.285 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.3114, allocations: 0 / 1.285 GB, free: 9.512 MB / 0.9825 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.0006149/0.312, allocations: 290.2 kB / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.312, allocations: 12.03 kB / 1.286 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.917e-05/0.3121, allocations: 34.75 kB / 1.286 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.502e-05/0.3121, allocations: 8.891 kB / 1.286 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001153/0.3123, allocations: 114.4 kB / 1.286 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.3123, allocations: 8.375 kB / 1.286 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.3123, allocations: 384 / 1.286 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002061/0.3125, allocations: 62.23 kB / 1.286 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.3125, allocations: 3.938 kB / 1.286 GB, free: 8.918 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.3125, allocations: 3.984 kB / 1.286 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.3125, allocations: 4 kB / 1.286 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.3127, allocations: 51.88 kB / 1.286 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004817/0.3132, allocations: 247.9 kB / 1.286 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.3134, allocations: 58.48 kB / 1.286 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.95e-05/0.3135, allocations: 32.97 kB / 1.286 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.3135, allocations: 0 / 1.286 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002323/0.3137, allocations: 71.38 kB / 1.286 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.3137, allocations: 0 / 1.286 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004461/0.3142, allocations: 129.6 kB / 1.286 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.3142, allocations: 51.41 kB / 1.287 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.3143, allocations: 105.8 kB / 1.287 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.3143, allocations: 25.7 kB / 1.287 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.619e-05/0.3144, allocations: 88.09 kB / 1.287 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/0.3144, allocations: 15.89 kB / 1.287 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.947e-05/0.3145, allocations: 25.72 kB / 1.287 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3146, allocations: 318.8 kB / 1.287 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.654e-05/0.3147, allocations: 23.98 kB / 1.287 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.3148, allocations: 51.41 kB / 1.287 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.315, allocations: 83.33 kB / 1.287 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.315, allocations: 0 / 1.287 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002634/0.3153, allocations: 97.59 kB / 1.287 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.3153, allocations: 7.938 kB / 1.287 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.768e-06/0.3153, allocations: 3.938 kB / 1.287 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.3153, allocations: 7.984 kB / 1.287 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.3155, allocations: 16.08 kB / 1.287 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.3155, allocations: 0 / 1.287 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.197e-05/0.3155, allocations: 19.89 kB / 1.287 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.3155, allocations: 0 / 1.287 GB, free: 7.258 MB / 0.9825 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.0001006/0.3156, allocations: 121.8 kB / 1.287 GB, free: 7.129 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/0.3157, allocations: 4 kB / 1.287 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000294/0.3159, allocations: 106 kB / 1.288 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.316, allocations: 4 kB / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.316, allocations: 0 / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.316, allocations: 0 / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005185/0.3165, allocations: 326.1 kB / 1.288 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3165, allocations: 4 kB / 1.288 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.926e-05/0.3165, allocations: 8.062 kB / 1.288 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3165, allocations: 0 / 1.288 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.3166, allocations: 11.98 kB / 1.288 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3166, allocations: 0 / 1.288 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3166, allocations: 0 / 1.288 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002953/0.3168, allocations: 191.4 kB / 1.288 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.716e-05/0.3169, allocations: 11.94 kB / 1.288 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.3169, allocations: 3.938 kB / 1.288 GB, free: 6.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.317, allocations: 11.98 kB / 1.288 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.317, allocations: 15.88 kB / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.317, allocations: 0 / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.51e-05/0.3171, allocations: 83.27 kB / 1.288 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3171, allocations: 0 / 1.288 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002563/0.3174, allocations: 16 kB / 1.288 GB, free: 6.273 MB / 0.9825 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.0006762/0.318, allocations: 0.7242 MB / 1.289 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002733/0.3183, allocations: 67.88 kB / 1.289 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3183, allocations: 0 / 1.289 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.3184, allocations: 31.91 kB / 1.289 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.3187, allocations: 16.06 kB / 1.289 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.3205, allocations: 1.377 MB / 1.29 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.3208, allocations: 0.6845 MB / 1.291 GB, free: 3.223 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.468e-05/0.3208, allocations: 3.984 kB / 1.291 GB, free: 3.219 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.145e-05/0.3209, allocations: 15.44 kB / 1.291 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of SimCode: time 5.01e-07/0.3209, allocations: 0 / 1.291 GB, free: 3.207 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03007/0.3509, allocations: 1.881 MB / 1.293 GB, free: 1.461 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.38, allocations: 17.39 kB / 1.293 GB, free: 1.453 MB / 0.9825 GB " [Timeout remaining time 288] (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: 18.031744449999678]