Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Media.Examples.WaterIF97.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.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_1_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.017/1.017, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002761/0.0002764, allocations: 12 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05786/0.05816, allocations: 25.16 MB / 183.6 MB, free: 5.879 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.503/4.561, allocations: 1.423 GB / 1.603 GB, free: 20.31 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/4.561, allocations: 64.81 kB / 1.603 GB, free: 20.28 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6236/5.185, allocations: 109 MB / 1.709 GB, free: 7.777 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.003e-06/5.185, allocations: 0 / 1.709 GB, free: 7.777 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.324e-05/5.185, allocations: 0 / 1.709 GB, free: 7.777 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.008141/5.193, allocations: 1.158 MB / 1.71 GB, free: 6.566 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/5.193, allocations: 12.03 kB / 1.71 GB, free: 6.555 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.668e-05/5.193, allocations: 42.56 kB / 1.71 GB, free: 6.504 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.873e-05/5.193, allocations: 19.8 kB / 1.71 GB, free: 6.484 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/5.194, allocations: 210.9 kB / 1.711 GB, free: 6.238 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.3e-05/5.194, allocations: 20.23 kB / 1.711 GB, free: 6.219 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.918e-05/5.194, allocations: 23.92 kB / 1.711 GB, free: 6.195 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/5.195, allocations: 342.1 kB / 1.711 GB, free: 5.832 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/5.195, allocations: 0 / 1.711 GB, free: 5.832 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.016e-05/5.195, allocations: 8 kB / 1.711 GB, free: 5.824 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/5.195, allocations: 4 kB / 1.711 GB, free: 5.82 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001965/5.197, allocations: 331.6 kB / 1.711 GB, free: 5.496 MB / 234.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.001787/5.199, allocations: 1.29 MB / 1.713 GB, free: 4.078 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008078/5.2, allocations: 232 kB / 1.713 GB, free: 3.828 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.312/5.512, allocations: 46.38 MB / 1.758 GB, free: 25.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.368e-05/5.512, allocations: 42.19 kB / 1.758 GB, free: 25.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.986e-06/5.512, allocations: 0 / 1.758 GB, free: 25.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=33): time 0.01101/5.523, allocations: 1.592 MB / 1.76 GB, free: 24.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/5.523, allocations: 115.8 kB / 1.76 GB, free: 24.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/5.523, allocations: 114.4 kB / 1.76 GB, free: 24.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.029e-05/5.523, allocations: 31.86 kB / 1.76 GB, free: 24.58 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.062e-05/5.524, allocations: 172.4 kB / 1.76 GB, free: 24.43 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/5.524, allocations: 115.8 kB / 1.76 GB, free: 24.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.543e-05/5.524, allocations: 10.12 kB / 1.76 GB, free: 24.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/5.524, allocations: 321.2 kB / 1.761 GB, free: 24.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006482/5.524, allocations: 142 kB / 1.761 GB, free: 24.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006607/5.525, allocations: 210.5 kB / 1.761 GB, free: 23.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006772/5.526, allocations: 146.7 kB / 1.761 GB, free: 23.97 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/5.526, allocations: 3.609 kB / 1.761 GB, free: 23.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001857/5.528, allocations: 439.6 kB / 1.761 GB, free: 23.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/5.528, allocations: 6.844 kB / 1.761 GB, free: 23.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/5.528, allocations: 3.906 kB / 1.761 GB, free: 23.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003599/5.528, allocations: 40.59 kB / 1.761 GB, free: 23.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008143/5.529, allocations: 93.42 kB / 1.762 GB, free: 23.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005003/5.53, allocations: 0.5455 MB / 1.762 GB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005352/5.53, allocations: 29.89 kB / 1.762 GB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-05/5.53, allocations: 15.89 kB / 1.762 GB, free: 23.38 MB / 266.7 MB Warning: Assuming fixed start value for the following 3 variables: V:VARIABLE(start = 0.1 unit = "m3" fixed = true ) type: Real medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 100000.0 unit = "J/kg" fixed = true nominal = 1000000.0 stateSelect=StateSelect.prefer ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(min = max(0.0, max(0.0, 2000.0)) max = min(100000000.0, min(100000000.0, 1000000000.0)) start = 100000.0 unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004004/5.531, allocations: 158.2 kB / 1.762 GB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/5.531, allocations: 19.28 kB / 1.762 GB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002919/5.534, allocations: 1.22 MB / 1.764 GB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.807e-05/5.534, allocations: 18.25 kB / 1.764 GB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/5.534, allocations: 3.562 kB / 1.764 GB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/5.534, allocations: 10.8 kB / 1.764 GB, free: 23.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003841/5.538, allocations: 1.666 MB / 1.765 GB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/5.538, allocations: 3.969 kB / 1.765 GB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007452/5.538, allocations: 87.22 kB / 1.765 GB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005594/5.539, allocations: 82.31 kB / 1.765 GB, free: 22.69 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.249e-05/5.539, allocations: 17.17 kB / 1.765 GB, free: 22.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004836/5.54, allocations: 0.5797 MB / 1.766 GB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/5.54, allocations: 4.25 kB / 1.766 GB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003173/5.543, allocations: 1.617 MB / 1.767 GB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001358/5.543, allocations: 116.6 kB / 1.768 GB, free: 21.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.143e-05/5.543, allocations: 7.219 kB / 1.768 GB, free: 21.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006131/5.544, allocations: 35.48 kB / 1.768 GB, free: 21.58 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/5.544, allocations: 29.56 kB / 1.768 GB, free: 21.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.468e-05/5.544, allocations: 17.16 kB / 1.768 GB, free: 21.58 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.537e-05/5.544, allocations: 90.47 kB / 1.768 GB, free: 21.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-07/5.544, allocations: 0 / 1.768 GB, free: 21.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.005015/5.549, allocations: 1.029 MB / 1.769 GB, free: 21.5 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 9 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.013/5.562, allocations: 3.788 MB / 1.772 GB, free: 19.83 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001923/5.564, allocations: 0.5734 MB / 1.773 GB, free: 19.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/5.564, allocations: 3.938 kB / 1.773 GB, free: 19.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/5.565, allocations: 467 kB / 1.773 GB, free: 19.42 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009343/5.566, allocations: 74.53 kB / 1.774 GB, free: 19.4 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009707/5.576, allocations: 3.691 MB / 1.777 GB, free: 16.89 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004124/5.576, allocations: 0.796 MB / 1.778 GB, free: 16.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003374/5.577, allocations: 122.9 kB / 1.778 GB, free: 16.11 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/5.577, allocations: 0 / 1.778 GB, free: 16.11 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.609/9.186, allocations: 24.62 MB / 1.802 GB, free: 13.01 MB / 266.7 MB