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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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=5000,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=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 88.41 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01322/0.01322, allocations: 172 kB / 16.26 MB, free: 6.676 MB / 14.72 MB 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: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.107/3.107, allocations: 462.7 MB / 0.7364 GB, free: 252 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003937/0.0003937, allocations: 15.81 kB / 0.9028 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4563/0.4568, allocations: 159.6 MB / 1.059 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.00157/0.4584, allocations: 0.5662 MB / 1.059 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00157/0.46, allocations: 0.8858 MB / 1.06 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.296e-05/0.4601, allocations: 0 / 1.06 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.223e-05/0.4601, allocations: 3.938 kB / 1.06 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.4602, allocations: 15.86 kB / 1.06 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.4605, allocations: 39.95 kB / 1.06 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.4606, allocations: 103.6 kB / 1.06 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.4608, allocations: 25.11 kB / 1.06 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.461, allocations: 43.83 kB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.4611, allocations: 47.77 kB / 1.06 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.554e-05/0.4611, allocations: 8 kB / 1.06 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.896e-05/0.4611, allocations: 4 kB / 1.06 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.892e-05/0.4612, allocations: 19.91 kB / 1.06 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.606e-05/0.4613, allocations: 73.42 kB / 1.06 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001634/0.4615, allocations: 107.8 kB / 1.061 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.4615, allocations: 0 / 1.061 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.595e-06/0.4615, allocations: 0 / 1.061 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.135e-06/0.4615, allocations: 0 / 1.061 GB, free: 3.473 MB / 0.8106 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.0009589/0.4625, allocations: 450.9 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.4625, allocations: 8.031 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.676e-05/0.4626, allocations: 12.84 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/0.4631, allocations: 274.9 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.879e-05/0.4632, allocations: 4.375 kB / 1.061 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/0.4632, allocations: 12.38 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.4636, allocations: 124.7 kB / 1.061 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.4636, allocations: 3.938 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.4636, allocations: 4 kB / 1.061 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.4636, allocations: 4 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003149/0.464, allocations: 91.86 kB / 1.062 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008016/0.4648, allocations: 0.4971 MB / 1.062 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003342/0.4651, allocations: 123.8 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001857/0.4653, allocations: 70.61 kB / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.088e-05/0.4654, allocations: 4.062 kB / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.4654, allocations: 38.5 kB / 1.062 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.884e-06/0.4654, allocations: 4 kB / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0006607/0.4661, allocations: 181.6 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/0.4661, allocations: 106.8 kB / 1.063 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.4663, allocations: 146.2 kB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.4664, allocations: 33.7 kB / 1.063 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.361e-05/0.4664, allocations: 104.3 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.379e-05/0.4665, allocations: 31.7 kB / 1.063 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.4665, allocations: 17.72 kB / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001812/0.4667, allocations: 326.8 kB / 1.063 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.4669, allocations: 47.91 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.4671, allocations: 97.05 kB / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.4674, allocations: 106.5 kB / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4675, allocations: 0 / 1.063 GB, free: 300 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004106/0.4679, allocations: 161.6 kB / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.4679, allocations: 7.938 kB / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.4679, allocations: 0 / 1.064 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.4679, allocations: 4.047 kB / 1.064 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.4681, allocations: 27.97 kB / 1.064 GB, free: 92 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.4681, allocations: 0 / 1.064 GB, free: 92 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.4683, allocations: 27.97 kB / 1.064 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.4683, allocations: 4 kB / 1.064 GB, free: 60 kB / 0.8106 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.0001723/0.4685, allocations: 119.3 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.715e-05/0.4686, allocations: 15.91 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003072/0.4689, allocations: 97.83 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.4689, allocations: 0 / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.4689, allocations: 4 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.4689, allocations: 0 / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003434/0.4693, allocations: 205.5 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4693, allocations: 4 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.4694, allocations: 19.98 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.4694, allocations: 4 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.4694, allocations: 0 / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.4694, allocations: 0 / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.4694, allocations: 7.938 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006219/0.4701, allocations: 397.9 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.549e-05/0.4701, allocations: 84.95 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.098e-05/0.4702, allocations: 7.938 kB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.4704, allocations: 24.03 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.281e-05/0.4705, allocations: 19.97 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.4705, allocations: 7.984 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.775e-05/0.4706, allocations: 113.8 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4706, allocations: 4 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003148/0.4709, allocations: 16 kB / 1.065 GB, free: 14.83 MB / 0.8262 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.0002423/0.4712, allocations: 115.1 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004318/0.4716, allocations: 115.9 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4716, allocations: 0 / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001941/0.4718, allocations: 56.09 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004998/0.4724, allocations: 13.89 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004966/0.4729, allocations: 237.2 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/0.4733, allocations: 0.7004 MB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.842e-05/0.4734, allocations: 16.64 kB / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.595e-05/0.4734, allocations: 15.44 kB / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.4734, allocations: 0 / 1.066 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.004284/0.4777, allocations: 1.107 MB / 1.067 GB, free: 12.4 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) 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) Reference file matches