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 1.059/1.059, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.0002731, allocations: 11.98 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05688/0.05719, allocations: 25.17 MB / 183.6 MB, free: 5.883 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.483/4.54, allocations: 1.428 GB / 1.607 GB, free: 9.668 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/4.54, allocations: 77.14 kB / 1.607 GB, free: 9.629 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.13/7.671, allocations: 0.5476 GB / 2.154 GB, free: 11.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.066e-06/7.671, allocations: 3.438 kB / 2.154 GB, free: 11.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000147/7.671, allocations: 33.56 kB / 2.155 GB, free: 11.1 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.01293/7.684, allocations: 2.661 MB / 2.157 GB, free: 9.734 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/7.684, allocations: 6.906 kB / 2.157 GB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008439/7.685, allocations: 184.8 kB / 2.157 GB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005404/7.685, allocations: 161.8 kB / 2.157 GB, free: 9.617 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003115/7.688, allocations: 0.9608 MB / 2.158 GB, free: 9.297 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004074/7.689, allocations: 273.1 kB / 2.159 GB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003984/7.689, allocations: 102.1 kB / 2.159 GB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006581/7.696, allocations: 2.115 MB / 2.161 GB, free: 8.902 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.282e-05/7.696, allocations: 7.25 kB / 2.161 GB, free: 8.902 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002586/7.696, allocations: 50.75 kB / 2.161 GB, free: 8.902 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000196/7.696, allocations: 102.1 kB / 2.161 GB, free: 8.898 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00745/7.704, allocations: 2.219 MB / 2.163 GB, free: 8.883 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.02197/7.726, allocations: 8.694 MB / 2.172 GB, free: 5.105 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006107/7.732, allocations: 1.656 MB / 2.173 GB, free: 5.062 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1065/7.839, allocations: 36.02 MB / 2.208 GB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.974e-05/7.839, allocations: 52.12 kB / 2.208 GB, free: 12.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=114): time 4.689e-06/7.839, allocations: 0 / 2.208 GB, free: 12.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=124): time 0.03857/7.877, allocations: 8.005 MB / 2.216 GB, free: 9.723 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/7.877, allocations: 144.2 kB / 2.216 GB, free: 9.555 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002014/7.879, allocations: 0.9069 MB / 2.217 GB, free: 8.988 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004594/7.88, allocations: 54.06 kB / 2.217 GB, free: 8.949 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005451/7.881, allocations: 0.5085 MB / 2.218 GB, free: 8.625 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000813/7.881, allocations: 435.7 kB / 2.218 GB, free: 8.297 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/7.882, allocations: 25.5 kB / 2.218 GB, free: 8.293 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002194/7.882, allocations: 366.3 kB / 2.219 GB, free: 7.961 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003572/7.885, allocations: 0.966 MB / 2.22 GB, free: 7.477 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004269/7.89, allocations: 1.198 MB / 2.221 GB, free: 6.719 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004113/7.894, allocations: 1.025 MB / 2.222 GB, free: 6.195 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/7.894, allocations: 0 / 2.222 GB, free: 6.195 MB / 298.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.01524/7.909, allocations: 3.018 MB / 2.225 GB, free: 4.125 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.836e-05/7.909, allocations: 9.406 kB / 2.225 GB, free: 4.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.84e-05/7.909, allocations: 4.344 kB / 2.225 GB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01815/7.928, allocations: 1.941 MB / 2.227 GB, free: 2.617 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002488/7.93, allocations: 206.8 kB / 2.227 GB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2558/8.186, allocations: 5.93 MB / 2.233 GB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002697/8.189, allocations: 144 kB / 2.233 GB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002309/8.189, allocations: 66.03 kB / 2.233 GB, free: 39.63 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.001068/8.19, allocations: 386.8 kB / 2.233 GB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003519/8.19, allocations: 130.7 kB / 2.233 GB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01339/8.204, allocations: 5.096 MB / 2.238 GB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-05/8.204, allocations: 38.53 kB / 2.238 GB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/8.204, allocations: 1.156 kB / 2.238 GB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.155e-05/8.204, allocations: 6.562 kB / 2.238 GB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01859/8.223, allocations: 7.292 MB / 2.245 GB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.588e-05/8.223, allocations: 0 / 2.245 GB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/8.224, allocations: 163.5 kB / 2.246 GB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01689/8.241, allocations: 3.659 MB / 2.249 GB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006054/8.242, allocations: 46.36 kB / 2.249 GB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01462/8.256, allocations: 6.403 MB / 2.255 GB, free: 36.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/8.257, allocations: 0 / 2.255 GB, free: 36.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01926/8.276, allocations: 6.957 MB / 2.262 GB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007281/8.277, allocations: 274.7 kB / 2.263 GB, free: 35.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007825/8.277, allocations: 27.62 kB / 2.263 GB, free: 35.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002862/8.28, allocations: 140.5 kB / 2.263 GB, free: 35.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008636/8.281, allocations: 182.3 kB / 2.263 GB, free: 35.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003848/8.282, allocations: 54.62 kB / 2.263 GB, free: 35.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001514/8.283, allocations: 0.7071 MB / 2.264 GB, free: 35.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.21e-07/8.283, allocations: 0 / 2.264 GB, free: 35.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.009889/8.293, allocations: 1.884 MB / 2.265 GB, free: 35.39 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.03921/8.332, allocations: 8.913 MB / 2.274 GB, free: 34.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.01153/8.344, allocations: 2.881 MB / 2.277 GB, free: 34.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/8.344, allocations: 1.125 kB / 2.277 GB, free: 34.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007345/8.351, allocations: 1.876 MB / 2.279 GB, free: 34.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005196/8.357, allocations: 0.6245 MB / 2.279 GB, free: 34.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04501/8.402, allocations: 16.77 MB / 2.296 GB, free: 27.01 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/8.403, allocations: 1.403 MB / 2.297 GB, free: 26.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00138/8.404, allocations: 0.6156 MB / 2.298 GB, free: 25.78 MB / 298.7 MB Notification: Performance of SimCode: time 1.262e-06/8.404, allocations: 0 / 2.298 GB, free: 25.78 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.069/13.47, allocations: 91.68 MB / 2.387 GB, free: 36.66 MB / 298.7 MB