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.001443/0.001443, 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.001612/0.001612, allocations: 216.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.482/1.482, allocations: 230.6 MB / 256 MB, free: 8.023 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.232/3.232, allocations: 0.505 GB / 0.8101 GB, free: 22.06 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.002828/0.002828, allocations: 70.98 kB / 1.177 GB, free: 17.06 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3535, allocations: 180.2 MB / 1.353 GB, free: 8.508 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002084/0.3556, allocations: 0.6736 MB / 1.354 GB, free: 7.836 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001818/0.3574, allocations: 1.108 MB / 1.355 GB, free: 6.715 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.247e-05/0.3574, allocations: 0 / 1.355 GB, free: 6.715 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.03e-05/0.3575, allocations: 4 kB / 1.355 GB, free: 6.711 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.734e-05/0.3575, allocations: 11.88 kB / 1.355 GB, free: 6.699 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002835/0.3578, allocations: 35.89 kB / 1.355 GB, free: 6.664 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.3579, allocations: 51.84 kB / 1.355 GB, free: 6.613 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.327e-05/0.358, allocations: 8 kB / 1.355 GB, free: 6.605 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.391e-05/0.3581, allocations: 19.92 kB / 1.355 GB, free: 6.586 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.941e-05/0.3582, allocations: 23.91 kB / 1.355 GB, free: 6.562 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.3583, allocations: 4 kB / 1.355 GB, free: 6.559 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.842e-05/0.3584, allocations: 31.91 kB / 1.355 GB, free: 6.527 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.677e-05/0.3584, allocations: 4 kB / 1.355 GB, free: 6.523 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.811e-05/0.3584, allocations: 23.86 kB / 1.355 GB, free: 6.5 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.3586, allocations: 60.06 kB / 1.355 GB, free: 6.441 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3586, allocations: 3.938 kB / 1.355 GB, free: 6.438 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.442e-06/0.3586, allocations: 4 kB / 1.355 GB, free: 6.434 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.3586, allocations: 0 / 1.355 GB, free: 6.434 MB / 1.045 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.0005926/0.3592, allocations: 290.2 kB / 1.355 GB, free: 6.117 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.3592, allocations: 8.031 kB / 1.355 GB, free: 6.109 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.913e-05/0.3593, allocations: 42.73 kB / 1.355 GB, free: 6.059 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.897e-05/0.3593, allocations: 8.938 kB / 1.355 GB, free: 6.051 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.3595, allocations: 118.4 kB / 1.355 GB, free: 5.91 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.3595, allocations: 8.312 kB / 1.355 GB, free: 5.902 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.3595, allocations: 384 / 1.355 GB, free: 5.902 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002042/0.3597, allocations: 66.22 kB / 1.355 GB, free: 5.832 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.3597, allocations: 3.938 kB / 1.355 GB, free: 5.828 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.3597, allocations: 0 / 1.355 GB, free: 5.828 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.3597, allocations: 0 / 1.355 GB, free: 5.828 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.3599, allocations: 51.89 kB / 1.355 GB, free: 5.777 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000462/0.3604, allocations: 243.9 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001733/0.3605, allocations: 50.55 kB / 1.356 GB, free: 5.438 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.951e-05/0.3606, allocations: 32.95 kB / 1.356 GB, free: 5.402 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.3607, allocations: 4 kB / 1.356 GB, free: 5.398 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.3609, allocations: 75.31 kB / 1.356 GB, free: 5.312 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.3609, allocations: 0 / 1.356 GB, free: 5.312 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004099/0.3613, allocations: 117.6 kB / 1.356 GB, free: 5.191 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/0.3614, allocations: 59.39 kB / 1.356 GB, free: 5.121 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.195e-05/0.3615, allocations: 101.9 kB / 1.356 GB, free: 5.012 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.3615, allocations: 29.7 kB / 1.356 GB, free: 4.977 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.424e-05/0.3615, allocations: 84.12 kB / 1.356 GB, free: 4.891 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.3616, allocations: 15.91 kB / 1.356 GB, free: 4.875 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.51e-05/0.3616, allocations: 25.7 kB / 1.356 GB, free: 4.844 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3617, allocations: 318.8 kB / 1.357 GB, free: 4.523 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.616e-05/0.3618, allocations: 27.92 kB / 1.357 GB, free: 4.496 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.362, allocations: 47.41 kB / 1.357 GB, free: 4.438 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.3621, allocations: 83.33 kB / 1.357 GB, free: 4.344 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3621, allocations: 0 / 1.357 GB, free: 4.344 MB / 1.045 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002553/0.3624, allocations: 105.5 kB / 1.357 GB, free: 4.234 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.3624, allocations: 4 kB / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.3624, allocations: 0 / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.3624, allocations: 4 kB / 1.357 GB, free: 4.227 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.3625, allocations: 15.98 kB / 1.357 GB, free: 4.211 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.3626, allocations: 8.031 kB / 1.357 GB, free: 4.203 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.038e-05/0.3626, allocations: 19.86 kB / 1.357 GB, free: 4.184 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.3626, allocations: 0.5 kB / 1.357 GB, free: 4.184 MB / 1.045 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.3627, allocations: 121.7 kB / 1.357 GB, free: 4.055 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.331e-05/0.3628, allocations: 4 kB / 1.357 GB, free: 4.051 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004004/0.3632, allocations: 106 kB / 1.357 GB, free: 3.941 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3632, allocations: 7.938 kB / 1.357 GB, free: 3.934 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3632, allocations: 4 kB / 1.357 GB, free: 3.93 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3632, allocations: 0 / 1.357 GB, free: 3.93 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005051/0.3637, allocations: 325.6 kB / 1.357 GB, free: 3.562 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.3637, allocations: 4 kB / 1.357 GB, free: 3.559 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.964e-05/0.3637, allocations: 8.031 kB / 1.357 GB, free: 3.551 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3637, allocations: 3.984 kB / 1.357 GB, free: 3.547 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.3638, allocations: 4 kB / 1.357 GB, free: 3.543 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3638, allocations: 0 / 1.357 GB, free: 3.543 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3638, allocations: 4 kB / 1.357 GB, free: 3.539 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.364, allocations: 195.4 kB / 1.358 GB, free: 3.332 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.242e-05/0.3641, allocations: 7.953 kB / 1.358 GB, free: 3.324 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.3641, allocations: 0 / 1.358 GB, free: 3.324 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.97e-05/0.3642, allocations: 11.98 kB / 1.358 GB, free: 3.312 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.024e-05/0.3642, allocations: 15.92 kB / 1.358 GB, free: 3.297 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.3642, allocations: 0 / 1.358 GB, free: 3.297 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.869e-05/0.3643, allocations: 83.28 kB / 1.358 GB, free: 3.215 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3643, allocations: 0 / 1.358 GB, free: 3.215 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002439/0.3645, allocations: 12 kB / 1.358 GB, free: 3.203 MB / 1.045 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.0006782/0.3652, allocations: 0.7321 MB / 1.358 GB, free: 2.445 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002595/0.3655, allocations: 63.89 kB / 1.358 GB, free: 2.383 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3655, allocations: 0 / 1.358 GB, free: 2.383 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.3656, allocations: 32.05 kB / 1.359 GB, free: 2.352 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.3658, allocations: 24.05 kB / 1.359 GB, free: 2.328 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/0.3677, allocations: 1.383 MB / 1.36 GB, free: 0.8477 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.3682, allocations: 0.6845 MB / 1.361 GB, free: 140 kB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.882e-05/0.3683, allocations: 4 kB / 1.361 GB, free: 136 kB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.305e-05/0.3683, allocations: 15.44 kB / 1.361 GB, free: 120 kB / 1.045 GB Notification: Performance of SimCode: time 6.81e-07/0.3683, allocations: 0 / 1.361 GB, free: 120 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02891/0.3972, allocations: 1.871 MB / 1.362 GB, free: 14.38 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.28, allocations: 17.34 kB / 1.362 GB, free: 14.37 MB / 1.061 GB " [Timeout remaining time 289] (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.085679321000043]