Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001403/0.001403, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001618/0.001618, allocations: 212.2 kB / 22.24 MB, free: 5.242 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.476/1.476, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.188/3.188, allocations: 0.4892 GB / 0.7943 GB, free: 35.51 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_12_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.002098/0.002098, allocations: 70.95 kB / 1.153 GB, free: 25.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3669, allocations: 176.1 MB / 1.325 GB, free: 2.438 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001885/0.3688, allocations: 0.6784 MB / 1.326 GB, free: 1.766 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001436/0.3702, allocations: 1.073 MB / 1.327 GB, free: 0.6797 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.397e-05/0.3703, allocations: 4 kB / 1.327 GB, free: 0.6758 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.086e-05/0.3703, allocations: 7.938 kB / 1.327 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.042e-05/0.3704, allocations: 11.92 kB / 1.327 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002588/0.3706, allocations: 47.83 kB / 1.327 GB, free: 0.6094 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.3707, allocations: 47.84 kB / 1.327 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.021e-05/0.3708, allocations: 7.984 kB / 1.327 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 6.631e-05/0.3709, allocations: 16 kB / 1.327 GB, free: 0.5391 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.391e-05/0.3709, allocations: 23.91 kB / 1.327 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.371, allocations: 7.938 kB / 1.327 GB, free: 0.5078 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.187e-05/0.371, allocations: 15.98 kB / 1.327 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.192e-05/0.371, allocations: 11.98 kB / 1.327 GB, free: 492 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.12e-05/0.3711, allocations: 23.92 kB / 1.327 GB, free: 468 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.3712, allocations: 64 kB / 1.327 GB, free: 404 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3712, allocations: 0 / 1.327 GB, free: 404 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3712, allocations: 0 / 1.327 GB, free: 404 kB / 1.014 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.3712, allocations: 0 / 1.327 GB, free: 404 kB / 1.014 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.0005448/0.3718, allocations: 290.1 kB / 1.327 GB, free: 80 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3718, allocations: 8.031 kB / 1.327 GB, free: 72 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.084e-05/0.3718, allocations: 34.75 kB / 1.327 GB, free: 28 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.065e-05/0.3719, allocations: 16.88 kB / 1.327 GB, free: 12 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.372, allocations: 110.5 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.372, allocations: 384 / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.372, allocations: 4.375 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.3722, allocations: 66.16 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.649e-06/0.3722, allocations: 3.938 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.3723, allocations: 0 / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.3723, allocations: 7.938 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001833/0.3724, allocations: 39.95 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004172/0.3729, allocations: 255.9 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001663/0.373, allocations: 54.48 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.631e-05/0.3731, allocations: 24.97 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.3731, allocations: 4 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.3733, allocations: 71.38 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/0.3733, allocations: 0 / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004053/0.3737, allocations: 117.6 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.3738, allocations: 59.34 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.697e-05/0.3739, allocations: 109.8 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.3739, allocations: 29.7 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.374, allocations: 80.14 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.374, allocations: 15.91 kB / 1.328 GB, free: 14.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-05/0.374, allocations: 25.7 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3742, allocations: 314.8 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.3743, allocations: 31.97 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.3744, allocations: 51.41 kB / 1.329 GB, free: 14.4 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001976/0.3746, allocations: 71.34 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.3746, allocations: 7.984 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002616/0.3749, allocations: 97.59 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.3749, allocations: 4 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.3749, allocations: 4 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.3749, allocations: 0 / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.375, allocations: 23.86 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.375, allocations: 0 / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.095e-05/0.3751, allocations: 19.88 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.3751, allocations: 4.047 kB / 1.329 GB, free: 14.16 MB / 1.029 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.0001022/0.3752, allocations: 126.4 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.191e-05/0.3752, allocations: 3.984 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002882/0.3755, allocations: 106 kB / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.3755, allocations: 0 / 1.329 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.3755, allocations: 4.562 kB / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3755, allocations: 0 / 1.329 GB, free: 13.9 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004631/0.376, allocations: 317.6 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.376, allocations: 4 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.13e-05/0.376, allocations: 11.98 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.376, allocations: 3.938 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.376, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.376, allocations: 4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.376, allocations: 3.984 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003146/0.3763, allocations: 187.5 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.217e-05/0.3764, allocations: 11.89 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.3764, allocations: 0 / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.78e-05/0.3765, allocations: 11.98 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.169e-05/0.3765, allocations: 15.92 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.3765, allocations: 0 / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.965e-05/0.3766, allocations: 83.28 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3766, allocations: 0 / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002491/0.3768, allocations: 15.98 kB / 1.33 GB, free: 13.18 MB / 1.029 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.0006752/0.3775, allocations: 0.7242 MB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002626/0.3778, allocations: 67.89 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3778, allocations: 4 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.3779, allocations: 31.95 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.3781, allocations: 16.03 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.3798, allocations: 1.382 MB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.248e-05/0.3799, allocations: 71.23 kB / 1.332 GB, free: 10.75 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.18e-05/0.3799, allocations: 8 kB / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.132e-05/0.3799, allocations: 19.42 kB / 1.332 GB, free: 10.72 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.3799, allocations: 0 / 1.332 GB, free: 10.72 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02926/0.4092, allocations: 2.293 MB / 1.334 GB, free: 8.562 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.82, allocations: 8.438 kB / 1.334 GB, free: 8.559 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv. Warning: Get data of variable sampler1.u from file Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.7055204953067]