Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.001688/0.001688, allocations: 97.11 kB / 19.7 MB, free: 2.129 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.002391/0.002391, allocations: 209.8 kB / 23 MB, free: 4.934 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.541/1.541, allocations: 230.6 MB / 256.8 MB, free: 7.777 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.382/3.382, allocations: 0.49 GB / 0.7959 GB, free: 35.69 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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [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.003091/0.003091, allocations: 66.86 kB / 1.155 GB, free: 25.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4483/0.4514, allocations: 176.1 MB / 1.327 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.00218/0.4536, allocations: 0.7415 MB / 1.328 GB, free: 156 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001589/0.4552, allocations: 1.093 MB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.203e-05/0.4553, allocations: 4 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.503e-05/0.4553, allocations: 7.875 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.646e-05/0.4554, allocations: 7.922 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003755/0.4558, allocations: 59.81 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001326/0.4559, allocations: 71.72 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.456, allocations: 16.17 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.956e-05/0.4561, allocations: 31.92 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.049e-05/0.4562, allocations: 35.83 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.4562, allocations: 8 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.842e-05/0.4563, allocations: 20 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.544e-05/0.4563, allocations: 11.92 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.481e-05/0.4563, allocations: 23.92 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.4565, allocations: 87.61 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4565, allocations: 0 / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.943e-06/0.4565, allocations: 0 / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.969e-06/0.4565, allocations: 0 / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005959/0.4571, allocations: 306.1 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.4572, allocations: 11.97 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.336e-05/0.4572, allocations: 8.891 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.4573, allocations: 114.4 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.4573, allocations: 8.375 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.4574, allocations: 4.375 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.4576, allocations: 70.16 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.4576, allocations: 3.938 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.4576, allocations: 4 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.4576, allocations: 4 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.4578, allocations: 43.89 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006818/0.4585, allocations: 260.3 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.4587, allocations: 54.58 kB / 1.33 GB, free: 13.69 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.4588, allocations: 28.97 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.4588, allocations: 8 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002532/0.4591, allocations: 71.38 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.964e-06/0.4591, allocations: 4 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.000464/0.4595, allocations: 129.6 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/0.4596, allocations: 59.34 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.4597, allocations: 121.8 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.4597, allocations: 25.7 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.624e-05/0.4598, allocations: 100.1 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.4598, allocations: 7.906 kB / 1.331 GB, free: 13.09 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.226e-05/0.4599, allocations: 33.7 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.46, allocations: 318.8 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.4601, allocations: 27.97 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.4603, allocations: 77.92 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.4605, allocations: 109.8 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4605, allocations: 0 / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003246/0.4609, allocations: 137.6 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.4609, allocations: 8 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.4609, allocations: 0 / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.4609, allocations: 4 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.461, allocations: 15.98 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.4611, allocations: 7.938 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.124e-05/0.4612, allocations: 11.92 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.4612, allocations: 8 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * 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.0001102/0.4613, allocations: 122.4 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.4613, allocations: 11.95 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.867e-05/0.4613, allocations: 16.36 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.4613, allocations: 0 / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4613, allocations: 0 / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.576e-05/0.4614, allocations: 7.953 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.4614, allocations: 3.938 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.764e-05/0.4614, allocations: 7.984 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.4615, allocations: 11.92 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000331/0.4618, allocations: 192.8 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003354/0.4621, allocations: 274.7 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001094/0.4623, allocations: 27.97 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.124e-05/0.4623, allocations: 87.28 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of Backend: time 6.21e-07/0.4623, allocations: 4 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005341/0.4628, allocations: 146.8 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of SimCode: time 0.000673/0.4635, allocations: 0.596 MB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of Templates: time 0.004534/0.4681, allocations: 1.204 MB / 1.334 GB, free: 9.52 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start [Calling sys.exit(0), Time elapsed: 9.562816761994327]