Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.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.001737/0.001737, 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.00192/0.00192, allocations: 189.9 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.529/1.529, 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.413/3.413, allocations: 0.4893 GB / 0.7884 GB, free: 33.18 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.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis")
translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 69.08 kB / 1.145 GB, free: 30.59 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4527/0.4548, allocations: 174.9 MB / 1.316 GB, free: 9.633 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.00264/0.4574, allocations: 0.8599 MB / 1.317 GB, free: 8.773 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001484/0.4589, allocations: 0.8857 MB / 1.318 GB, free: 7.875 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.459, allocations: 0 / 1.318 GB, free: 7.875 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 4.194e-05/0.459, allocations: 7.875 kB / 1.318 GB, free: 7.867 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.4592, allocations: 19.81 kB / 1.318 GB, free: 7.848 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002831/0.4595, allocations: 55.86 kB / 1.318 GB, free: 7.793 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.00021/0.4597, allocations: 107.7 kB / 1.318 GB, free: 7.688 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.4598, allocations: 25.05 kB / 1.318 GB, free: 7.66 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001994/0.46, allocations: 55.77 kB / 1.318 GB, free: 7.605 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.4601, allocations: 51.77 kB / 1.318 GB, free: 7.555 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 3.175e-05/0.4602, allocations: 15.98 kB / 1.318 GB, free: 7.539 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 1.953e-05/0.4602, allocations: 8 kB / 1.318 GB, free: 7.531 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 4.406e-05/0.4602, allocations: 23.92 kB / 1.318 GB, free: 7.508 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 6.76e-05/0.4603, allocations: 51.72 kB / 1.318 GB, free: 7.457 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.4605, allocations: 127.4 kB / 1.318 GB, free: 7.332 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.4605, allocations: 0 / 1.318 GB, free: 7.332 MB / 1.014 GB
Notification: Performance of FrontEnd: time 2.144e-06/0.4605, allocations: 0 / 1.318 GB, free: 7.332 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 9.178e-06/0.4605, allocations: 0 / 1.318 GB, free: 7.332 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: 13
 * Number of variables: 13
Notification: Performance of Generate backend data structure: time 0.0007804/0.4613, allocations: 361.8 kB / 1.319 GB, free: 6.945 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.4614, allocations: 15.97 kB / 1.319 GB, free: 6.93 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.212e-05/0.4614, allocations: 12.84 kB / 1.319 GB, free: 6.918 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005497/0.462, allocations: 198.2 kB / 1.319 GB, free: 6.699 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.871e-05/0.462, allocations: 8.375 kB / 1.319 GB, free: 6.691 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.886e-05/0.462, allocations: 12.38 kB / 1.319 GB, free: 6.68 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.4624, allocations: 112.8 kB / 1.319 GB, free: 6.555 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.4624, allocations: 3.938 kB / 1.319 GB, free: 6.551 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.4624, allocations: 4 kB / 1.319 GB, free: 6.547 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.4624, allocations: 11.92 kB / 1.319 GB, free: 6.535 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.4627, allocations: 67.94 kB / 1.319 GB, free: 6.469 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007681/0.4634, allocations: 480.1 kB / 1.32 GB, free: 5.949 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.000277/0.4637, allocations: 107.8 kB / 1.32 GB, free: 5.816 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.4639, allocations: 54.61 kB / 1.32 GB, free: 5.754 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.4639, allocations: 0 / 1.32 GB, free: 5.754 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.464, allocations: 38.48 kB / 1.32 GB, free: 5.707 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=8): time 8.61e-07/0.464, allocations: 4 kB / 1.32 GB, free: 5.703 MB / 1.014 GB
Notification: Performance of matching and sorting (n=8): time 0.0006103/0.4646, allocations: 157.5 kB / 1.32 GB, free: 5.543 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/0.4647, allocations: 106.8 kB / 1.32 GB, free: 5.414 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.4649, allocations: 162.1 kB / 1.32 GB, free: 5.25 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.4649, allocations: 29.7 kB / 1.32 GB, free: 5.215 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 9.087e-05/0.465, allocations: 108.4 kB / 1.32 GB, free: 5.102 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 3.779e-05/0.465, allocations: 23.78 kB / 1.32 GB, free: 5.078 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.124e-05/0.4651, allocations: 25.72 kB / 1.32 GB, free: 5.047 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001659/0.4652, allocations: 326.8 kB / 1.321 GB, free: 4.719 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.4655, allocations: 43.95 kB / 1.321 GB, free: 4.676 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.4657, allocations: 85 kB / 1.321 GB, free: 4.574 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002861/0.4659, allocations: 94.5 kB / 1.321 GB, free: 4.473 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4659, allocations: 0 / 1.321 GB, free: 4.473 MB / 1.014 GB
Notification: Performance of matching and sorting (n=11) (initialization): time 0.000367/0.4663, allocations: 137.5 kB / 1.321 GB, free: 4.332 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.4663, allocations: 8 kB / 1.321 GB, free: 4.324 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.4663, allocations: 0 / 1.321 GB, free: 4.324 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.4664, allocations: 0 / 1.321 GB, free: 4.324 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.4665, allocations: 27.91 kB / 1.321 GB, free: 4.297 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.4665, allocations: 4 kB / 1.321 GB, free: 4.293 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.4667, allocations: 23.98 kB / 1.321 GB, free: 4.27 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/0.4667, allocations: 4 kB / 1.321 GB, free: 4.266 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y)
 * 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.0001275/0.4668, allocations: 129.4 kB / 1.321 GB, free: 4.133 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.65e-05/0.4669, allocations: 11.91 kB / 1.321 GB, free: 4.121 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002687/0.4671, allocations: 94.23 kB / 1.321 GB, free: 4.016 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.4671, allocations: 0 / 1.321 GB, free: 4.016 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.4671, allocations: 7.984 kB / 1.321 GB, free: 4.008 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4671, allocations: 4 kB / 1.321 GB, free: 4.004 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003036/0.4674, allocations: 176.6 kB / 1.321 GB, free: 3.789 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.4675, allocations: 0 / 1.321 GB, free: 3.789 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.4676, allocations: 19.98 kB / 1.321 GB, free: 3.77 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/0.4676, allocations: 0 / 1.321 GB, free: 3.77 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.4676, allocations: 11.92 kB / 1.321 GB, free: 3.758 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.4676, allocations: 0 / 1.321 GB, free: 3.758 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.4676, allocations: 0 / 1.321 GB, free: 3.758 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004366/0.468, allocations: 377.8 kB / 1.322 GB, free: 3.371 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.748e-05/0.468, allocations: 7.953 kB / 1.322 GB, free: 3.363 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/0.4681, allocations: 3.984 kB / 1.322 GB, free: 3.359 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.4683, allocations: 19.98 kB / 1.322 GB, free: 3.34 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.718e-05/0.4683, allocations: 23.95 kB / 1.322 GB, free: 3.316 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.4684, allocations: 4 kB / 1.322 GB, free: 3.312 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 8.991e-05/0.4684, allocations: 112.6 kB / 1.322 GB, free: 3.203 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.4684, allocations: 0 / 1.322 GB, free: 3.203 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0003148/0.4688, allocations: 23.94 kB / 1.322 GB, free: 3.18 MB / 1.014 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y)
 * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001369/0.4689, allocations: 99.72 kB / 1.322 GB, free: 3.074 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003733/0.4693, allocations: 95.92 kB / 1.322 GB, free: 2.98 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4693, allocations: 3.938 kB / 1.322 GB, free: 2.977 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001799/0.4694, allocations: 47.95 kB / 1.322 GB, free: 2.93 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.4699, allocations: 9.688 kB / 1.322 GB, free: 2.922 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004988/0.4704, allocations: 219.3 kB / 1.322 GB, free: 2.672 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/0.4708, allocations: 0.6963 MB / 1.323 GB, free: 1.949 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 7.538e-05/0.4708, allocations: 12.66 kB / 1.323 GB, free: 1.938 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.026e-05/0.4709, allocations: 23.42 kB / 1.323 GB, free: 1.914 MB / 1.014 GB
Notification: Performance of SimCode: time 4.71e-07/0.4709, allocations: 4 kB / 1.323 GB, free: 1.91 MB / 1.014 GB
Notification: Performance of Templates: time 0.00481/0.4757, allocations: 1.403 MB / 1.325 GB, free: 0.5117 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.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.692938734777272]