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.00146/0.00146, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001505/0.001505, allocations: 214.9 kB / 22.24 MB, free: 4.859 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.569/1.569, allocations: 230.6 MB / 256 MB, free: 8.062 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.996/2.996, allocations: 475.9 MB / 0.7699 GB, free: 4.805 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [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.002177/0.002177, allocations: 76.23 kB / 1.117 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4358/0.438, allocations: 169.9 MB / 1.283 GB, free: 3.668 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00235/0.4403, allocations: 0.7391 MB / 1.284 GB, free: 2.93 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001814/0.4422, allocations: 1.184 MB / 1.285 GB, free: 1.734 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.658e-05/0.4422, allocations: 0 / 1.285 GB, free: 1.734 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.895e-05/0.4423, allocations: 11.88 kB / 1.285 GB, free: 1.723 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.462e-05/0.4424, allocations: 7.922 kB / 1.285 GB, free: 1.715 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005784/0.4429, allocations: 138.8 kB / 1.285 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.4432, allocations: 127.8 kB / 1.285 GB, free: 1.457 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.4433, allocations: 16.17 kB / 1.285 GB, free: 1.438 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.4435, allocations: 55.84 kB / 1.285 GB, free: 1.383 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.4436, allocations: 43.86 kB / 1.285 GB, free: 1.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.45e-05/0.4436, allocations: 12 kB / 1.285 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.438e-05/0.4437, allocations: 24 kB / 1.285 GB, free: 1.305 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.568e-05/0.4438, allocations: 15.92 kB / 1.285 GB, free: 1.289 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.29e-05/0.4438, allocations: 47.83 kB / 1.285 GB, free: 1.242 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.4441, allocations: 127.5 kB / 1.285 GB, free: 1.117 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.4441, allocations: 3.938 kB / 1.285 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.084e-06/0.4441, allocations: 0 / 1.285 GB, free: 1.113 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.4441, allocations: 4 kB / 1.285 GB, free: 1.109 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.0007276/0.4448, allocations: 339.8 kB / 1.286 GB, free: 0.7422 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.4449, allocations: 12.03 kB / 1.286 GB, free: 0.7305 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.445, allocations: 16.88 kB / 1.286 GB, free: 0.7148 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.4451, allocations: 118.4 kB / 1.286 GB, free: 0.5742 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.4452, allocations: 4.375 kB / 1.286 GB, free: 0.5703 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.687e-05/0.4452, allocations: 8.375 kB / 1.286 GB, free: 0.5625 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.4454, allocations: 74.16 kB / 1.286 GB, free: 496 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.4454, allocations: 3.938 kB / 1.286 GB, free: 492 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.4454, allocations: 0 / 1.286 GB, free: 492 kB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.4454, allocations: 7.984 kB / 1.286 GB, free: 484 kB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.4456, allocations: 47.95 kB / 1.286 GB, free: 436 kB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005317/0.4462, allocations: 268.3 kB / 1.286 GB, free: 136 kB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.4464, allocations: 54.55 kB / 1.286 GB, free: 72 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.944e-05/0.4465, allocations: 32.95 kB / 1.286 GB, free: 36 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.4465, allocations: 7.922 kB / 1.286 GB, free: 28 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002876/0.4468, allocations: 95.34 kB / 1.287 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.4468, allocations: 0 / 1.287 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.0004836/0.4473, allocations: 149.6 kB / 1.287 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/0.4473, allocations: 59.39 kB / 1.287 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.4474, allocations: 113.8 kB / 1.287 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.4475, allocations: 29.7 kB / 1.287 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.181e-05/0.4476, allocations: 112 kB / 1.287 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.323e-05/0.4476, allocations: 19.84 kB / 1.287 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.456e-05/0.4477, allocations: 37.7 kB / 1.287 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.4478, allocations: 322.8 kB / 1.287 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.448, allocations: 85.66 kB / 1.287 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002429/0.4482, allocations: 123.7 kB / 1.288 GB, free: 14.81 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002927/0.4485, allocations: 150.7 kB / 1.288 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.4485, allocations: 4 kB / 1.288 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004907/0.449, allocations: 244.8 kB / 1.288 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.95e-05/0.4491, allocations: 33.7 kB / 1.288 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.4491, allocations: 0 / 1.288 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.4491, allocations: 8.156 kB / 1.288 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.4492, allocations: 15.92 kB / 1.288 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.4492, allocations: 4 kB / 1.288 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.4494, allocations: 43.84 kB / 1.288 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.4495, allocations: 8 kB / 1.288 GB, free: 14.26 MB / 0.9981 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.0001161/0.4496, allocations: 125.8 kB / 1.288 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.393e-05/0.4496, allocations: 3.953 kB / 1.288 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003409/0.4499, allocations: 130 kB / 1.288 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.4499, allocations: 7.938 kB / 1.288 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4499, allocations: 0 / 1.288 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.4499, allocations: 3.984 kB / 1.288 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004505/0.4504, allocations: 318.1 kB / 1.289 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4504, allocations: 0 / 1.289 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.229e-05/0.4505, allocations: 7.984 kB / 1.289 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.4505, allocations: 8 kB / 1.289 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.4505, allocations: 0 / 1.289 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.4505, allocations: 0 / 1.289 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4505, allocations: 0 / 1.289 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003561/0.4508, allocations: 227.3 kB / 1.289 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.449e-05/0.4508, allocations: 7.953 kB / 1.289 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.4509, allocations: 4 kB / 1.289 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.022e-05/0.451, allocations: 11.98 kB / 1.289 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.161e-05/0.451, allocations: 4 kB / 1.289 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.451, allocations: 7.984 kB / 1.289 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.665e-05/0.4511, allocations: 91.22 kB / 1.289 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.4511, allocations: 0 / 1.289 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002809/0.4514, allocations: 31.98 kB / 1.289 GB, free: 13.22 MB / 0.9981 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.0001723/0.4515, allocations: 95.25 kB / 1.289 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004783/0.452, allocations: 193.2 kB / 1.289 GB, free: 12.91 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.452, allocations: 8 kB / 1.289 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.4521, allocations: 35.97 kB / 1.289 GB, free: 12.87 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.4524, allocations: 11.98 kB / 1.289 GB, free: 12.86 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004754/0.4529, allocations: 179.1 kB / 1.289 GB, free: 12.65 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.57e-05/0.453, allocations: 75.27 kB / 1.29 GB, free: 12.56 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.772e-05/0.453, allocations: 15.92 kB / 1.29 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.903e-05/0.4531, allocations: 11.44 kB / 1.29 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of SimCode: time 3.1e-07/0.4531, allocations: 0 / 1.29 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of Templates: time 0.005206/0.4583, allocations: 1.597 MB / 1.291 GB, free: 10.97 MB / 0.9981 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.54248272627592]