Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 0.9981/0.9981, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002667/0.0002667, allocations: 11.98 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05639/0.05668, allocations: 25.16 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.265/4.321, allocations: 1.428 GB / 1.607 GB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/4.322, allocations: 76.03 kB / 1.607 GB, free: 12.04 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.344/7.666, allocations: 0.5476 GB / 2.155 GB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.986e-06/7.666, allocations: 3.062 kB / 2.155 GB, free: 11.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001735/7.666, allocations: 33.19 kB / 2.155 GB, free: 11.45 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.01327/7.679, allocations: 2.658 MB / 2.158 GB, free: 10.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/7.679, allocations: 10.03 kB / 2.158 GB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001032/7.68, allocations: 161.2 kB / 2.158 GB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003748/7.684, allocations: 0.9641 MB / 2.159 GB, free: 9.703 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004917/7.685, allocations: 266.2 kB / 2.159 GB, free: 9.543 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006694/7.685, allocations: 103.7 kB / 2.159 GB, free: 9.543 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00708/7.693, allocations: 2.131 MB / 2.161 GB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.468e-05/7.693, allocations: 3.906 kB / 2.161 GB, free: 9.312 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002781/7.693, allocations: 47.64 kB / 2.161 GB, free: 9.312 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002033/7.693, allocations: 103 kB / 2.161 GB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007866/7.701, allocations: 2.221 MB / 2.163 GB, free: 9.289 MB / 266.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.0229/7.724, allocations: 8.692 MB / 2.172 GB, free: 5.504 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006239/7.73, allocations: 1.661 MB / 2.174 GB, free: 5.453 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1098/7.84, allocations: 36.02 MB / 2.209 GB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.898e-05/7.84, allocations: 47.06 kB / 2.209 GB, free: 12.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=114): time 4.278e-06/7.84, allocations: 0 / 2.209 GB, free: 12.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=124): time 0.04056/7.881, allocations: 8.002 MB / 2.217 GB, free: 10.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.933e-05/7.881, allocations: 145.5 kB / 2.217 GB, free: 10.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002127/7.883, allocations: 1.024 MB / 2.218 GB, free: 9.543 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004894/7.884, allocations: 45.52 kB / 2.218 GB, free: 9.508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005045/7.884, allocations: 0.5121 MB / 2.218 GB, free: 9.188 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007934/7.885, allocations: 443.3 kB / 2.219 GB, free: 8.852 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001876/7.885, allocations: 23.19 kB / 2.219 GB, free: 8.848 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/7.885, allocations: 369.5 kB / 2.219 GB, free: 8.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003513/7.889, allocations: 0.9604 MB / 2.22 GB, free: 8.039 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003945/7.893, allocations: 1.207 MB / 2.221 GB, free: 7.273 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003879/7.897, allocations: 1.025 MB / 2.222 GB, free: 6.746 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.938e-06/7.897, allocations: 0 / 2.222 GB, free: 6.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.01225/7.909, allocations: 3.016 MB / 2.225 GB, free: 4.945 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/7.909, allocations: 16.66 kB / 2.225 GB, free: 4.934 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/7.909, allocations: 4 kB / 2.225 GB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01185/7.921, allocations: 1.932 MB / 2.227 GB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001837/7.923, allocations: 203.8 kB / 2.227 GB, free: 3.285 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2383/8.161, allocations: 5.925 MB / 2.233 GB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002905/8.164, allocations: 149 kB / 2.233 GB, free: 39.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004404/8.165, allocations: 63.64 kB / 2.233 GB, free: 39.77 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.001392/8.166, allocations: 389.3 kB / 2.234 GB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000485/8.167, allocations: 131.6 kB / 2.234 GB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01491/8.182, allocations: 5.101 MB / 2.239 GB, free: 39.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.93e-05/8.182, allocations: 38.75 kB / 2.239 GB, free: 39.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/8.182, allocations: 5.141 kB / 2.239 GB, free: 39.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.616e-05/8.182, allocations: 9.75 kB / 2.239 GB, free: 39.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02126/8.203, allocations: 7.283 MB / 2.246 GB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.194e-05/8.203, allocations: 3.594 kB / 2.246 GB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002104/8.205, allocations: 160.6 kB / 2.246 GB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02094/8.226, allocations: 3.665 MB / 2.25 GB, free: 38.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005925/8.227, allocations: 47.84 kB / 2.25 GB, free: 38.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01611/8.243, allocations: 6.4 MB / 2.256 GB, free: 36.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/8.243, allocations: 0.5 kB / 2.256 GB, free: 36.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02659/8.27, allocations: 6.955 MB / 2.263 GB, free: 35.87 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008893/8.271, allocations: 268.7 kB / 2.263 GB, free: 35.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009111/8.272, allocations: 27 kB / 2.263 GB, free: 35.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003298/8.275, allocations: 148.5 kB / 2.263 GB, free: 35.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000868/8.276, allocations: 177 kB / 2.263 GB, free: 35.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003604/8.276, allocations: 57.08 kB / 2.263 GB, free: 35.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.002042/8.278, allocations: 0.7045 MB / 2.264 GB, free: 35.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.41e-07/8.278, allocations: 0 / 2.264 GB, free: 35.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.01/8.288, allocations: 1.886 MB / 2.266 GB, free: 35.55 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.01389/8.302, allocations: 2.438 MB / 2.268 GB, free: 35.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.01191/8.314, allocations: 2.887 MB / 2.271 GB, free: 35.24 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/8.314, allocations: 4.719 kB / 2.271 GB, free: 35.24 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007887/8.322, allocations: 1.875 MB / 2.273 GB, free: 35.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00558/8.328, allocations: 0.623 MB / 2.273 GB, free: 35.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01819/8.346, allocations: 4.931 MB / 2.278 GB, free: 33.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/8.347, allocations: 1.401 MB / 2.28 GB, free: 32.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008019/8.348, allocations: 125 kB / 2.28 GB, free: 32.9 MB / 298.7 MB Notification: Performance of SimCode: time 1.573e-06/8.348, allocations: 1.031 kB / 2.28 GB, free: 32.9 MB / 298.7 MB Notification: Performance of Templates: time 0.3708/8.719, allocations: 85.23 MB / 2.363 GB, free: 41.16 MB / 298.7 MB