Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001943/0.001943, allocations: 110 kB / 18.93 MB, free: 2.945 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.002606/0.002606, allocations: 186.8 kB / 22.23 MB, free: 5.16 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.612/1.612, allocations: 225.6 MB / 251 MB, free: 13 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.443/3.443, allocations: 0.4893 GB / 0.7884 GB, free: 33.13 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.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler")
translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 62.75 kB / 1.145 GB, free: 30.68 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4304/0.4324, allocations: 174.9 MB / 1.316 GB, free: 9.695 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002568/0.435, allocations: 0.6697 MB / 1.317 GB, free: 9.027 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.002172/0.4371, allocations: 1.058 MB / 1.318 GB, free: 7.957 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.4373, allocations: 3.938 kB / 1.318 GB, free: 7.953 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 5.953e-05/0.4373, allocations: 3.984 kB / 1.318 GB, free: 7.949 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.4374, allocations: 7.938 kB / 1.318 GB, free: 7.941 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.4379, allocations: 43.83 kB / 1.318 GB, free: 7.898 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001383/0.438, allocations: 51.8 kB / 1.318 GB, free: 7.848 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.4381, allocations: 7.984 kB / 1.318 GB, free: 7.84 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 8.747e-05/0.4382, allocations: 19.92 kB / 1.318 GB, free: 7.82 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 7.672e-05/0.4383, allocations: 23.91 kB / 1.318 GB, free: 7.797 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.249e-05/0.4383, allocations: 4 kB / 1.318 GB, free: 7.793 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 8.614e-05/0.4384, allocations: 19.98 kB / 1.318 GB, free: 7.773 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 3.081e-05/0.4384, allocations: 7.984 kB / 1.318 GB, free: 7.766 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 4.821e-05/0.4385, allocations: 19.88 kB / 1.318 GB, free: 7.746 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001918/0.4387, allocations: 63.78 kB / 1.318 GB, free: 7.684 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.4387, allocations: 0 / 1.318 GB, free: 7.684 MB / 1.014 GB
Notification: Performance of FrontEnd: time 2.295e-06/0.4387, allocations: 0 / 1.318 GB, free: 7.684 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 7.524e-06/0.4387, allocations: 0 / 1.318 GB, free: 7.684 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: 7
 * Number of variables: 7
Notification: Performance of Generate backend data structure: time 0.0008089/0.4395, allocations: 290.2 kB / 1.318 GB, free: 7.367 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.4396, allocations: 12.03 kB / 1.318 GB, free: 7.355 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.325e-05/0.4396, allocations: 8.891 kB / 1.318 GB, free: 7.348 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.4398, allocations: 114.5 kB / 1.318 GB, free: 7.211 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.4398, allocations: 384 / 1.318 GB, free: 7.211 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.113e-05/0.4398, allocations: 8.312 kB / 1.318 GB, free: 7.203 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.44, allocations: 66.22 kB / 1.318 GB, free: 7.133 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.4401, allocations: 4.188 kB / 1.318 GB, free: 7.129 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.4401, allocations: 3.938 kB / 1.318 GB, free: 7.125 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.4401, allocations: 0 / 1.318 GB, free: 7.125 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.4403, allocations: 43.95 kB / 1.318 GB, free: 7.082 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005676/0.4409, allocations: 251.9 kB / 1.319 GB, free: 6.793 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.4411, allocations: 54.48 kB / 1.319 GB, free: 6.73 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.4412, allocations: 36.88 kB / 1.319 GB, free: 6.691 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.4412, allocations: 4 kB / 1.319 GB, free: 6.688 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.4414, allocations: 75.34 kB / 1.319 GB, free: 6.602 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=6): time 1.603e-06/0.4414, allocations: 0 / 1.319 GB, free: 6.602 MB / 1.014 GB
Notification: Performance of matching and sorting (n=6): time 0.0004679/0.4419, allocations: 117.6 kB / 1.319 GB, free: 6.48 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.228e-05/0.442, allocations: 55.41 kB / 1.319 GB, free: 6.414 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.4421, allocations: 105.8 kB / 1.319 GB, free: 6.301 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.4421, allocations: 33.7 kB / 1.319 GB, free: 6.262 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 5.936e-05/0.4422, allocations: 88.06 kB / 1.319 GB, free: 6.172 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.453e-05/0.4422, allocations: 15.91 kB / 1.319 GB, free: 6.156 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.561e-05/0.4422, allocations: 17.72 kB / 1.319 GB, free: 6.133 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001457/0.4424, allocations: 322.8 kB / 1.32 GB, free: 5.809 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.4425, allocations: 19.98 kB / 1.32 GB, free: 5.789 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.4426, allocations: 51.41 kB / 1.32 GB, free: 5.727 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.4428, allocations: 83.27 kB / 1.32 GB, free: 5.633 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4428, allocations: 0 / 1.32 GB, free: 5.633 MB / 1.014 GB
Notification: Performance of matching and sorting (n=8) (initialization): time 0.000284/0.4431, allocations: 109.5 kB / 1.32 GB, free: 5.52 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.4431, allocations: 8 kB / 1.32 GB, free: 5.512 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.4431, allocations: 0 / 1.32 GB, free: 5.512 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.4432, allocations: 0 / 1.32 GB, free: 5.512 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.4433, allocations: 19.98 kB / 1.32 GB, free: 5.492 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.4433, allocations: 4.141 kB / 1.32 GB, free: 5.488 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.747e-05/0.4433, allocations: 7.984 kB / 1.32 GB, free: 5.48 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.4434, allocations: 8.094 kB / 1.32 GB, free: 5.473 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 4
 * Number of states: 0 ()
 * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (8):
 * Single equations (assignments): 8
 * 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.0001029/0.4435, allocations: 121.7 kB / 1.32 GB, free: 5.348 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.467e-05/0.4435, allocations: 11.89 kB / 1.32 GB, free: 5.336 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003009/0.4438, allocations: 98.02 kB / 1.32 GB, free: 5.23 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.4438, allocations: 0 / 1.32 GB, free: 5.23 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4438, allocations: 4.562 kB / 1.32 GB, free: 5.227 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.4438, allocations: 0 / 1.32 GB, free: 5.227 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004925/0.4443, allocations: 337.5 kB / 1.32 GB, free: 4.848 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.4443, allocations: 0 / 1.32 GB, free: 4.848 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.499e-05/0.4443, allocations: 11.98 kB / 1.32 GB, free: 4.836 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.4443, allocations: 0 / 1.32 GB, free: 4.836 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.4444, allocations: 3.938 kB / 1.32 GB, free: 4.832 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.4444, allocations: 0 / 1.32 GB, free: 4.832 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.4444, allocations: 3.938 kB / 1.32 GB, free: 4.828 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003243/0.4447, allocations: 207.3 kB / 1.321 GB, free: 4.609 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 8.346e-06/0.4447, allocations: 0 / 1.321 GB, free: 4.609 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.4447, allocations: 4 kB / 1.321 GB, free: 4.605 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.989e-05/0.4448, allocations: 11.98 kB / 1.321 GB, free: 4.594 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.4449, allocations: 0 / 1.321 GB, free: 4.594 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.4449, allocations: 11.92 kB / 1.321 GB, free: 4.582 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.568e-05/0.4449, allocations: 87.28 kB / 1.321 GB, free: 4.496 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.4449, allocations: 0 / 1.321 GB, free: 4.496 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002381/0.4452, allocations: 12 kB / 1.321 GB, free: 4.484 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (6):
 * Single equations (assignments): 4
 * 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.0001532/0.4453, allocations: 99.23 kB / 1.321 GB, free: 4.379 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0002886/0.4456, allocations: 63.89 kB / 1.321 GB, free: 4.316 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.4456, allocations: 0 / 1.321 GB, free: 4.316 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.4457, allocations: 28.17 kB / 1.321 GB, free: 4.289 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.446, allocations: 15.92 kB / 1.321 GB, free: 4.273 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003816/0.4464, allocations: 137.1 kB / 1.321 GB, free: 4.117 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.4467, allocations: 0.6845 MB / 1.322 GB, free: 3.406 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.438e-05/0.4467, allocations: 11.69 kB / 1.322 GB, free: 3.395 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.725e-05/0.4468, allocations: 11.44 kB / 1.322 GB, free: 3.383 MB / 1.014 GB
Notification: Performance of SimCode: time 2.81e-07/0.4468, allocations: 0 / 1.322 GB, free: 3.383 MB / 1.014 GB
Notification: Performance of Templates: time 0.003914/0.4507, allocations: 0.8141 MB / 1.323 GB, free: 2.574 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.904398915357888]