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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.003/1.003, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.493e-05/1.503e-05, allocations: 0 / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04705/0.0471, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.386/3.433, allocations: 1.427 GB / 1.596 GB, free: 2.879 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/3.433, allocations: 67.34 kB / 1.596 GB, free: 2.848 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.582/6.015, allocations: 0.5408 GB / 2.137 GB, free: 16.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.229e-06/6.015, allocations: 0 / 2.137 GB, free: 16.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001141/6.015, allocations: 32.84 kB / 2.137 GB, free: 16.38 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.009738/6.025, allocations: 2.523 MB / 2.139 GB, free: 15.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/6.025, allocations: 9.531 kB / 2.139 GB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000782/6.026, allocations: 161.3 kB / 2.14 GB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002764/6.029, allocations: 0.9526 MB / 2.14 GB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003364/6.029, allocations: 229.9 kB / 2.141 GB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004172/6.029, allocations: 70.06 kB / 2.141 GB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003885/6.033, allocations: 1.759 MB / 2.142 GB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003797/6.037, allocations: 1.792 MB / 2.144 GB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.821e-05/6.037, allocations: 0 / 2.144 GB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002176/6.037, allocations: 3.656 kB / 2.144 GB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001547/6.038, allocations: 101.9 kB / 2.144 GB, free: 14.23 MB / 266.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01711/6.055, allocations: 8.433 MB / 2.153 GB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003212/6.058, allocations: 1.403 MB / 2.154 GB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/6.06, allocations: 0.8834 MB / 2.155 GB, free: 9.637 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2557/6.315, allocations: 36.15 MB / 2.19 GB, free: 25.29 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.502e-05/6.316, allocations: 47.78 kB / 2.19 GB, free: 25.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=114): time 4.255e-06/6.316, allocations: 0.5625 kB / 2.19 GB, free: 25.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=124): time 0.03413/6.35, allocations: 7.495 MB / 2.197 GB, free: 24.78 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/6.35, allocations: 143.9 kB / 2.198 GB, free: 24.62 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/6.351, allocations: 0.6061 MB / 2.198 GB, free: 24.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002446/6.351, allocations: 29.45 kB / 2.198 GB, free: 24.47 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003823/6.351, allocations: 0.5447 MB / 2.199 GB, free: 24.19 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004369/6.352, allocations: 420.7 kB / 2.199 GB, free: 23.97 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/6.352, allocations: 1.031 kB / 2.199 GB, free: 23.97 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/6.352, allocations: 365.1 kB / 2.199 GB, free: 23.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/6.354, allocations: 0.815 MB / 2.2 GB, free: 23.66 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001801/6.356, allocations: 1.038 MB / 2.201 GB, free: 23.43 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008299/6.364, allocations: 1.658 MB / 2.203 GB, free: 23.42 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.44e-05/6.364, allocations: 2.625 kB / 2.203 GB, free: 23.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.01225/6.376, allocations: 3.315 MB / 2.206 GB, free: 23.27 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/6.376, allocations: 8.938 kB / 2.206 GB, free: 23.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/6.376, allocations: 10.98 kB / 2.206 GB, free: 23.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003507/6.38, allocations: 1.231 MB / 2.207 GB, free: 23.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/6.381, allocations: 201.9 kB / 2.208 GB, free: 23.21 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01924/6.4, allocations: 6.397 MB / 2.214 GB, free: 19.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003383/6.404, allocations: 121 kB / 2.214 GB, free: 19.54 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000498/6.404, allocations: 66.86 kB / 2.214 GB, free: 19.54 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.lowerTank.V:DUMMY_DER(fixed = false ) "Actual tank volume" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.upperTank.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "density" type: Real [1] $DER.upperTank.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real 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 () * 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 {2 4,3 3,2 4,4 13,4 13,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007457/6.405, allocations: 148 kB / 2.214 GB, free: 19.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000535/6.406, allocations: 107.6 kB / 2.214 GB, free: 19.37 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02587/6.432, allocations: 5.356 MB / 2.219 GB, free: 19.07 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.089e-05/6.432, allocations: 39.64 kB / 2.22 GB, free: 19.07 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/6.432, allocations: 3.562 kB / 2.22 GB, free: 19.07 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-05/6.432, allocations: 9.125 kB / 2.22 GB, free: 19.07 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02099/6.453, allocations: 7.39 MB / 2.227 GB, free: 18.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/6.453, allocations: 0 / 2.227 GB, free: 18.59 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/6.454, allocations: 164.3 kB / 2.227 GB, free: 18.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005251/6.459, allocations: 2.692 MB / 2.23 GB, free: 18.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002685/6.459, allocations: 25.97 kB / 2.23 GB, free: 18.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01339/6.473, allocations: 7.142 MB / 2.237 GB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/6.473, allocations: 3.094 kB / 2.237 GB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01767/6.491, allocations: 7.085 MB / 2.243 GB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000502/6.491, allocations: 246.7 kB / 2.244 GB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00034/6.491, allocations: 0 / 2.244 GB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001734/6.493, allocations: 120 kB / 2.244 GB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004856/6.494, allocations: 175.7 kB / 2.244 GB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003017/6.494, allocations: 60.27 kB / 2.244 GB, free: 15.21 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007282/6.495, allocations: 471.9 kB / 2.244 GB, free: 15.11 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.519e-06/6.495, allocations: 1.375 kB / 2.244 GB, free: 15.11 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00698/6.502, allocations: 1.798 MB / 2.246 GB, free: 15.02 MB / 282.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) * 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.01101/6.513, allocations: 2.559 MB / 2.249 GB, free: 14.77 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.007144/6.52, allocations: 2.561 MB / 2.251 GB, free: 14.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/6.52, allocations: 5.344 kB / 2.251 GB, free: 14.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005091/6.525, allocations: 1.706 MB / 2.253 GB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/6.529, allocations: 0.555 MB / 2.253 GB, free: 14.69 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/6.54, allocations: 3.377 MB / 2.257 GB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/6.541, allocations: 1.407 MB / 2.258 GB, free: 13.21 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006017/6.542, allocations: 113.6 kB / 2.258 GB, free: 13.2 MB / 282.7 MB Notification: Performance of SimCode: time 1.641e-06/6.542, allocations: 5.781 kB / 2.258 GB, free: 13.2 MB / 282.7 MB Notification: Performance of Templates: time 0.3014/6.843, allocations: 84.53 MB / 2.341 GB, free: 18.93 MB / 282.7 MB