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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.156/1.156, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.582e-05/3.601e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07118/0.07127, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.357/4.428, allocations: 1.427 GB / 1.596 GB, free: 39.18 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/4.429, allocations: 76.86 kB / 1.596 GB, free: 39.18 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.953/7.381, allocations: 0.5408 GB / 2.137 GB, free: 16.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.335e-06/7.381, allocations: 0 / 2.137 GB, free: 16.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000178/7.382, allocations: 47.88 kB / 2.137 GB, free: 16.73 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.01253/7.394, allocations: 2.512 MB / 2.139 GB, free: 15.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/7.394, allocations: 10.5 kB / 2.139 GB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/7.395, allocations: 158.5 kB / 2.14 GB, free: 15.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003298/7.399, allocations: 0.9639 MB / 2.141 GB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004264/7.399, allocations: 235 kB / 2.141 GB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005293/7.4, allocations: 58.91 kB / 2.141 GB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004644/7.404, allocations: 1.757 MB / 2.143 GB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005039/7.409, allocations: 1.79 MB / 2.144 GB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.544e-05/7.409, allocations: 0 / 2.144 GB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002408/7.41, allocations: 3.875 kB / 2.144 GB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/7.41, allocations: 97.91 kB / 2.144 GB, free: 13.11 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.02141/7.431, allocations: 8.428 MB / 2.153 GB, free: 5.766 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00391/7.435, allocations: 1.404 MB / 2.154 GB, free: 4.512 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002155/7.438, allocations: 0.8791 MB / 2.155 GB, free: 3.727 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3997/7.837, allocations: 36.12 MB / 2.19 GB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.909e-05/7.837, allocations: 46.03 kB / 2.19 GB, free: 11.95 MB / 282.7 MB Notification: Performance of pre-optimization done (n=114): time 4.589e-06/7.837, allocations: 0 / 2.19 GB, free: 11.95 MB / 282.7 MB Notification: Performance of matching and sorting (n=124): time 0.04361/7.881, allocations: 7.497 MB / 2.197 GB, free: 11.42 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/7.881, allocations: 143.8 kB / 2.198 GB, free: 11.26 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/7.883, allocations: 0.6036 MB / 2.198 GB, free: 11.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005552/7.883, allocations: 31.11 kB / 2.198 GB, free: 11.11 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005903/7.884, allocations: 0.5468 MB / 2.199 GB, free: 10.83 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008798/7.885, allocations: 417.8 kB / 2.199 GB, free: 10.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/7.885, allocations: 4 kB / 2.199 GB, free: 10.61 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002394/7.885, allocations: 365.4 kB / 2.2 GB, free: 10.3 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002173/7.887, allocations: 0.815 MB / 2.2 GB, free: 10.3 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002618/7.89, allocations: 1.041 MB / 2.201 GB, free: 10.06 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/7.901, allocations: 1.661 MB / 2.203 GB, free: 10.03 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.25e-05/7.901, allocations: 0 / 2.203 GB, free: 10.03 MB / 282.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.01621/7.917, allocations: 3.316 MB / 2.206 GB, free: 9.859 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.249e-05/7.917, allocations: 7.188 kB / 2.206 GB, free: 9.859 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/7.917, allocations: 7.797 kB / 2.206 GB, free: 9.855 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004581/7.922, allocations: 1.24 MB / 2.207 GB, free: 9.777 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001888/7.924, allocations: 203.2 kB / 2.208 GB, free: 9.777 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01617/7.94, allocations: 6.392 MB / 2.214 GB, free: 6.098 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003044/7.943, allocations: 123.5 kB / 2.214 GB, free: 6.086 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008227/7.944, allocations: 63.98 kB / 2.214 GB, free: 6.086 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.0008416/7.945, allocations: 144.9 kB / 2.214 GB, free: 5.973 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01514/7.96, allocations: 3.107 MB / 2.217 GB, free: 5.797 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007116/7.961, allocations: 108.4 kB / 2.217 GB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01931/7.98, allocations: 5.362 MB / 2.223 GB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.889e-05/7.98, allocations: 34.03 kB / 2.223 GB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/7.98, allocations: 0 / 2.223 GB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.942e-05/7.98, allocations: 8.953 kB / 2.223 GB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02523/8.005, allocations: 7.391 MB / 2.23 GB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.486e-05/8.005, allocations: 0 / 2.23 GB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001748/8.007, allocations: 161.2 kB / 2.23 GB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007264/8.014, allocations: 2.687 MB / 2.233 GB, free: 4.762 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004899/8.015, allocations: 32.2 kB / 2.233 GB, free: 4.758 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0171/8.032, allocations: 7.154 MB / 2.24 GB, free: 18.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/8.032, allocations: 0 / 2.24 GB, free: 18.06 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02273/8.055, allocations: 7.092 MB / 2.247 GB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000681/8.056, allocations: 235.1 kB / 2.247 GB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007179/8.056, allocations: 0 / 2.247 GB, free: 17.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002725/8.059, allocations: 121.9 kB / 2.247 GB, free: 17.44 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008269/8.06, allocations: 181 kB / 2.247 GB, free: 17.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002592/8.06, allocations: 53.75 kB / 2.247 GB, free: 17.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009102/8.061, allocations: 471 kB / 2.248 GB, free: 17.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.11e-07/8.061, allocations: 0 / 2.248 GB, free: 17.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.009168/8.07, allocations: 1.801 MB / 2.249 GB, free: 17.24 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,2 4,4 20,4 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.03925/8.11, allocations: 9.157 MB / 2.258 GB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.009906/8.12, allocations: 2.557 MB / 2.261 GB, free: 8.242 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/8.12, allocations: 4 kB / 2.261 GB, free: 8.238 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007/8.127, allocations: 1.708 MB / 2.262 GB, free: 6.746 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005559/8.132, allocations: 0.5501 MB / 2.263 GB, free: 6.359 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02291/8.155, allocations: 4.293 MB / 2.267 GB, free: 2.652 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001551/8.157, allocations: 1.411 MB / 2.269 GB, free: 1.457 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00159/8.159, allocations: 0.6094 MB / 2.269 GB, free: 0.9102 MB / 298.7 MB Notification: Performance of SimCode: time 1.312e-06/8.159, allocations: 4 kB / 2.269 GB, free: 0.9062 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.293/13.45, allocations: 91.36 MB / 2.358 GB, free: 18.96 MB / 298.7 MB