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.00113/0.00113, allocations: 89.89 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.008202/0.008202, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.677/1.677, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.03/3.03, allocations: 462.7 MB / 0.7364 GB, free: 336 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004038/0.0004039, allocations: 14.56 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.426/0.4264, allocations: 159.6 MB / 1.059 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001149/0.4276, allocations: 0.5662 MB / 1.059 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.4287, allocations: 0.8819 MB / 1.06 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.51e-05/0.4288, allocations: 4 kB / 1.06 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.464e-05/0.4288, allocations: 3.938 kB / 1.06 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.4289, allocations: 15.86 kB / 1.06 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.4292, allocations: 39.95 kB / 1.06 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001501/0.4293, allocations: 111.6 kB / 1.06 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.4295, allocations: 17.11 kB / 1.06 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.4296, allocations: 43.86 kB / 1.06 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.604e-05/0.4297, allocations: 51.73 kB / 1.06 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.561e-05/0.4298, allocations: 4 kB / 1.06 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.723e-05/0.4298, allocations: 8 kB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.863e-05/0.4298, allocations: 15.92 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.772e-05/0.4299, allocations: 73.36 kB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001568/0.4301, allocations: 107.8 kB / 1.061 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4301, allocations: 0 / 1.061 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.744e-06/0.4301, allocations: 0 / 1.061 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.4301, allocations: 4 kB / 1.061 GB, free: 3.535 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.0007398/0.4309, allocations: 443 kB / 1.061 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.4309, allocations: 12.03 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.599e-05/0.431, allocations: 12.84 kB / 1.061 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005258/0.4315, allocations: 272 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.4315, allocations: 4.375 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.4316, allocations: 12.38 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003254/0.4319, allocations: 120.8 kB / 1.061 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.4319, allocations: 11.88 kB / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.4319, allocations: 0 / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.432, allocations: 4 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003102/0.4323, allocations: 91.92 kB / 1.062 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000707/0.433, allocations: 0.4971 MB / 1.062 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002717/0.4333, allocations: 123.8 kB / 1.062 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.4335, allocations: 62.55 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.4335, allocations: 0 / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.4335, allocations: 42.5 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.4335, allocations: 0 / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0006662/0.4342, allocations: 185.7 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/0.4343, allocations: 106.8 kB / 1.063 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.4344, allocations: 148.8 kB / 1.063 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.4345, allocations: 29.86 kB / 1.063 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.898e-05/0.4346, allocations: 112.3 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.193e-05/0.4346, allocations: 27.72 kB / 1.063 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.483e-05/0.4346, allocations: 17.7 kB / 1.063 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.4348, allocations: 326.8 kB / 1.063 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.4349, allocations: 51.91 kB / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.4351, allocations: 97.05 kB / 1.063 GB, free: 488 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.4355, allocations: 110.5 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4355, allocations: 0 / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003863/0.4359, allocations: 153.4 kB / 1.064 GB, free: 208 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.4359, allocations: 11.98 kB / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.4359, allocations: 0 / 1.064 GB, free: 196 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.4359, allocations: 4 kB / 1.064 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.4361, allocations: 27.92 kB / 1.064 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.4361, allocations: 0 / 1.064 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.4362, allocations: 19.98 kB / 1.064 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.4363, allocations: 7.984 kB / 1.064 GB, free: 136 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.0001439/0.4364, allocations: 131.4 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.285e-05/0.4365, allocations: 7.906 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002954/0.4368, allocations: 93.78 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.4368, allocations: 4 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.4368, allocations: 0 / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.4368, allocations: 4 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003142/0.4371, allocations: 205.5 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4371, allocations: 0 / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.4373, allocations: 27.97 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.4373, allocations: 0 / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.4373, allocations: 4 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.4373, allocations: 4 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.4373, allocations: 0 / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004824/0.4378, allocations: 397.8 kB / 1.064 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.479e-05/0.4378, allocations: 88.95 kB / 1.065 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.459e-05/0.4379, allocations: 0 / 1.065 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.4381, allocations: 15.98 kB / 1.065 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.878e-05/0.4382, allocations: 27.95 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.4382, allocations: 11.92 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.784e-05/0.4383, allocations: 119.1 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4383, allocations: 0 / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003182/0.4386, allocations: 16 kB / 1.065 GB, free: 14.89 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.0001843/0.4388, allocations: 113 kB / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003977/0.4392, allocations: 116.1 kB / 1.065 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4392, allocations: 0 / 1.065 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.4394, allocations: 56.09 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004541/0.4399, allocations: 8.188 kB / 1.065 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004473/0.4403, allocations: 237.2 kB / 1.065 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.4406, allocations: 0.7004 MB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.192e-05/0.4407, allocations: 20.62 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.13e-05/0.4407, allocations: 15.44 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of SimCode: time 5.41e-07/0.4408, allocations: 0 / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of Templates: time 0.003839/0.4446, allocations: 1.108 MB / 1.067 GB, free: 12.47 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