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.001648/0.001648, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001478, allocations: 197.5 kB / 16.53 MB, free: 6.664 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.577/1.577, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.829/2.829, allocations: 437 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 75.89 kB / 0.8693 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7589/0.7608, allocations: 151.6 MB / 1.017 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002251/0.7631, allocations: 0.8515 MB / 1.018 GB, free: 1.629 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001243/0.7644, allocations: 0.8857 MB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.373e-05/0.7644, allocations: 4 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.38e-05/0.7645, allocations: 7.875 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.7646, allocations: 15.8 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.7648, allocations: 43.94 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.765, allocations: 119.6 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.7651, allocations: 25.09 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.7653, allocations: 51.84 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.782e-05/0.7654, allocations: 51.75 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.132e-05/0.7654, allocations: 12 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 2.248e-05/0.7655, allocations: 12 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.625e-05/0.7655, allocations: 27.91 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.532e-05/0.7656, allocations: 51.66 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.7657, allocations: 113.5 kB / 1.02 GB, free: 208 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.7658, allocations: 0 / 1.02 GB, free: 208 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.132e-06/0.7658, allocations: 0 / 1.02 GB, free: 208 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.103e-05/0.7658, allocations: 0 / 1.02 GB, free: 208 kB / 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.000828/0.7666, allocations: 454.8 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.7667, allocations: 8.031 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.809e-05/0.7667, allocations: 12.84 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005406/0.7673, allocations: 260 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.7673, allocations: 4.375 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.7673, allocations: 12.38 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.7676, allocations: 116.7 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.7677, allocations: 3.938 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.7677, allocations: 0 / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.7677, allocations: 4 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000288/0.768, allocations: 79.86 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006829/0.7687, allocations: 0.4893 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000272/0.7689, allocations: 111.8 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.7691, allocations: 58.61 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.7692, allocations: 3.938 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.7692, allocations: 38.48 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.423e-06/0.7692, allocations: 0 / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0006127/0.7698, allocations: 157.5 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.822e-05/0.7699, allocations: 106.8 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.7701, allocations: 147.7 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.7701, allocations: 29.7 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.239e-05/0.7702, allocations: 112.2 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.76e-05/0.7702, allocations: 31.7 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.321e-05/0.7703, allocations: 25.88 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.7705, allocations: 326.8 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.7706, allocations: 43.95 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.7708, allocations: 81.06 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.7711, allocations: 106.7 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.7711, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003705/0.7715, allocations: 133.5 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.7715, allocations: 12 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.7715, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.7716, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.7717, allocations: 23.97 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.7717, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.7719, allocations: 15.89 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.7719, allocations: 8 kB / 1.022 GB, free: 12.93 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 0.0001186/0.772, allocations: 133.7 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-05/0.7721, allocations: 7.906 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002675/0.7724, allocations: 89.89 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.7724, allocations: 3.984 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.7724, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.7724, allocations: 4 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003226/0.7727, allocations: 193.6 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7727, allocations: 4 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.7728, allocations: 19.98 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.7729, allocations: 0 / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.7729, allocations: 7.984 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.7729, allocations: 3.938 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.7729, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004609/0.7733, allocations: 377.8 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.483e-05/0.7734, allocations: 85 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.91e-05/0.7734, allocations: 8 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.7737, allocations: 11.98 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.926e-05/0.7737, allocations: 19.97 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.7738, allocations: 7.984 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.597e-05/0.7739, allocations: 128.8 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7739, allocations: 3.938 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003214/0.7742, allocations: 12 kB / 1.023 GB, free: 11.73 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.0001813/0.7744, allocations: 111.2 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004001/0.7748, allocations: 103.9 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.7748, allocations: 0 / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001825/0.775, allocations: 47.91 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005093/0.7755, allocations: 19.92 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004656/0.776, allocations: 207.6 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003495/0.7764, allocations: 0.7002 MB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.259e-05/0.7765, allocations: 21.05 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.728e-05/0.7765, allocations: 27.42 kB / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.7765, allocations: 0 / 1.025 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of Templates: time 0.004364/0.7809, allocations: 1.34 MB / 1.026 GB, free: 9.102 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=400 -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