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/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.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.003/1.003, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.304e-05/2.315e-05, allocations: 0 / 148.2 MB, free: 6.133 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05748/0.05755, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.132/4.189, allocations: 1.423 GB / 1.592 GB, free: 38.27 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/4.189, allocations: 57.36 kB / 1.592 GB, free: 38.27 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6495/4.839, allocations: 107 MB / 1.697 GB, free: 28.98 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.653e-06/4.839, allocations: 1.031 kB / 1.697 GB, free: 28.98 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.348e-05/4.839, allocations: 0 / 1.697 GB, free: 28.98 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.008268/4.847, allocations: 1.152 MB / 1.698 GB, free: 28.41 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/4.847, allocations: 7.656 kB / 1.698 GB, free: 28.41 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/4.848, allocations: 14.88 kB / 1.698 GB, free: 28.41 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/4.848, allocations: 217 kB / 1.698 GB, free: 28.2 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.639e-05/4.848, allocations: 13.62 kB / 1.698 GB, free: 28.2 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.66e-05/4.848, allocations: 19.27 kB / 1.698 GB, free: 28.2 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005769/4.849, allocations: 211 kB / 1.698 GB, free: 28.2 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003697/4.849, allocations: 201.2 kB / 1.698 GB, free: 28.1 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/4.849, allocations: 0 / 1.698 GB, free: 28.1 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.25e-05/4.849, allocations: 1.312 kB / 1.698 GB, free: 28.1 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/4.849, allocations: 7.5 kB / 1.698 GB, free: 28.1 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.001747/4.851, allocations: 1.258 MB / 1.7 GB, free: 27.02 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002824/4.851, allocations: 158.9 kB / 1.7 GB, free: 26.95 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/4.851, allocations: 77.23 kB / 1.7 GB, free: 26.93 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1456/4.997, allocations: 46.54 MB / 1.745 GB, free: 13.43 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/4.997, allocations: 41.62 kB / 1.745 GB, free: 13.38 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 2.534e-06/4.997, allocations: 0 / 1.745 GB, free: 13.38 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.007548/5.005, allocations: 1.237 MB / 1.747 GB, free: 13.07 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.214e-05/5.005, allocations: 107.1 kB / 1.747 GB, free: 12.95 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/5.005, allocations: 115 kB / 1.747 GB, free: 12.85 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/5.005, allocations: 25.7 kB / 1.747 GB, free: 12.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.137e-05/5.005, allocations: 169.4 kB / 1.747 GB, free: 12.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/5.005, allocations: 114.2 kB / 1.747 GB, free: 12.58 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/5.005, allocations: 384 / 1.747 GB, free: 12.58 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0005543/5.006, allocations: 332.3 kB / 1.747 GB, free: 28.27 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/5.006, allocations: 101.8 kB / 1.747 GB, free: 28.26 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002701/5.006, allocations: 162.9 kB / 1.748 GB, free: 28.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/5.008, allocations: 188.2 kB / 1.748 GB, free: 28.19 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/5.008, allocations: 0 / 1.748 GB, free: 28.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001959/5.01, allocations: 418.8 kB / 1.748 GB, free: 28.13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/5.01, allocations: 3.938 kB / 1.748 GB, free: 28.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/5.01, allocations: 7.656 kB / 1.748 GB, free: 28.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/5.01, allocations: 31.08 kB / 1.748 GB, free: 28.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008135/5.011, allocations: 99.14 kB / 1.748 GB, free: 28.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006399/5.011, allocations: 0.5511 MB / 1.749 GB, free: 27.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005716/5.012, allocations: 23.27 kB / 1.749 GB, free: 27.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/5.012, allocations: 15 kB / 1.749 GB, free: 27.59 MB / 266.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.000339/5.012, allocations: 127.3 kB / 1.749 GB, free: 27.48 MB / 266.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002171/5.015, allocations: 395.4 kB / 1.749 GB, free: 27.42 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/5.015, allocations: 19.7 kB / 1.749 GB, free: 27.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/5.018, allocations: 1.158 MB / 1.751 GB, free: 27.26 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.652e-05/5.018, allocations: 19.48 kB / 1.751 GB, free: 27.26 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/5.018, allocations: 0 / 1.751 GB, free: 27.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/5.018, allocations: 6.297 kB / 1.751 GB, free: 27.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003579/5.021, allocations: 1.539 MB / 1.752 GB, free: 26.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/5.021, allocations: 7.062 kB / 1.752 GB, free: 26.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007518/5.022, allocations: 87.66 kB / 1.752 GB, free: 26.87 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003248/5.022, allocations: 67.42 kB / 1.752 GB, free: 26.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/5.023, allocations: 13.77 kB / 1.752 GB, free: 26.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000502/5.023, allocations: 0.6083 MB / 1.753 GB, free: 26.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/5.023, allocations: 11.94 kB / 1.753 GB, free: 26.33 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002614/5.026, allocations: 1.524 MB / 1.754 GB, free: 25.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/5.026, allocations: 119.8 kB / 1.754 GB, free: 25.72 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.441e-05/5.026, allocations: 7.453 kB / 1.754 GB, free: 25.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005917/5.027, allocations: 22.25 kB / 1.754 GB, free: 25.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.475e-05/5.027, allocations: 33.47 kB / 1.754 GB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-05/5.027, allocations: 19.06 kB / 1.755 GB, free: 25.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.339e-05/5.027, allocations: 91.02 kB / 1.755 GB, free: 25.62 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.164e-06/5.027, allocations: 0 / 1.755 GB, free: 25.62 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.004907/5.032, allocations: 1.009 MB / 1.756 GB, free: 25.41 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 () * 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.01247/5.044, allocations: 3.729 MB / 1.759 GB, free: 21.99 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001314/5.046, allocations: 0.4945 MB / 1.76 GB, free: 21.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/5.046, allocations: 0 / 1.76 GB, free: 21.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008841/5.047, allocations: 443.1 kB / 1.76 GB, free: 21.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008935/5.047, allocations: 61.47 kB / 1.76 GB, free: 21.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006089/5.054, allocations: 1.378 MB / 1.762 GB, free: 19.79 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/5.054, allocations: 0.8039 MB / 1.762 GB, free: 19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003388/5.054, allocations: 114.2 kB / 1.762 GB, free: 18.9 MB / 266.7 MB Notification: Performance of SimCode: time 1.122e-06/5.054, allocations: 0 / 1.762 GB, free: 18.9 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.835/8.89, allocations: 25.48 MB / 1.787 GB, free: 0.6719 MB / 266.7 MB