Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001328/0.001328, allocations: 110.4 kB / 18.94 MB, free: 2.953 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.001518/0.001518, allocations: 212.1 kB / 22.25 MB, free: 5.133 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.02 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.258/3.258, allocations: 0.505 GB / 0.8101 GB, free: 22.09 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.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.003052/0.003052, allocations: 71.77 kB / 1.177 GB, free: 17.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3979/0.4009, allocations: 180.2 MB / 1.353 GB, free: 8.496 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00214/0.4031, allocations: 0.7596 MB / 1.354 GB, free: 7.738 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00166/0.4047, allocations: 1.213 MB / 1.355 GB, free: 6.512 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.693e-05/0.4048, allocations: 0 / 1.355 GB, free: 6.512 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.716e-05/0.4048, allocations: 7.875 kB / 1.355 GB, free: 6.504 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.856e-05/0.4049, allocations: 7.875 kB / 1.355 GB, free: 6.496 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005593/0.4055, allocations: 148.9 kB / 1.355 GB, free: 6.355 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002212/0.4057, allocations: 127.7 kB / 1.355 GB, free: 6.23 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.4058, allocations: 20.17 kB / 1.355 GB, free: 6.207 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.811e-05/0.4059, allocations: 47.91 kB / 1.355 GB, free: 6.16 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.406, allocations: 51.81 kB / 1.355 GB, free: 6.109 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.682e-05/0.406, allocations: 12 kB / 1.355 GB, free: 6.098 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.61e-05/0.4061, allocations: 27.98 kB / 1.355 GB, free: 6.07 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.529e-05/0.4061, allocations: 15.97 kB / 1.355 GB, free: 6.055 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.264e-05/0.4062, allocations: 51.78 kB / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000232/0.4065, allocations: 135.8 kB / 1.355 GB, free: 5.871 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.4065, allocations: 0 / 1.355 GB, free: 5.871 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.984e-06/0.4065, allocations: 0 / 1.355 GB, free: 5.871 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.4065, allocations: 4 kB / 1.355 GB, free: 5.867 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006306/0.4071, allocations: 343.7 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.4071, allocations: 8.031 kB / 1.356 GB, free: 5.488 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.039e-05/0.4072, allocations: 38.73 kB / 1.356 GB, free: 5.441 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.322e-05/0.4073, allocations: 4.938 kB / 1.356 GB, free: 5.438 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.4074, allocations: 122.4 kB / 1.356 GB, free: 5.293 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.4074, allocations: 4.375 kB / 1.356 GB, free: 5.289 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.114e-05/0.4074, allocations: 8.375 kB / 1.356 GB, free: 5.281 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000213/0.4076, allocations: 89.89 kB / 1.356 GB, free: 5.188 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.4077, allocations: 0 / 1.356 GB, free: 5.188 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-06/0.4077, allocations: 0 / 1.356 GB, free: 5.188 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.4077, allocations: 3.938 kB / 1.356 GB, free: 5.184 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001854/0.4079, allocations: 47.95 kB / 1.356 GB, free: 5.137 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005216/0.4084, allocations: 315.7 kB / 1.356 GB, free: 4.785 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001725/0.4086, allocations: 54.55 kB / 1.356 GB, free: 4.723 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.4087, allocations: 36.95 kB / 1.356 GB, free: 4.684 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.4087, allocations: 0 / 1.356 GB, free: 4.684 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002697/0.4089, allocations: 95.39 kB / 1.357 GB, free: 4.578 MB / 1.045 GB Notification: Performance of pre-optimization done (n=8): time 1.273e-06/0.4089, allocations: 0 / 1.357 GB, free: 4.578 MB / 1.045 GB Notification: Performance of matching and sorting (n=8): time 0.0004377/0.4094, allocations: 149.6 kB / 1.357 GB, free: 4.426 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.4094, allocations: 51.41 kB / 1.357 GB, free: 4.363 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.4095, allocations: 129.7 kB / 1.357 GB, free: 4.227 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.4096, allocations: 33.7 kB / 1.357 GB, free: 4.188 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.774e-05/0.4096, allocations: 88.14 kB / 1.357 GB, free: 4.098 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.4097, allocations: 27.78 kB / 1.357 GB, free: 4.07 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.108e-05/0.4097, allocations: 37.7 kB / 1.357 GB, free: 4.027 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4099, allocations: 322.8 kB / 1.357 GB, free: 3.703 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.41, allocations: 51.97 kB / 1.357 GB, free: 3.652 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.4102, allocations: 97.05 kB / 1.357 GB, free: 3.539 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002861/0.4105, allocations: 142.8 kB / 1.358 GB, free: 3.375 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4105, allocations: 4 kB / 1.358 GB, free: 3.371 MB / 1.045 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004992/0.411, allocations: 215.1 kB / 1.358 GB, free: 3.148 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.042e-05/0.4111, allocations: 33.7 kB / 1.358 GB, free: 3.109 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.4111, allocations: 0 / 1.358 GB, free: 3.109 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.4111, allocations: 4 kB / 1.358 GB, free: 3.105 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.4112, allocations: 19.92 kB / 1.358 GB, free: 3.086 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.4112, allocations: 4.156 kB / 1.358 GB, free: 3.082 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.4114, allocations: 35.95 kB / 1.358 GB, free: 3.047 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.4114, allocations: 11.94 kB / 1.358 GB, free: 3.035 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001201/0.4115, allocations: 133.7 kB / 1.358 GB, free: 2.895 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.537e-05/0.4116, allocations: 7.938 kB / 1.358 GB, free: 2.887 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003107/0.4119, allocations: 129.9 kB / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.4119, allocations: 0 / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4119, allocations: 0 / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.4119, allocations: 4 kB / 1.358 GB, free: 2.75 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004614/0.4123, allocations: 345.5 kB / 1.359 GB, free: 2.363 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4123, allocations: 0 / 1.359 GB, free: 2.363 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.42e-05/0.4124, allocations: 15.92 kB / 1.359 GB, free: 2.348 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.4124, allocations: 4 kB / 1.359 GB, free: 2.344 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.4124, allocations: 8.047 kB / 1.359 GB, free: 2.336 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.4124, allocations: 3.938 kB / 1.359 GB, free: 2.332 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4124, allocations: 3.984 kB / 1.359 GB, free: 2.328 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003158/0.4127, allocations: 215.9 kB / 1.359 GB, free: 2.102 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.404e-05/0.4128, allocations: 7.953 kB / 1.359 GB, free: 2.094 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.4128, allocations: 0 / 1.359 GB, free: 2.094 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.801e-05/0.4129, allocations: 15.92 kB / 1.359 GB, free: 2.078 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/0.4129, allocations: 11.98 kB / 1.359 GB, free: 2.066 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.697e-06/0.4129, allocations: 4 kB / 1.359 GB, free: 2.062 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.927e-05/0.413, allocations: 91.27 kB / 1.359 GB, free: 1.973 MB / 1.045 GB Notification: Performance of sort global known variables: time 6.1e-08/0.413, allocations: 0 / 1.359 GB, free: 1.973 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002719/0.4133, allocations: 24 kB / 1.359 GB, free: 1.949 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006746/0.4139, allocations: 0.7519 MB / 1.36 GB, free: 1.172 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003925/0.4143, allocations: 159.3 kB / 1.36 GB, free: 1.004 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4143, allocations: 0 / 1.36 GB, free: 1.004 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.4145, allocations: 52.28 kB / 1.36 GB, free: 0.9531 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.4148, allocations: 17.42 kB / 1.36 GB, free: 0.9375 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.417, allocations: 1.705 MB / 1.362 GB, free: 15.11 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.4173, allocations: 0.7001 MB / 1.362 GB, free: 14.39 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.529e-05/0.4174, allocations: 7.984 kB / 1.362 GB, free: 14.38 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.561e-05/0.4174, allocations: 19.44 kB / 1.362 GB, free: 14.36 MB / 1.061 GB Notification: Performance of SimCode: time 3.71e-07/0.4174, allocations: 0 / 1.362 GB, free: 14.36 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.4474, allocations: 2.7 MB / 1.365 GB, free: 11.8 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.16, allocations: 11.95 kB / 1.365 GB, free: 11.8 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_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_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable booPul.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv. Warning: Get data of variable booPul.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.086046850000002]