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.001672/0.001672, 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.001834/0.001834, allocations: 214.2 kB / 22.24 MB, free: 5.262 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.781 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.901/2.901, allocations: 476 MB / 0.7699 GB, free: 4.754 MB / 0.6231 GB " [Timeout remaining time 176] 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.002176/0.002176, allocations: 67.17 kB / 1.117 GB, free: 40.99 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3249, allocations: 170 MB / 1.283 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002027/0.327, allocations: 0.6561 MB / 1.283 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.3284, allocations: 1.075 MB / 1.284 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.017e-05/0.3285, allocations: 0 / 1.284 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.088e-05/0.3285, allocations: 3.938 kB / 1.284 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.558e-05/0.3286, allocations: 3.938 kB / 1.284 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002899/0.3289, allocations: 47.83 kB / 1.284 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.981e-05/0.329, allocations: 51.91 kB / 1.284 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.3291, allocations: 7.516 kB / 1.284 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.385e-05/0.3292, allocations: 27.84 kB / 1.284 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.23e-05/0.3292, allocations: 19.91 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.3292, allocations: 4 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.713e-05/0.3293, allocations: 20 kB / 1.284 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.775e-05/0.3293, allocations: 15.92 kB / 1.284 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.425e-05/0.3294, allocations: 19.92 kB / 1.284 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.3295, allocations: 53.53 kB / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3295, allocations: 0 / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.402e-06/0.3295, allocations: 4 kB / 1.285 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.3295, allocations: 0 / 1.285 GB, free: 10.46 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.0005893/0.3301, allocations: 296.2 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3302, allocations: 11.97 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.843e-05/0.3302, allocations: 38.75 kB / 1.285 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.922e-05/0.3303, allocations: 12.83 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.3304, allocations: 114.5 kB / 1.285 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.3304, allocations: 4.375 kB / 1.285 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.3304, allocations: 384 / 1.285 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.3306, allocations: 74.2 kB / 1.285 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3306, allocations: 3.938 kB / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.3307, allocations: 0 / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.3307, allocations: 0 / 1.285 GB, free: 9.848 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001858/0.3308, allocations: 39.97 kB / 1.285 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004645/0.3313, allocations: 251.8 kB / 1.285 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.3315, allocations: 54.55 kB / 1.285 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.984e-05/0.3316, allocations: 32.97 kB / 1.285 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.3316, allocations: 0 / 1.285 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002094/0.3318, allocations: 71.38 kB / 1.285 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.3318, allocations: 0 / 1.285 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004167/0.3322, allocations: 121.6 kB / 1.286 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/0.3323, allocations: 55.41 kB / 1.286 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.3324, allocations: 105.8 kB / 1.286 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.3324, allocations: 29.7 kB / 1.286 GB, free: 9 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.9e-05/0.3325, allocations: 88.09 kB / 1.286 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.3325, allocations: 15.97 kB / 1.286 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.395e-05/0.3325, allocations: 25.7 kB / 1.286 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3327, allocations: 314.8 kB / 1.286 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.976e-05/0.3328, allocations: 27.97 kB / 1.286 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.3329, allocations: 51.41 kB / 1.286 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.3331, allocations: 79.34 kB / 1.286 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3331, allocations: 0 / 1.286 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002791/0.3334, allocations: 101.5 kB / 1.286 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.3334, allocations: 8 kB / 1.286 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3334, allocations: 4.094 kB / 1.286 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.3334, allocations: 0 / 1.286 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.3336, allocations: 15.98 kB / 1.286 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3336, allocations: 0.5 kB / 1.286 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.204e-05/0.3336, allocations: 19.94 kB / 1.286 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.3336, allocations: 0 / 1.286 GB, free: 8.215 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.0001113/0.3337, allocations: 121.7 kB / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.37e-05/0.3338, allocations: 7.938 kB / 1.287 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002948/0.3341, allocations: 114 kB / 1.287 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3341, allocations: 0 / 1.287 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3341, allocations: 0 / 1.287 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.3341, allocations: 7.922 kB / 1.287 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004721/0.3345, allocations: 317.5 kB / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3345, allocations: 0 / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.959e-05/0.3346, allocations: 7.984 kB / 1.287 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.3346, allocations: 4 kB / 1.287 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.3346, allocations: 4 kB / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3346, allocations: 0 / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3346, allocations: 0 / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003134/0.3349, allocations: 199.4 kB / 1.287 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.421e-05/0.3349, allocations: 7.938 kB / 1.287 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.335, allocations: 0 / 1.287 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.788e-05/0.3351, allocations: 15.92 kB / 1.287 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.055e-05/0.3351, allocations: 11.92 kB / 1.287 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.3351, allocations: 4 kB / 1.287 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.931e-05/0.3352, allocations: 83.28 kB / 1.287 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3352, allocations: 0 / 1.287 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000254/0.3354, allocations: 16 kB / 1.287 GB, free: 7.227 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.0006662/0.3361, allocations: 0.7245 MB / 1.288 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002533/0.3363, allocations: 63.89 kB / 1.288 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3363, allocations: 4.188 kB / 1.288 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.3365, allocations: 31.91 kB / 1.288 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.3367, allocations: 7.938 kB / 1.288 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.3384, allocations: 1.379 MB / 1.29 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.113e-05/0.3385, allocations: 67.34 kB / 1.29 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.969e-05/0.3385, allocations: 0 / 1.29 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.283e-05/0.3386, allocations: 19.44 kB / 1.29 GB, free: 4.789 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.3386, allocations: 0 / 1.29 GB, free: 4.789 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02922/0.3678, allocations: 2.325 MB / 1.292 GB, free: 2.609 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.75, allocations: 18.58 kB / 1.292 GB, free: 2.594 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.668323347344995]