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.009153/0.009158, allocations: 108.2 kB / 15.06 MB, free: 5.562 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.00113/0.00113, allocations: 184.4 kB / 15.95 MB, free: 5.523 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 1.944/1.944, allocations: 194.6 MB / 211.3 MB, free: 11.28 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.311/2.311, allocations: 236.2 MB / 492.6 MB, free: 11.33 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004686/0.0004688, allocations: 12 kB / 0.587 GB, free: 2.168 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5453/0.5458, allocations: 98.71 MB / 0.6834 GB, free: 16.87 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001596/0.5475, allocations: 1.283 MB / 0.6846 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0005353/0.548, allocations: 231 kB / 0.6848 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.201e-05/0.5481, allocations: 1.312 kB / 0.6848 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 2.517e-05/0.5482, allocations: 6.141 kB / 0.6848 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0001161/0.5483, allocations: 25.81 kB / 0.6849 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.5485, allocations: 47.75 kB / 0.6849 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0001425/0.5486, allocations: 92.55 kB / 0.685 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.5488, allocations: 22.72 kB / 0.685 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.5489, allocations: 63.48 kB / 0.6851 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.549, allocations: 68.53 kB / 0.6851 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.927e-05/0.5491, allocations: 10.31 kB / 0.6852 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 2.855e-05/0.5491, allocations: 10.91 kB / 0.6852 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 3.95e-05/0.5492, allocations: 25.84 kB / 0.6852 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 4.457e-05/0.5492, allocations: 46.86 kB / 0.6852 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.5494, allocations: 113.2 kB / 0.6853 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.721e-06/0.5494, allocations: 0 / 0.6853 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.247e-06/0.5494, allocations: 0 / 0.6853 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.855e-06/0.5494, allocations: 1.406 kB / 0.6853 GB, free: 15.51 MB / 0.5261 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.0009337/0.5504, allocations: 495.8 kB / 0.6858 GB, free: 15.11 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.5504, allocations: 9.094 kB / 0.6858 GB, free: 15.11 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.256e-05/0.5505, allocations: 17.11 kB / 0.6858 GB, free: 15.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.5516, allocations: 336.9 kB / 0.6862 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.5517, allocations: 8.75 kB / 0.6862 GB, free: 14.87 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.5517, allocations: 16.41 kB / 0.6862 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005476/0.5523, allocations: 175.6 kB / 0.6864 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.5523, allocations: 0 / 0.6864 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.5523, allocations: 2.844 kB / 0.6864 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.568e-06/0.5523, allocations: 5.312 kB / 0.6864 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000695/0.553, allocations: 163.2 kB / 0.6865 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.5542, allocations: 0.583 MB / 0.6871 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007269/0.5549, allocations: 212.1 kB / 0.6873 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.976e-05/0.555, allocations: 2.312 kB / 0.6873 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005879/0.5556, allocations: 193 kB / 0.6875 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=14): time 3.189e-06/0.5556, allocations: 0 / 0.6875 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=14): time 0.001289/0.5569, allocations: 322.3 kB / 0.6878 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.5569, allocations: 107.2 kB / 0.6879 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.5571, allocations: 164.4 kB / 0.688 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.081e-05/0.5572, allocations: 34.95 kB / 0.6881 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.292e-05/0.5573, allocations: 122.5 kB / 0.6882 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.676e-05/0.5573, allocations: 41.42 kB / 0.6882 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.624e-05/0.5573, allocations: 5.281 kB / 0.6882 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.67e-05/0.5574, allocations: 335.2 kB / 0.6886 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004074/0.5578, allocations: 93.97 kB / 0.6886 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/0.5583, allocations: 151.5 kB / 0.6888 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003983/0.5587, allocations: 90.2 kB / 0.6889 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.493e-06/0.5587, allocations: 9.156 kB / 0.6889 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009348/0.5597, allocations: 263.1 kB / 0.6891 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.5597, allocations: 5.125 kB / 0.6891 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.362e-06/0.5597, allocations: 1.344 kB / 0.6891 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.5597, allocations: 1.734 kB / 0.6891 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.5601, allocations: 52.75 kB / 0.6892 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.934e-06/0.5601, allocations: 0.9688 kB / 0.6892 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003213/0.5604, allocations: 47.84 kB / 0.6892 GB, free: 12.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.5605, allocations: 6.438 kB / 0.6892 GB, free: 12.96 MB / 0.5261 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.0001415/0.5606, allocations: 140 kB / 0.6894 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.296e-05/0.5607, allocations: 11.33 kB / 0.6894 GB, free: 12.82 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003334/0.561, allocations: 106.5 kB / 0.6895 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.389e-06/0.561, allocations: 2.281 kB / 0.6895 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.905e-06/0.561, allocations: 4 kB / 0.6895 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.148e-06/0.5611, allocations: 1.797 kB / 0.6895 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002224/0.5613, allocations: 225.3 kB / 0.6897 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-06/0.5613, allocations: 5.031 kB / 0.6897 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.5615, allocations: 34.22 kB / 0.6898 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.034e-06/0.5616, allocations: 1.188 kB / 0.6898 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/0.5616, allocations: 5.422 kB / 0.6898 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.627e-06/0.5616, allocations: 4.562 kB / 0.6898 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.782e-06/0.5616, allocations: 1.531 kB / 0.6898 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008541/0.5625, allocations: 302.1 kB / 0.6901 GB, free: 12.37 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-05/0.5625, allocations: 91.09 kB / 0.6901 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.603e-05/0.5626, allocations: 7.609 kB / 0.6901 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002885/0.5629, allocations: 37.78 kB / 0.6902 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.5631, allocations: 45.19 kB / 0.6902 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-05/0.5631, allocations: 14.59 kB / 0.6902 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 9.538e-05/0.5632, allocations: 119 kB / 0.6904 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.98e-07/0.5632, allocations: 0 / 0.6904 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003464/0.5636, allocations: 41.14 kB / 0.6904 GB, free: 12.14 MB / 0.5261 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.0001593/0.5637, allocations: 110.3 kB / 0.6905 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.000921/0.5647, allocations: 222.4 kB / 0.6907 GB, free: 12 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.641e-06/0.5647, allocations: 5.094 kB / 0.6907 GB, free: 12 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000485/0.5652, allocations: 113.4 kB / 0.6908 GB, free: 11.97 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.5655, allocations: 18.7 kB / 0.6908 GB, free: 11.97 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007596/0.5663, allocations: 303.9 kB / 0.6911 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001715/0.5665, allocations: 0.7159 MB / 0.6918 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0001791/0.5666, allocations: 23.28 kB / 0.6919 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.017e-05/0.5667, allocations: 20.44 kB / 0.6919 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of SimCode: time 1.583e-06/0.5668, allocations: 4 kB / 0.6919 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of Templates: time 0.006834/0.5736, allocations: 1.946 MB / 0.6938 GB, free: 10.88 MB / 0.5261 GB