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: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9752/0.9752, allocations: 111.2 MB / 124.2 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.106e-05/3.11e-05, allocations: 4 kB / 154.4 MB, free: 13.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1674, allocations: 25.15 MB / 179.5 MB, free: 0.6914 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.306/4.474, allocations: 1.427 GB / 1.603 GB, free: 39.44 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/4.474, allocations: 67.91 kB / 1.603 GB, free: 39.41 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.022/7.496, allocations: 0.5458 GB / 2.149 GB, free: 11.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.154e-06/7.496, allocations: 0 / 2.149 GB, free: 11.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001389/7.496, allocations: 36.88 kB / 2.149 GB, free: 11.95 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.01219/7.509, allocations: 2.515 MB / 2.151 GB, free: 10.69 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/7.509, allocations: 11.03 kB / 2.151 GB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006302/7.509, allocations: 172.2 kB / 2.151 GB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005795/7.51, allocations: 162.5 kB / 2.152 GB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00304/7.513, allocations: 0.9599 MB / 2.152 GB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004113/7.513, allocations: 267.3 kB / 2.153 GB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004668/7.514, allocations: 105.6 kB / 2.153 GB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005686/7.52, allocations: 1.999 MB / 2.155 GB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.887e-05/7.52, allocations: 11.88 kB / 2.155 GB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000264/7.52, allocations: 42.89 kB / 2.155 GB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002023/7.52, allocations: 113.3 kB / 2.155 GB, free: 9.855 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006069/7.526, allocations: 2.048 MB / 2.157 GB, free: 9.84 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.02196/7.548, allocations: 8.689 MB / 2.165 GB, free: 6.059 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004865/7.553, allocations: 1.517 MB / 2.167 GB, free: 6.027 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002516/7.556, allocations: 0.9097 MB / 2.168 GB, free: 6.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1073/7.663, allocations: 36.14 MB / 2.203 GB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.389e-05/7.663, allocations: 45.5 kB / 2.203 GB, free: 13.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=114): time 3.837e-06/7.663, allocations: 4 kB / 2.203 GB, free: 13.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=124): time 0.01995/7.683, allocations: 5.368 MB / 2.208 GB, free: 13.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/7.683, allocations: 147.2 kB / 2.208 GB, free: 12.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001829/7.685, allocations: 0.8944 MB / 2.209 GB, free: 12.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005461/7.686, allocations: 48.64 kB / 2.209 GB, free: 12.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005002/7.686, allocations: 0.5129 MB / 2.21 GB, free: 12.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008476/7.687, allocations: 433.1 kB / 2.21 GB, free: 12.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/7.687, allocations: 26 kB / 2.21 GB, free: 12.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002218/7.688, allocations: 371.8 kB / 2.211 GB, free: 11.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002266/7.69, allocations: 0.8377 MB / 2.212 GB, free: 11.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002409/7.692, allocations: 1.084 MB / 2.213 GB, free: 11.56 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002353/7.695, allocations: 0.8966 MB / 2.213 GB, free: 11.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.397e-06/7.695, allocations: 2.188 kB / 2.213 GB, free: 11.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.007663/7.702, allocations: 2.66 MB / 2.216 GB, free: 11.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/7.703, allocations: 3.875 kB / 2.216 GB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/7.703, allocations: 7.938 kB / 2.216 GB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009203/7.712, allocations: 1.69 MB / 2.218 GB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/7.714, allocations: 197 kB / 2.218 GB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008762/7.722, allocations: 5.603 MB / 2.223 GB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00289/7.725, allocations: 144.5 kB / 2.224 GB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004596/7.726, allocations: 67.14 kB / 2.224 GB, free: 7.621 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 () * 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.0005723/7.726, allocations: 186.1 kB / 2.224 GB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004549/7.727, allocations: 128.5 kB / 2.224 GB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01147/7.738, allocations: 4.761 MB / 2.229 GB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-05/7.739, allocations: 39.05 kB / 2.229 GB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/7.739, allocations: 0 / 2.229 GB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.622e-05/7.739, allocations: 13.84 kB / 2.229 GB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0186/7.757, allocations: 6.935 MB / 2.235 GB, free: 2.223 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.368e-05/7.757, allocations: 0.5625 kB / 2.235 GB, free: 2.223 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001712/7.759, allocations: 162.1 kB / 2.236 GB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3089/8.068, allocations: 4.029 MB / 2.239 GB, free: 42.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006498/8.069, allocations: 42.48 kB / 2.239 GB, free: 42.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01204/8.081, allocations: 6.134 MB / 2.245 GB, free: 39.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/8.081, allocations: 2.156 kB / 2.245 GB, free: 39.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02309/8.104, allocations: 6.47 MB / 2.252 GB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/8.105, allocations: 269.9 kB / 2.252 GB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001063/8.106, allocations: 26.28 kB / 2.252 GB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004251/8.11, allocations: 148.2 kB / 2.252 GB, free: 39.28 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001176/8.112, allocations: 173.9 kB / 2.252 GB, free: 39.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004729/8.112, allocations: 58.7 kB / 2.252 GB, free: 39.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00226/8.114, allocations: 0.7008 MB / 2.253 GB, free: 39.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.563e-06/8.115, allocations: 3.219 kB / 2.253 GB, free: 39.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.01227/8.127, allocations: 1.881 MB / 2.255 GB, free: 39.16 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) * 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,1 5,4 20,4 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.04028/8.167, allocations: 8.421 MB / 2.263 GB, free: 38.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.01191/8.179, allocations: 2.623 MB / 2.266 GB, free: 38.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/8.179, allocations: 5.906 kB / 2.266 GB, free: 38.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006584/8.186, allocations: 1.746 MB / 2.267 GB, free: 38.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007096/8.193, allocations: 0.6153 MB / 2.268 GB, free: 38.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02672/8.22, allocations: 4.472 MB / 2.272 GB, free: 37.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001524/8.221, allocations: 1.407 MB / 2.274 GB, free: 36.42 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001926/8.223, allocations: 0.6191 MB / 2.274 GB, free: 36.41 MB / 298.7 MB Notification: Performance of SimCode: time 1.793e-06/8.223, allocations: 0 / 2.274 GB, free: 36.41 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.897/13.12, allocations: 91.93 MB / 2.364 GB, free: 41.28 MB / 298.7 MB