Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.005846/0.00585, allocations: 232.3 kB / 15.82 MB, free: 6.297 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001177/0.001177, allocations: 175.1 kB / 16.7 MB, free: 5.457 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.93/3.93, allocations: 389.1 MB / 406.5 MB, free: 11.82 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.099/4.099, allocations: 472.3 MB / 0.9024 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0007791/0.0007795, allocations: 18.88 kB / 1.008 GB, free: 138.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2018/0.2026, allocations: 98.73 MB / 1.105 GB, free: 42.11 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7549/0.9576, allocations: 125 MB / 1.227 GB, free: 28.25 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.9579, allocations: 74.27 kB / 1.227 GB, free: 28.22 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.01035/0.9683, allocations: 2.117 MB / 1.229 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.014e-06/0.9683, allocations: 2.953 kB / 1.229 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.621e-05/0.9684, allocations: 4 kB / 1.229 GB, free: 26.91 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.001289/0.9697, allocations: 0.4912 MB / 1.229 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.9697, allocations: 12.03 kB / 1.229 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.675e-05/0.9698, allocations: 12.52 kB / 1.229 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.9699, allocations: 184.2 kB / 1.23 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.9699, allocations: 10.11 kB / 1.23 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.97, allocations: 12.48 kB / 1.23 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000724/0.9707, allocations: 187.4 kB / 1.23 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.9708, allocations: 0 / 1.23 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.9708, allocations: 16.5 kB / 1.23 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.9708, allocations: 0 / 1.23 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009835/0.9718, allocations: 178.9 kB / 1.23 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.9733, allocations: 0.6022 MB / 1.231 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009843/0.9743, allocations: 225.6 kB / 1.231 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005442/0.9749, allocations: 113.1 kB / 1.231 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.693e-05/0.9749, allocations: 0.6562 kB / 1.231 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007509/0.9757, allocations: 191.8 kB / 1.231 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=14): time 2.655e-06/0.9757, allocations: 0 / 1.231 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14): time 0.001795/0.9775, allocations: 343.1 kB / 1.231 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.9776, allocations: 111.8 kB / 1.231 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.9778, allocations: 166.6 kB / 1.232 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.991e-05/0.9779, allocations: 34.05 kB / 1.232 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.559e-05/0.978, allocations: 113.4 kB / 1.232 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.876e-05/0.978, allocations: 42.92 kB / 1.232 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.827e-05/0.9781, allocations: 3.938 kB / 1.232 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.9782, allocations: 331.5 kB / 1.232 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005721/0.9788, allocations: 104.1 kB / 1.232 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.9794, allocations: 157.6 kB / 1.232 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005437/0.98, allocations: 98.62 kB / 1.232 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.98, allocations: 0 / 1.232 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001276/0.9813, allocations: 282 kB / 1.233 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.9813, allocations: 9.172 kB / 1.233 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.9814, allocations: 0 / 1.233 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.9814, allocations: 0 / 1.233 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.9818, allocations: 57.19 kB / 1.233 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.9819, allocations: 0 / 1.233 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005749/0.9825, allocations: 66.38 kB / 1.233 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-05/0.9825, allocations: 4.656 kB / 1.233 GB, free: 23.5 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.hysteresis.y,hysteresis.y,$whenCondition2,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.T_start,pul.T_start,$PRE.pul.count,pul.count,$whenCondition1,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.T_start,pul1.T_start,$PRE.pul1.count,pul1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001934/0.9827, allocations: 132.5 kB / 1.233 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.548e-05/0.9828, allocations: 20.27 kB / 1.233 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004661/0.9832, allocations: 110.1 kB / 1.233 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.9833, allocations: 1.562 kB / 1.233 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.9833, allocations: 0 / 1.233 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.9833, allocations: 5.734 kB / 1.233 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002587/0.9836, allocations: 234 kB / 1.233 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.9836, allocations: 4 kB / 1.233 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003104/0.9839, allocations: 37.52 kB / 1.233 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.9839, allocations: 0 / 1.233 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.984, allocations: 8.656 kB / 1.233 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.984, allocations: 5.125 kB / 1.233 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.984, allocations: 8.359 kB / 1.233 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.9852, allocations: 279.4 kB / 1.234 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.472e-05/0.9853, allocations: 97.36 kB / 1.234 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.263e-05/0.9853, allocations: 5.219 kB / 1.234 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004707/0.9858, allocations: 50.47 kB / 1.234 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/0.986, allocations: 45.23 kB / 1.234 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.9861, allocations: 5.172 kB / 1.234 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0005845/0.9867, allocations: 124.8 kB / 1.234 GB, free: 38.54 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.91e-07/0.9867, allocations: 0 / 1.234 GB, free: 38.54 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0004284/0.9871, allocations: 32.11 kB / 1.234 GB, free: 38.51 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,hysteresis1.y,pul.T_start,pul.count,$whenCondition1,hysteresis2.y,pul1.T_start,pul1.count,hysteresis.y) * Number of discrete states: 5 (hysteresis.y,pul1.count,hysteresis2.y,pul.count,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002013/0.9873, allocations: 117.1 kB / 1.234 GB, free: 38.4 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.002185/0.9895, allocations: 231.5 kB / 1.234 GB, free: 38.25 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 8.607e-06/0.9896, allocations: 0 / 1.234 GB, free: 38.25 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.9908, allocations: 127.9 kB / 1.234 GB, free: 38.18 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000797/0.9916, allocations: 31.36 kB / 1.234 GB, free: 38.16 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.9935, allocations: 300.9 kB / 1.235 GB, free: 37.9 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.9941, allocations: 0.7174 MB / 1.235 GB, free: 37.18 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0003699/0.9945, allocations: 18.05 kB / 1.235 GB, free: 37.16 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.9947, allocations: 24.41 kB / 1.236 GB, free: 37.15 MB / 0.6355 GB Notification: Performance of SimCode: time 2.063e-06/0.9947, allocations: 0 / 1.236 GB, free: 37.15 MB / 0.6355 GB Notification: Performance of Templates: time 0.01582/1.011, allocations: 2.124 MB / 1.238 GB, free: 36.07 MB / 0.6355 GB