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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001952/0.001952, allocations: 114.2 kB / 18.94 MB, free: 2.93 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002385/0.002385, allocations: 189 kB / 22.22 MB, free: 5.105 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.401/3.401, allocations: 0.4893 GB / 0.7884 GB, free: 33.14 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 60.41 kB / 1.145 GB, free: 30.7 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.4266, allocations: 174.9 MB / 1.316 GB, free: 9.742 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.003017/0.4297, allocations: 0.7557 MB / 1.317 GB, free: 8.988 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.002305/0.432, allocations: 1.084 MB / 1.318 GB, free: 7.891 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.4321, allocations: 4 kB / 1.318 GB, free: 7.887 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 4.719e-05/0.4321, allocations: 3.938 kB / 1.318 GB, free: 7.883 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.4323, allocations: 15.81 kB / 1.318 GB, free: 7.867 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0005463/0.4328, allocations: 55.81 kB / 1.318 GB, free: 7.812 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002144/0.433, allocations: 67.84 kB / 1.318 GB, free: 7.746 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.4332, allocations: 16.17 kB / 1.318 GB, free: 7.727 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.4333, allocations: 31.91 kB / 1.318 GB, free: 7.695 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 8.63e-05/0.4334, allocations: 27.86 kB / 1.318 GB, free: 7.668 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.4334, allocations: 8 kB / 1.318 GB, free: 7.66 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 8.702e-05/0.4335, allocations: 19.98 kB / 1.318 GB, free: 7.641 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 3.94e-05/0.4336, allocations: 19.91 kB / 1.318 GB, free: 7.621 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 6.093e-05/0.4336, allocations: 31.8 kB / 1.318 GB, free: 7.59 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002517/0.4339, allocations: 87.56 kB / 1.318 GB, free: 7.504 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.4339, allocations: 0 / 1.318 GB, free: 7.504 MB / 1.014 GB
Notification: Performance of FrontEnd: time 2.474e-06/0.4339, allocations: 0 / 1.318 GB, free: 7.504 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 9.909e-06/0.4339, allocations: 0 / 1.318 GB, free: 7.504 MB / 1.014 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.0007441/0.4346, allocations: 314.1 kB / 1.319 GB, free: 7.168 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 6.112e-05/0.4347, allocations: 8.031 kB / 1.319 GB, free: 7.16 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.008e-05/0.4348, allocations: 12.83 kB / 1.319 GB, free: 7.148 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.4349, allocations: 110.5 kB / 1.319 GB, free: 7.016 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.4349, allocations: 4.375 kB / 1.319 GB, free: 7.012 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.435, allocations: 8.375 kB / 1.319 GB, free: 7.004 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.4353, allocations: 70.16 kB / 1.319 GB, free: 6.93 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.4353, allocations: 7.938 kB / 1.319 GB, free: 6.922 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.4353, allocations: 0 / 1.319 GB, free: 6.922 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.4353, allocations: 0 / 1.319 GB, free: 6.922 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.4355, allocations: 43.95 kB / 1.319 GB, free: 6.879 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007764/0.4363, allocations: 295.7 kB / 1.319 GB, free: 6.547 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.4365, allocations: 58.53 kB / 1.319 GB, free: 6.48 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.4366, allocations: 32.95 kB / 1.319 GB, free: 6.445 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.4366, allocations: 3.984 kB / 1.319 GB, free: 6.441 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002641/0.4369, allocations: 75.38 kB / 1.319 GB, free: 6.355 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.4369, allocations: 4 kB / 1.319 GB, free: 6.352 MB / 1.014 GB
Notification: Performance of matching and sorting (n=7): time 0.0004793/0.4374, allocations: 125.6 kB / 1.319 GB, free: 6.223 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.4374, allocations: 59.39 kB / 1.319 GB, free: 6.152 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.4376, allocations: 121.8 kB / 1.319 GB, free: 6.023 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.4376, allocations: 29.7 kB / 1.32 GB, free: 5.988 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 7.436e-05/0.4377, allocations: 96.08 kB / 1.32 GB, free: 5.891 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 3.056e-05/0.4377, allocations: 15.89 kB / 1.32 GB, free: 5.875 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.732e-05/0.4378, allocations: 29.7 kB / 1.32 GB, free: 5.84 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001904/0.438, allocations: 322.8 kB / 1.32 GB, free: 5.516 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.4381, allocations: 31.97 kB / 1.32 GB, free: 5.484 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.4383, allocations: 73.92 kB / 1.32 GB, free: 5.391 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.4385, allocations: 113.8 kB / 1.32 GB, free: 5.258 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.4385, allocations: 4 kB / 1.32 GB, free: 5.254 MB / 1.014 GB
Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003579/0.4389, allocations: 125.5 kB / 1.32 GB, free: 5.125 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.4389, allocations: 7.938 kB / 1.32 GB, free: 5.117 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.4389, allocations: 0 / 1.32 GB, free: 5.117 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.4389, allocations: 4.219 kB / 1.32 GB, free: 5.113 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.4391, allocations: 27.91 kB / 1.32 GB, free: 5.086 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.4391, allocations: 4 kB / 1.32 GB, free: 5.082 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.641e-05/0.4392, allocations: 11.94 kB / 1.32 GB, free: 5.07 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.4392, allocations: 7.984 kB / 1.32 GB, free: 5.062 MB / 1.014 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.0001374/0.4393, allocations: 128.3 kB / 1.32 GB, free: 4.93 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.041e-05/0.4394, allocations: 3.953 kB / 1.32 GB, free: 4.926 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.068e-05/0.4394, allocations: 16.38 kB / 1.321 GB, free: 4.906 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.4394, allocations: 4 kB / 1.321 GB, free: 4.902 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.4394, allocations: 0 / 1.321 GB, free: 4.902 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4394, allocations: 0 / 1.321 GB, free: 4.902 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006058/0.44, allocations: 337.6 kB / 1.321 GB, free: 4.523 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.44, allocations: 0 / 1.321 GB, free: 4.523 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.422e-05/0.4401, allocations: 11.92 kB / 1.321 GB, free: 4.512 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.4401, allocations: 0 / 1.321 GB, free: 4.512 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.4401, allocations: 8 kB / 1.321 GB, free: 4.504 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.4401, allocations: 7.938 kB / 1.321 GB, free: 4.496 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4401, allocations: 400 / 1.321 GB, free: 4.496 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003618/0.4405, allocations: 203.4 kB / 1.321 GB, free: 4.281 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.322e-05/0.4405, allocations: 11.89 kB / 1.321 GB, free: 4.27 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.4405, allocations: 0 / 1.321 GB, free: 4.27 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.253e-05/0.4406, allocations: 11.92 kB / 1.321 GB, free: 4.258 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/0.4407, allocations: 12 kB / 1.321 GB, free: 4.246 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.4407, allocations: 0 / 1.321 GB, free: 4.246 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 7.21e-05/0.4408, allocations: 95.27 kB / 1.321 GB, free: 4.152 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.4408, allocations: 0 / 1.321 GB, free: 4.152 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002713/0.441, allocations: 19.88 kB / 1.321 GB, free: 4.133 MB / 1.014 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.0001923/0.4412, allocations: 103.8 kB / 1.321 GB, free: 4.023 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003363/0.4416, allocations: 79.94 kB / 1.321 GB, free: 3.945 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4416, allocations: 0 / 1.321 GB, free: 3.945 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.4417, allocations: 27.98 kB / 1.321 GB, free: 3.918 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.442, allocations: 11.98 kB / 1.321 GB, free: 3.906 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004595/0.4425, allocations: 168.4 kB / 1.322 GB, free: 3.715 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.4428, allocations: 0.6927 MB / 1.322 GB, free: 2.996 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.902e-05/0.4428, allocations: 4 kB / 1.322 GB, free: 2.992 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.734e-05/0.4429, allocations: 15.44 kB / 1.322 GB, free: 2.977 MB / 1.014 GB
Notification: Performance of SimCode: time 5.31e-07/0.4429, allocations: 3.938 kB / 1.322 GB, free: 2.973 MB / 1.014 GB
Notification: Performance of Templates: time 0.004402/0.4473, allocations: 0.9952 MB / 1.323 GB, free: 1.984 MB / 1.014 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: 10.011866682209074]