Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.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_10_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_10_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.00166/0.00166, allocations: 111.3 kB / 15.34 MB, free: 0.5117 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.002289/0.002289, allocations: 186.1 kB / 16.25 MB, free: 6.141 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.486/1.486, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.639/2.639, allocations: 437 MB / 0.71 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 63.91 kB / 0.8687 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.658/0.6594, allocations: 151.6 MB / 1.017 GB, free: 2.863 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002256/0.6617, allocations: 0.9047 MB / 1.018 GB, free: 1.961 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009568/0.6627, allocations: 0.8935 MB / 1.019 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.779e-05/0.6627, allocations: 7.938 kB / 1.019 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.128e-05/0.6628, allocations: 3.938 kB / 1.019 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.383e-05/0.6629, allocations: 7.875 kB / 1.019 GB, free: 1.035 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000201/0.6631, allocations: 39.95 kB / 1.019 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001403/0.6632, allocations: 111.7 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.6634, allocations: 37.08 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.6635, allocations: 55.77 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.801e-05/0.6636, allocations: 51.77 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/0.6637, allocations: 12 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.923e-05/0.6637, allocations: 8 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.231e-05/0.6637, allocations: 27.91 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.563e-05/0.6638, allocations: 51.72 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.664, allocations: 109.7 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.664, allocations: 3.938 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.753e-06/0.664, allocations: 0 / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.664, allocations: 0 / 1.019 GB, free: 0.5352 MB / 0.7637 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.000741/0.6647, allocations: 446.8 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.6648, allocations: 12.03 kB / 1.019 GB, free: 36 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.914e-05/0.6648, allocations: 12.84 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004663/0.6653, allocations: 252 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.6653, allocations: 8.375 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.894e-05/0.6654, allocations: 8.375 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002653/0.6656, allocations: 120.8 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.6657, allocations: 3.938 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.6657, allocations: 4 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.6657, allocations: 4 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002815/0.666, allocations: 71.86 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006042/0.6666, allocations: 0.5048 MB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.6668, allocations: 115.7 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.667, allocations: 58.61 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.667, allocations: 4 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.6671, allocations: 34.56 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.6671, allocations: 0 / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.000574/0.6677, allocations: 165.5 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.6677, allocations: 102.8 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.6678, allocations: 152.1 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.6679, allocations: 25.7 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.678e-05/0.6679, allocations: 112.3 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.668, allocations: 19.66 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.179e-05/0.668, allocations: 29.7 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.6682, allocations: 330.8 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.6683, allocations: 39.97 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.6685, allocations: 84.98 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/0.6688, allocations: 98.45 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.6688, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003556/0.6692, allocations: 145.7 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.6692, allocations: 8 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.6692, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.6692, allocations: 4 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.6694, allocations: 15.98 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.6694, allocations: 7.938 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.6695, allocations: 19.88 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.6695, allocations: 4 kB / 1.022 GB, free: 13.25 MB / 0.7794 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 9.921e-05/0.6696, allocations: 130.2 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.294e-05/0.6697, allocations: 11.91 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002617/0.67, allocations: 85.89 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/0.67, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.67, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.67, allocations: 4 kB / 1.022 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.6703, allocations: 205.5 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.6703, allocations: 4 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.6704, allocations: 15.98 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.6704, allocations: 4 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.6705, allocations: 7.984 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.6705, allocations: 0 / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.6705, allocations: 0 / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000439/0.6709, allocations: 377.8 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.821e-05/0.671, allocations: 85.02 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.671, allocations: 8 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.6712, allocations: 15.97 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.378e-05/0.6713, allocations: 23.91 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.6713, allocations: 7.984 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.191e-05/0.6714, allocations: 113.2 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6714, allocations: 4 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003257/0.6717, allocations: 16 kB / 1.023 GB, free: 12.06 MB / 0.7794 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.0001356/0.6719, allocations: 107.3 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003699/0.6722, allocations: 103.9 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.6723, allocations: 4 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.6724, allocations: 51.84 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.6729, allocations: 13.89 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004266/0.6733, allocations: 239.5 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.6736, allocations: 0.7002 MB / 1.024 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001019/0.6737, allocations: 17.02 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.46e-05/0.6737, allocations: 15.44 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.6738, allocations: 4 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of Templates: time 0.003516/0.6773, allocations: 1.163 MB / 1.025 GB, free: 9.586 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches