Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001749/0.001749, 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.002432/0.002432, allocations: 215.5 kB / 22.26 MB, free: 5.078 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.508/1.508, allocations: 230.6 MB / 256 MB, free: 7.996 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 3.039/3.039, allocations: 476.7 MB / 0.7707 GB, free: 4.254 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.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_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.002035/0.002035, allocations: 65.62 kB / 1.117 GB, free: 39.78 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3497, allocations: 170 MB / 1.283 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002491/0.3522, allocations: 0.7595 MB / 1.284 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001821/0.354, allocations: 1.207 MB / 1.285 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.16e-05/0.3541, allocations: 0 / 1.285 GB, free: 9.598 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.662e-05/0.3541, allocations: 3.938 kB / 1.285 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001075/0.3542, allocations: 15.88 kB / 1.285 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005632/0.3548, allocations: 138.3 kB / 1.285 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002198/0.355, allocations: 135.7 kB / 1.286 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.3551, allocations: 12.19 kB / 1.286 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.3552, allocations: 59.83 kB / 1.286 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.3553, allocations: 47.81 kB / 1.286 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.537e-05/0.3553, allocations: 8 kB / 1.286 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.626e-05/0.3554, allocations: 27.98 kB / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.116e-05/0.3555, allocations: 27.91 kB / 1.286 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.219e-05/0.3555, allocations: 43.86 kB / 1.286 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.3558, allocations: 127.1 kB / 1.286 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3558, allocations: 0 / 1.286 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3558, allocations: 0 / 1.286 GB, free: 8.965 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.176e-05/0.3558, allocations: 0 / 1.286 GB, free: 8.965 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006438/0.3564, allocations: 343.7 kB / 1.286 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.3565, allocations: 8.031 kB / 1.286 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.386e-05/0.3565, allocations: 38.75 kB / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.3566, allocations: 20.88 kB / 1.286 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.3567, allocations: 118.4 kB / 1.286 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.928e-05/0.3568, allocations: 8.375 kB / 1.286 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/0.3568, allocations: 4.375 kB / 1.286 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.357, allocations: 77.91 kB / 1.287 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.357, allocations: 0 / 1.287 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.357, allocations: 4 kB / 1.287 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.3571, allocations: 7.922 kB / 1.287 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.3572, allocations: 51.95 kB / 1.287 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005727/0.3578, allocations: 311.7 kB / 1.287 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002129/0.358, allocations: 54.55 kB / 1.287 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.3581, allocations: 28.97 kB / 1.287 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.3582, allocations: 0 / 1.287 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002964/0.3585, allocations: 87.36 kB / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.392e-06/0.3585, allocations: 0 / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0005516/0.359, allocations: 157.6 kB / 1.287 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.3591, allocations: 63.41 kB / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.3592, allocations: 117.8 kB / 1.287 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.3592, allocations: 29.7 kB / 1.287 GB, free: 7.289 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.012e-05/0.3593, allocations: 99.97 kB / 1.287 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/0.3593, allocations: 19.86 kB / 1.287 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.86e-05/0.3594, allocations: 37.69 kB / 1.288 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.3596, allocations: 322.8 kB / 1.288 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.3597, allocations: 59.89 kB / 1.288 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.3599, allocations: 90.8 kB / 1.288 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.3602, allocations: 150.7 kB / 1.288 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3602, allocations: 0 / 1.288 GB, free: 6.465 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000475/0.3607, allocations: 211.3 kB / 1.288 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.848e-05/0.3608, allocations: 45.69 kB / 1.288 GB, free: 6.195 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3608, allocations: 0 / 1.288 GB, free: 6.195 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.3608, allocations: 4 kB / 1.288 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.3609, allocations: 15.98 kB / 1.288 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.3609, allocations: 4 kB / 1.288 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002071/0.3611, allocations: 35.95 kB / 1.288 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.3611, allocations: 11.94 kB / 1.288 GB, free: 6.125 MB / 0.9825 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.0001233/0.3612, allocations: 129.7 kB / 1.289 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.812e-05/0.3613, allocations: 11.89 kB / 1.289 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003111/0.3616, allocations: 122 kB / 1.289 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.3616, allocations: 0 / 1.289 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3616, allocations: 4 kB / 1.289 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.3616, allocations: 0 / 1.289 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000508/0.3621, allocations: 361.5 kB / 1.289 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.3621, allocations: 3.984 kB / 1.289 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.746e-05/0.3622, allocations: 4 kB / 1.289 GB, free: 5.434 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3622, allocations: 4 kB / 1.289 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.3622, allocations: 3.984 kB / 1.289 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.3622, allocations: 3.938 kB / 1.289 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3622, allocations: 0 / 1.289 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003757/0.3626, allocations: 215.4 kB / 1.289 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.092e-05/0.3626, allocations: 7.953 kB / 1.289 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.3626, allocations: 4 kB / 1.289 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.824e-05/0.3627, allocations: 11.92 kB / 1.289 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.944e-05/0.3627, allocations: 7.984 kB / 1.289 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/0.3627, allocations: 4 kB / 1.289 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001057/0.3628, allocations: 95.31 kB / 1.289 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3628, allocations: 4 kB / 1.289 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002714/0.3631, allocations: 24 kB / 1.289 GB, free: 5.039 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: 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.0007928/0.3639, allocations: 0.7552 MB / 1.29 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004151/0.3643, allocations: 167.3 kB / 1.29 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3643, allocations: 3.938 kB / 1.29 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.3644, allocations: 27.98 kB / 1.29 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.3647, allocations: 22.59 kB / 1.29 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002486/0.3672, allocations: 1.719 MB / 1.292 GB, free: 2.191 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.3676, allocations: 0.6923 MB / 1.293 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.842e-05/0.3676, allocations: 4 kB / 1.293 GB, free: 1.469 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.494e-05/0.3677, allocations: 23.42 kB / 1.293 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.3677, allocations: 4 kB / 1.293 GB, free: 1.441 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/0.3987, allocations: 2.702 MB / 1.295 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.32, allocations: 7.75 kB / 1.295 GB, free: 14.89 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_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_TriggeredSampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv. Warning: Get data of variable booPul.y from file Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.369497346999196]