Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 1/1, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002651/0.0002652, allocations: 7.938 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0814/0.08168, allocations: 25.17 MB / 183.5 MB, free: 5.973 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.57/3.652, allocations: 1.428 GB / 1.607 GB, free: 58.57 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/3.652, allocations: 70.69 kB / 1.607 GB, free: 58.57 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.372/6.024, allocations: 0.5476 GB / 2.154 GB, free: 7.309 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.882e-06/6.024, allocations: 0 / 2.154 GB, free: 7.309 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000154/6.024, allocations: 40.09 kB / 2.154 GB, free: 7.27 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01522/6.039, allocations: 2.659 MB / 2.157 GB, free: 4.555 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/6.039, allocations: 12.03 kB / 2.157 GB, free: 4.543 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/6.04, allocations: 159.1 kB / 2.157 GB, free: 4.387 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004429/6.045, allocations: 0.9607 MB / 2.158 GB, free: 3.379 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005511/6.045, allocations: 270.5 kB / 2.158 GB, free: 3.082 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005189/6.046, allocations: 107.9 kB / 2.158 GB, free: 2.977 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009955/6.056, allocations: 2.109 MB / 2.161 GB, free: 0.7812 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.32e-05/6.056, allocations: 8 kB / 2.161 GB, free: 0.7734 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004168/6.057, allocations: 47.92 kB / 2.161 GB, free: 0.7266 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002786/6.057, allocations: 102.1 kB / 2.161 GB, free: 0.625 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/6.069, allocations: 2.222 MB / 2.163 GB, free: 14.39 MB / 282.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03608/6.105, allocations: 8.695 MB / 2.171 GB, free: 5.16 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01011/6.115, allocations: 1.651 MB / 2.173 GB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2716/6.387, allocations: 36 MB / 2.208 GB, free: 18.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.249e-05/6.387, allocations: 50.7 kB / 2.208 GB, free: 18.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=114): time 5.318e-06/6.387, allocations: 0 / 2.208 GB, free: 18.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=124): time 0.03053/6.418, allocations: 8.007 MB / 2.216 GB, free: 18.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/6.418, allocations: 144.7 kB / 2.216 GB, free: 17.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001577/6.42, allocations: 0.9103 MB / 2.217 GB, free: 17.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003525/6.42, allocations: 48.77 kB / 2.217 GB, free: 17.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004278/6.42, allocations: 0.5104 MB / 2.218 GB, free: 17.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004832/6.421, allocations: 433.8 kB / 2.218 GB, free: 17.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/6.421, allocations: 31.25 kB / 2.218 GB, free: 17.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002118/6.421, allocations: 358.6 kB / 2.218 GB, free: 16.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002482/6.424, allocations: 0.9632 MB / 2.219 GB, free: 16.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002693/6.426, allocations: 1.207 MB / 2.22 GB, free: 16.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002753/6.429, allocations: 1.024 MB / 2.221 GB, free: 16.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/6.429, allocations: 2.844 kB / 2.221 GB, free: 16.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.009495/6.439, allocations: 3.026 MB / 2.224 GB, free: 16.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/6.439, allocations: 10.56 kB / 2.224 GB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/6.439, allocations: 2.875 kB / 2.224 GB, free: 16.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009547/6.448, allocations: 1.939 MB / 2.226 GB, free: 16.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/6.45, allocations: 199.6 kB / 2.227 GB, free: 16.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009529/6.459, allocations: 5.93 MB / 2.232 GB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002305/6.462, allocations: 147 kB / 2.232 GB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002874/6.462, allocations: 65.17 kB / 2.233 GB, free: 12.71 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 9 (overflow.flowModel.states[2].phase,overflow.flowModel.states[1].phase,pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 110 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {1 5,3 3,1 5,4 13,5 12,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00104/6.463, allocations: 389.7 kB / 2.233 GB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003663/6.463, allocations: 129.1 kB / 2.233 GB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/6.475, allocations: 5.103 MB / 2.238 GB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.64e-05/6.475, allocations: 34.92 kB / 2.238 GB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.065e-06/6.475, allocations: 3.906 kB / 2.238 GB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-05/6.475, allocations: 8.531 kB / 2.238 GB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0161/6.491, allocations: 7.296 MB / 2.245 GB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-05/6.491, allocations: 0 / 2.245 GB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/6.492, allocations: 164 kB / 2.245 GB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01222/6.505, allocations: 3.662 MB / 2.249 GB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003595/6.505, allocations: 45.91 kB / 2.249 GB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/6.516, allocations: 6.395 MB / 2.255 GB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.172e-06/6.516, allocations: 0 / 2.255 GB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01527/6.532, allocations: 6.948 MB / 2.262 GB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006714/6.532, allocations: 271.3 kB / 2.262 GB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004633/6.533, allocations: 30.42 kB / 2.262 GB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/6.534, allocations: 151.6 kB / 2.262 GB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004603/6.535, allocations: 176.5 kB / 2.263 GB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000216/6.535, allocations: 57.73 kB / 2.263 GB, free: 8.203 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001254/6.536, allocations: 0.7035 MB / 2.263 GB, free: 8.094 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.19e-07/6.536, allocations: 2.344 kB / 2.263 GB, free: 8.094 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.006951/6.543, allocations: 1.884 MB / 2.265 GB, free: 7.996 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.h,upperTank.level,lowerTank.medium.h,lowerTank.level) * Number of discrete variables: 21 ($cse3.phase,$cse3.region,$cse7.phase,$cse8.phase,$cse9.phase,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse21.phase,$cse21.region,$cse24.phase,$cse25.phase,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 4,3 6,2 4,4 20,4 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01024/6.554, allocations: 2.448 MB / 2.268 GB, free: 7.645 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.008357/6.562, allocations: 2.894 MB / 2.27 GB, free: 7.555 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.719e-06/6.562, allocations: 0 / 2.27 GB, free: 7.555 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005843/6.568, allocations: 1.876 MB / 2.272 GB, free: 6.863 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004076/6.572, allocations: 0.6184 MB / 2.273 GB, free: 6.414 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/6.586, allocations: 4.93 MB / 2.278 GB, free: 2.125 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001435/6.587, allocations: 1.402 MB / 2.279 GB, free: 0.9375 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006838/6.588, allocations: 121.9 kB / 2.279 GB, free: 0.8281 MB / 298.7 MB Notification: Performance of SimCode: time 1.753e-06/6.588, allocations: 0 / 2.279 GB, free: 0.8281 MB / 298.7 MB Notification: Performance of Templates: time 0.304/6.892, allocations: 85.31 MB / 2.362 GB, free: 20.14 MB / 298.7 MB