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.034/1.034, allocations: 111.2 MB / 124.2 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.236e-05, allocations: 4 kB / 154.4 MB, free: 13.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1709, allocations: 25.16 MB / 179.5 MB, free: 0.832 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.056/4.227, allocations: 1.423 GB / 1.599 GB, free: 49.34 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/4.227, allocations: 56.47 kB / 1.599 GB, free: 49.31 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.71/4.937, allocations: 108.8 MB / 1.705 GB, free: 29.51 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.735e-06/4.937, allocations: 3.562 kB / 1.705 GB, free: 29.51 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.674e-05/4.937, allocations: 0 / 1.705 GB, free: 29.51 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.008324/4.945, allocations: 1.151 MB / 1.706 GB, free: 28.49 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/4.945, allocations: 12.03 kB / 1.706 GB, free: 28.48 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.774e-05/4.946, allocations: 45.62 kB / 1.706 GB, free: 28.43 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.792e-05/4.946, allocations: 11.91 kB / 1.706 GB, free: 28.42 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/4.946, allocations: 215.6 kB / 1.706 GB, free: 28.21 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.949e-05/4.946, allocations: 19.67 kB / 1.706 GB, free: 28.19 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.718e-05/4.946, allocations: 16 kB / 1.706 GB, free: 28.18 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/4.947, allocations: 315.3 kB / 1.707 GB, free: 27.98 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/4.947, allocations: 4 kB / 1.707 GB, free: 27.98 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.156e-05/4.947, allocations: 7.625 kB / 1.707 GB, free: 27.98 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/4.947, allocations: 4 kB / 1.707 GB, free: 27.97 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/4.949, allocations: 257.9 kB / 1.707 GB, free: 27.83 MB / 234.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.00204/4.951, allocations: 1.309 MB / 1.708 GB, free: 26.57 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005976/4.951, allocations: 204.8 kB / 1.708 GB, free: 26.4 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/4.952, allocations: 90.41 kB / 1.708 GB, free: 26.34 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3136/5.265, allocations: 46.55 MB / 1.754 GB, free: 44.27 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/5.265, allocations: 43.66 kB / 1.754 GB, free: 44.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 2.705e-06/5.265, allocations: 0 / 1.754 GB, free: 44.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.009001/5.274, allocations: 1.387 MB / 1.755 GB, free: 43.95 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/5.274, allocations: 113.7 kB / 1.755 GB, free: 43.83 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/5.275, allocations: 109.9 kB / 1.756 GB, free: 43.74 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/5.275, allocations: 28.77 kB / 1.756 GB, free: 43.71 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.264e-05/5.275, allocations: 184.3 kB / 1.756 GB, free: 43.54 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/5.275, allocations: 116.8 kB / 1.756 GB, free: 43.49 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.358e-05/5.275, allocations: 3.562 kB / 1.756 GB, free: 43.49 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.82e-05/5.275, allocations: 326.9 kB / 1.756 GB, free: 43.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002822/5.275, allocations: 106.4 kB / 1.756 GB, free: 43.17 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003161/5.275, allocations: 167.9 kB / 1.756 GB, free: 43.11 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/5.276, allocations: 129.5 kB / 1.757 GB, free: 43.1 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/5.276, allocations: 0 / 1.757 GB, free: 43.1 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001086/5.277, allocations: 375.2 kB / 1.757 GB, free: 43.05 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.335e-05/5.277, allocations: 7.781 kB / 1.757 GB, free: 43.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/5.277, allocations: 2.062 kB / 1.757 GB, free: 43.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003226/5.277, allocations: 35.53 kB / 1.757 GB, free: 43.04 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008155/5.278, allocations: 92.56 kB / 1.757 GB, free: 43.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003914/5.279, allocations: 0.5475 MB / 1.758 GB, free: 42.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000513/5.279, allocations: 29.66 kB / 1.758 GB, free: 42.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.542e-05/5.279, allocations: 18.36 kB / 1.758 GB, free: 42.52 MB / 250.7 MB Warning: Assuming fixed start value for the following 3 variables: V:VARIABLE(start = 0.1 unit = "m3" ) type: Real medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 100000.0 unit = "J/kg" 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" 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 () * 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.0002678/5.28, allocations: 145.3 kB / 1.758 GB, free: 42.41 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/5.28, allocations: 15.78 kB / 1.758 GB, free: 42.41 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002198/5.282, allocations: 1.151 MB / 1.759 GB, free: 42.28 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.98e-05/5.282, allocations: 21.53 kB / 1.759 GB, free: 42.28 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/5.282, allocations: 2.469 kB / 1.759 GB, free: 42.28 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/5.282, allocations: 7.719 kB / 1.759 GB, free: 42.28 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003205/5.285, allocations: 1.589 MB / 1.761 GB, free: 41.9 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/5.285, allocations: 0 / 1.761 GB, free: 41.9 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007889/5.286, allocations: 89.56 kB / 1.761 GB, free: 41.9 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004513/5.287, allocations: 72.5 kB / 1.761 GB, free: 41.89 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.562e-05/5.287, allocations: 22.12 kB / 1.761 GB, free: 41.89 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003629/5.287, allocations: 0.5828 MB / 1.761 GB, free: 41.38 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/5.287, allocations: 3.719 kB / 1.761 GB, free: 41.38 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002086/5.289, allocations: 1.514 MB / 1.763 GB, free: 40.91 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/5.289, allocations: 125.1 kB / 1.763 GB, free: 40.79 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.838e-05/5.289, allocations: 9.844 kB / 1.763 GB, free: 40.79 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000618/5.29, allocations: 26.94 kB / 1.763 GB, free: 40.79 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.407e-05/5.29, allocations: 33.42 kB / 1.763 GB, free: 40.79 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.586e-05/5.29, allocations: 19.97 kB / 1.763 GB, free: 40.79 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.665e-05/5.29, allocations: 92.59 kB / 1.763 GB, free: 40.72 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.11e-07/5.29, allocations: 0 / 1.763 GB, free: 40.72 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.005005/5.295, allocations: 1.024 MB / 1.764 GB, free: 40.71 MB / 250.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 () * 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.01195/5.307, allocations: 3.703 MB / 1.768 GB, free: 39.19 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001431/5.309, allocations: 0.5163 MB / 1.768 GB, free: 39.17 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/5.309, allocations: 0 / 1.768 GB, free: 39.17 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009853/5.31, allocations: 449.5 kB / 1.769 GB, free: 39.16 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009073/5.311, allocations: 78.72 kB / 1.769 GB, free: 39.16 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006152/5.317, allocations: 1.409 MB / 1.77 GB, free: 38.72 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/5.317, allocations: 0.7976 MB / 1.771 GB, free: 38.02 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003385/5.318, allocations: 118.2 kB / 1.771 GB, free: 38.01 MB / 250.7 MB Notification: Performance of SimCode: time 1.222e-06/5.318, allocations: 0 / 1.771 GB, free: 38.01 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.488/8.806, allocations: 24.71 MB / 1.795 GB, free: 36.09 MB / 250.7 MB