Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001341/0.001341, allocations: 105.8 kB / 18.84 MB, free: 3.023 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.001454/0.001454, allocations: 190.9 kB / 22.1 MB, free: 4.34 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.566/1.566, allocations: 225.6 MB / 250.8 MB, free: 2.902 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.027/3.027, allocations: 495.8 MB / 0.783 GB, free: 12.27 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-maint.12.x/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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002073/0.002073, allocations: 67.89 kB / 1.137 GB, free: 12.21 MB / 0.92 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 1.454/1.456, allocations: 173.6 MB / 1.307 GB, free: 33.77 MB / 1.061 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002145/1.458, allocations: 0.6722 MB / 1.307 GB, free: 33.34 MB / 1.061 GB
Notification: Performance of NFInst.instExpressions: time 0.001433/1.46, allocations: 1.066 MB / 1.308 GB, free: 32.56 MB / 1.061 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.484e-05/1.46, allocations: 0 / 1.308 GB, free: 32.56 MB / 1.061 GB
Notification: Performance of NFTyping.typeComponents: time 3.101e-05/1.46, allocations: 7.938 kB / 1.308 GB, free: 32.55 MB / 1.061 GB
Notification: Performance of NFTyping.typeBindings: time 7.637e-05/1.46, allocations: 9.891 kB / 1.308 GB, free: 32.55 MB / 1.061 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0003618/1.46, allocations: 39.17 kB / 1.308 GB, free: 32.53 MB / 1.061 GB
Notification: Performance of NFFlatten.flatten: time 0.0001196/1.461, allocations: 50.61 kB / 1.309 GB, free: 32.5 MB / 1.061 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/1.461, allocations: 10.64 kB / 1.309 GB, free: 32.5 MB / 1.061 GB
Notification: Performance of NFEvalConstants.evaluate: time 7.962e-05/1.461, allocations: 19.53 kB / 1.309 GB, free: 32.49 MB / 1.061 GB
Notification: Performance of NFSimplifyModel.simplify: time 6.045e-05/1.461, allocations: 24.8 kB / 1.309 GB, free: 32.48 MB / 1.061 GB
Notification: Performance of NFPackage.collectConstants: time 1.597e-05/1.461, allocations: 6.781 kB / 1.309 GB, free: 32.47 MB / 1.061 GB
Notification: Performance of NFFlatten.collectFunctions: time 6.221e-05/1.461, allocations: 15.12 kB / 1.309 GB, free: 32.47 MB / 1.061 GB
Notification: Performance of NFScalarize.scalarize: time 2.309e-05/1.461, allocations: 7.328 kB / 1.309 GB, free: 32.47 MB / 1.061 GB
Notification: Performance of NFVerifyModel.verify: time 3.502e-05/1.461, allocations: 21.88 kB / 1.309 GB, free: 32.45 MB / 1.061 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001516/1.461, allocations: 62.25 kB / 1.309 GB, free: 32.43 MB / 1.061 GB
Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/1.461, allocations: 0 / 1.309 GB, free: 32.43 MB / 1.061 GB
Notification: Performance of FrontEnd: time 1.864e-06/1.461, allocations: 0 / 1.309 GB, free: 32.43 MB / 1.061 GB
Notification: Performance of Transformations before backend: time 6.673e-06/1.461, allocations: 0 / 1.309 GB, free: 32.43 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: 7
 * Number of variables: 7
Notification: Performance of Generate backend data structure: time 0.0006044/1.462, allocations: 288 kB / 1.309 GB, free: 32.16 MB / 1.061 GB
Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/1.462, allocations: 7.938 kB / 1.309 GB, free: 32.16 MB / 1.061 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.46e-05/1.462, allocations: 6.844 kB / 1.309 GB, free: 32.16 MB / 1.061 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 8.987e-05/1.462, allocations: 119.8 kB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/1.462, allocations: 4.312 kB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/1.462, allocations: 3.312 kB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/1.462, allocations: 61.27 kB / 1.309 GB, free: 31.98 MB / 1.061 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/1.462, allocations: 192 / 1.309 GB, free: 31.98 MB / 1.061 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/1.462, allocations: 6.719 kB / 1.309 GB, free: 31.97 MB / 1.061 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/1.462, allocations: 0 / 1.309 GB, free: 31.97 MB / 1.061 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/1.462, allocations: 49.09 kB / 1.309 GB, free: 31.96 MB / 1.061 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004449/1.463, allocations: 247.1 kB / 1.309 GB, free: 31.71 MB / 1.061 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/1.463, allocations: 63.62 kB / 1.31 GB, free: 31.67 MB / 1.061 GB
Notification: Performance of preOpt resolveLoops (simulation): time 9.535e-05/1.463, allocations: 24.11 kB / 1.31 GB, free: 31.66 MB / 1.061 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/1.463, allocations: 0 / 1.31 GB, free: 31.66 MB / 1.061 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002263/1.463, allocations: 79.14 kB / 1.31 GB, free: 31.6 MB / 1.061 GB
Notification: Performance of pre-optimization done (n=6): time 1.273e-06/1.463, allocations: 0 / 1.31 GB, free: 31.6 MB / 1.061 GB
Notification: Performance of matching and sorting (n=6): time 0.0004209/1.464, allocations: 120.4 kB / 1.31 GB, free: 31.54 MB / 1.061 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/1.464, allocations: 54.83 kB / 1.31 GB, free: 31.48 MB / 1.061 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.813e-05/1.464, allocations: 106.8 kB / 1.31 GB, free: 31.38 MB / 1.061 GB
Notification: Performance of collectPreVariables (initialization): time 1.235e-05/1.464, allocations: 33.03 kB / 1.31 GB, free: 31.34 MB / 1.061 GB
Notification: Performance of collectInitialEqns (initialization): time 3.357e-05/1.464, allocations: 82.98 kB / 1.31 GB, free: 31.26 MB / 1.061 GB
Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/1.464, allocations: 14.66 kB / 1.31 GB, free: 31.25 MB / 1.061 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.818e-05/1.464, allocations: 26.72 kB / 1.31 GB, free: 31.22 MB / 1.061 GB
Notification: Performance of setup shared object (initialization): time 5.789e-05/1.464, allocations: 318.8 kB / 1.31 GB, free: 30.9 MB / 1.061 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.7e-05/1.464, allocations: 25.38 kB / 1.31 GB, free: 30.9 MB / 1.061 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/1.464, allocations: 55.27 kB / 1.31 GB, free: 30.86 MB / 1.061 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/1.464, allocations: 77.97 kB / 1.31 GB, free: 30.8 MB / 1.061 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.464, allocations: 0 / 1.31 GB, free: 30.8 MB / 1.061 GB
Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002418/1.465, allocations: 108.6 kB / 1.311 GB, free: 30.75 MB / 1.061 GB
Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/1.465, allocations: 5.781 kB / 1.311 GB, free: 30.75 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/1.465, allocations: 6.656 kB / 1.311 GB, free: 30.75 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/1.465, allocations: 0 / 1.311 GB, free: 30.75 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/1.465, allocations: 18.59 kB / 1.311 GB, free: 30.74 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/1.465, allocations: 0 / 1.311 GB, free: 30.74 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.862e-05/1.465, allocations: 12.91 kB / 1.311 GB, free: 30.74 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/1.465, allocations: 6.844 kB / 1.311 GB, free: 30.73 MB / 1.061 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 7.278e-05/1.465, allocations: 124 kB / 1.311 GB, free: 30.61 MB / 1.061 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.338e-05/1.465, allocations: 6.797 kB / 1.311 GB, free: 30.61 MB / 1.061 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000274/1.465, allocations: 101.3 kB / 1.311 GB, free: 30.55 MB / 1.061 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/1.465, allocations: 2.844 kB / 1.311 GB, free: 30.55 MB / 1.061 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/1.465, allocations: 0.5625 kB / 1.311 GB, free: 30.55 MB / 1.061 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/1.465, allocations: 7.453 kB / 1.311 GB, free: 30.55 MB / 1.061 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000389/1.466, allocations: 335.3 kB / 1.311 GB, free: 30.25 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/1.466, allocations: 0 / 1.311 GB, free: 30.25 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.67e-05/1.466, allocations: 8.766 kB / 1.311 GB, free: 30.25 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/1.466, allocations: 0 / 1.311 GB, free: 30.25 MB / 1.061 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/1.466, allocations: 2.844 kB / 1.311 GB, free: 30.25 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/1.466, allocations: 0 / 1.311 GB, free: 30.25 MB / 1.061 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.466, allocations: 0 / 1.311 GB, free: 30.25 MB / 1.061 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/1.466, allocations: 201.3 kB / 1.311 GB, free: 30.09 MB / 1.061 GB
Notification: Performance of postOpt removeConstants (simulation): time 8.796e-06/1.466, allocations: 3.031 kB / 1.311 GB, free: 30.09 MB / 1.061 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/1.466, allocations: 4 kB / 1.311 GB, free: 30.09 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.473e-05/1.466, allocations: 9.078 kB / 1.311 GB, free: 30.09 MB / 1.061 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.411e-05/1.466, allocations: 3.281 kB / 1.311 GB, free: 30.09 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/1.466, allocations: 10.84 kB / 1.311 GB, free: 30.08 MB / 1.061 GB
Notification: Performance of sorting global known variables: time 3.19e-05/1.466, allocations: 92.17 kB / 1.312 GB, free: 30 MB / 1.061 GB
Notification: Performance of sort global known variables: time 6e-08/1.466, allocations: 0 / 1.312 GB, free: 30 MB / 1.061 GB
Notification: Performance of remove unused functions: time 0.0002465/1.466, allocations: 8.375 kB / 1.312 GB, free: 30 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: 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.0001464/1.467, allocations: 104.2 kB / 1.312 GB, free: 29.9 MB / 1.061 GB
Notification: Performance of simCode: created initialization part: time 0.0002725/1.467, allocations: 62.94 kB / 1.312 GB, free: 29.89 MB / 1.061 GB
Notification: Performance of simCode: created event and clocks part: time 2.725e-06/1.467, allocations: 4.188 kB / 1.312 GB, free: 29.89 MB / 1.061 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001088/1.467, allocations: 32.59 kB / 1.312 GB, free: 29.88 MB / 1.061 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/1.467, allocations: 14.05 kB / 1.312 GB, free: 29.87 MB / 1.061 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000392/1.468, allocations: 139.8 kB / 1.312 GB, free: 29.75 MB / 1.061 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/1.468, allocations: 0.6824 MB / 1.313 GB, free: 29.05 MB / 1.061 GB
Notification: Performance of simCode: alias equations: time 3.13e-05/1.468, allocations: 6.875 kB / 1.313 GB, free: 29.05 MB / 1.061 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.846e-05/1.468, allocations: 17.84 kB / 1.313 GB, free: 29.04 MB / 1.061 GB
Notification: Performance of SimCode: time 1.002e-06/1.468, allocations: 0 / 1.313 GB, free: 29.04 MB / 1.061 GB
Notification: Performance of Templates: time 0.003943/1.472, allocations: 0.8199 MB / 1.313 GB, free: 28.93 MB / 1.061 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.47786334529519]