Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001872/0.001872, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.00266/0.00266, allocations: 209.7 kB / 22.24 MB, free: 5.262 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.621/1.621, allocations: 230.6 MB / 256 MB, free: 7.777 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.528/3.528, allocations: 0.5107 GB / 0.8158 GB, free: 17.78 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: 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_latest_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_latest_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.002414/0.002414, allocations: 64.83 kB / 1.186 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4525/0.4549, allocations: 181.9 MB / 1.364 GB, free: 13.51 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002824/0.4577, allocations: 0.7284 MB / 1.365 GB, free: 12.77 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002058/0.4598, allocations: 1.094 MB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.405e-05/0.4599, allocations: 0 / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.116e-05/0.4599, allocations: 3.938 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001158/0.46, allocations: 7.875 kB / 1.366 GB, free: 11.66 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004838/0.4605, allocations: 67.75 kB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.4607, allocations: 67.83 kB / 1.366 GB, free: 11.52 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.4608, allocations: 12.17 kB / 1.366 GB, free: 11.51 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.4609, allocations: 27.92 kB / 1.366 GB, free: 11.48 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.214e-05/0.461, allocations: 31.84 kB / 1.366 GB, free: 11.45 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.461, allocations: 8 kB / 1.366 GB, free: 11.44 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.223e-05/0.4611, allocations: 15.98 kB / 1.366 GB, free: 11.43 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.843e-05/0.4612, allocations: 19.92 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.245e-05/0.4612, allocations: 23.86 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.4614, allocations: 83.56 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.4614, allocations: 4 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.824e-06/0.4614, allocations: 0 / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.462e-05/0.4614, allocations: 4 kB / 1.366 GB, free: 11.29 MB / 1.061 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.0006952/0.4621, allocations: 303.5 kB / 1.366 GB, free: 10.97 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.4622, allocations: 12.03 kB / 1.366 GB, free: 10.96 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.421e-05/0.4622, allocations: 8.891 kB / 1.366 GB, free: 10.95 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.4624, allocations: 114.4 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.4624, allocations: 384 / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.4625, allocations: 8.375 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002778/0.4627, allocations: 82.08 kB / 1.367 GB, free: 10.72 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.4628, allocations: 3.938 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.4628, allocations: 0 / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.4628, allocations: 4 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/0.463, allocations: 43.95 kB / 1.367 GB, free: 10.67 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000737/0.4637, allocations: 264.3 kB / 1.367 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.4639, allocations: 54.55 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.464, allocations: 28.97 kB / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.4641, allocations: 0 / 1.367 GB, free: 10.29 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003017/0.4644, allocations: 79.41 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.4644, allocations: 0 / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004951/0.4649, allocations: 129.6 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.717e-05/0.4649, allocations: 55.41 kB / 1.367 GB, free: 9.996 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.4651, allocations: 129.8 kB / 1.367 GB, free: 9.859 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.4651, allocations: 25.7 kB / 1.367 GB, free: 9.828 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.4652, allocations: 96.08 kB / 1.367 GB, free: 9.73 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.4653, allocations: 15.91 kB / 1.367 GB, free: 9.715 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.671e-05/0.4653, allocations: 29.7 kB / 1.367 GB, free: 9.68 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001914/0.4655, allocations: 322.8 kB / 1.368 GB, free: 9.355 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.4656, allocations: 31.97 kB / 1.368 GB, free: 9.324 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.4658, allocations: 73.92 kB / 1.368 GB, free: 9.23 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002564/0.466, allocations: 109.9 kB / 1.368 GB, free: 9.102 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.4661, allocations: 4 kB / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003903/0.4664, allocations: 125.5 kB / 1.368 GB, free: 8.969 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.4665, allocations: 7.938 kB / 1.368 GB, free: 8.961 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.4665, allocations: 4 kB / 1.368 GB, free: 8.957 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.667e-05/0.4665, allocations: 0 / 1.368 GB, free: 8.957 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.4667, allocations: 19.98 kB / 1.368 GB, free: 8.938 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.4667, allocations: 4 kB / 1.368 GB, free: 8.934 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.4668, allocations: 20.09 kB / 1.368 GB, free: 8.914 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.4668, allocations: 8 kB / 1.368 GB, free: 8.906 MB / 1.061 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.0001565/0.467, allocations: 125 kB / 1.368 GB, free: 8.777 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.69e-05/0.467, allocations: 15.94 kB / 1.368 GB, free: 8.762 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.947e-05/0.4671, allocations: 4.375 kB / 1.368 GB, free: 8.754 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.4671, allocations: 0 / 1.368 GB, free: 8.754 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.4671, allocations: 0 / 1.368 GB, free: 8.754 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.4671, allocations: 4 kB / 1.368 GB, free: 8.75 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005583/0.4676, allocations: 322.4 kB / 1.369 GB, free: 8.398 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4676, allocations: 0 / 1.369 GB, free: 8.398 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.114e-05/0.4677, allocations: 15.92 kB / 1.369 GB, free: 8.383 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.4677, allocations: 0 / 1.369 GB, free: 8.383 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.4677, allocations: 3.938 kB / 1.369 GB, free: 8.379 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.4677, allocations: 0 / 1.369 GB, free: 8.379 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4677, allocations: 0 / 1.369 GB, free: 8.379 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/0.468, allocations: 203.4 kB / 1.369 GB, free: 8.164 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.191e-05/0.4681, allocations: 15.89 kB / 1.369 GB, free: 8.148 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.4681, allocations: 4 kB / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.675e-05/0.4682, allocations: 7.984 kB / 1.369 GB, free: 8.137 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.4682, allocations: 7.938 kB / 1.369 GB, free: 8.129 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.4682, allocations: 7.922 kB / 1.369 GB, free: 8.121 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.801e-05/0.4683, allocations: 91.28 kB / 1.369 GB, free: 8.031 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.4683, allocations: 4 kB / 1.369 GB, free: 8.027 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002776/0.4686, allocations: 15.98 kB / 1.369 GB, free: 8.012 MB / 1.061 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001902/0.4688, allocations: 97.5 kB / 1.369 GB, free: 7.91 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003233/0.4691, allocations: 79.88 kB / 1.369 GB, free: 7.832 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.4691, allocations: 4 kB / 1.369 GB, free: 7.828 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.4692, allocations: 35.91 kB / 1.369 GB, free: 7.793 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.4695, allocations: 7.984 kB / 1.369 GB, free: 7.785 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004623/0.47, allocations: 158.1 kB / 1.369 GB, free: 7.602 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.084e-05/0.4701, allocations: 83.69 kB / 1.369 GB, free: 7.5 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.144e-05/0.4701, allocations: 4 kB / 1.369 GB, free: 7.496 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.538e-05/0.4702, allocations: 11.44 kB / 1.369 GB, free: 7.484 MB / 1.061 GB Notification: Performance of SimCode: time 4.41e-07/0.4702, allocations: 0 / 1.369 GB, free: 7.484 MB / 1.061 GB Notification: Performance of Templates: time 0.004777/0.4749, allocations: 1.063 MB / 1.37 GB, free: 6.449 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.892981858924031]