Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.WaterIF97.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.699/1.699, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004895/0.0004898, allocations: 8 kB / 233.3 MB, free: 2.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.08988, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.664/7.754, allocations: 2.504 GB / 2.77 GB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/7.754, allocations: 68.16 kB / 2.77 GB, free: 15.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.731/8.485, allocations: 105.9 MB / 2.874 GB, free: 62.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/8.485, allocations: 0 / 2.874 GB, free: 62.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.414e-05/8.486, allocations: 4 kB / 2.874 GB, free: 62.38 MB / 362.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.008206/8.494, allocations: 1.154 MB / 2.875 GB, free: 61.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/8.494, allocations: 8.031 kB / 2.875 GB, free: 61.31 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.284e-05/8.494, allocations: 42.56 kB / 2.875 GB, free: 61.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006458/8.495, allocations: 59.03 kB / 2.875 GB, free: 61.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/8.495, allocations: 226.7 kB / 2.875 GB, free: 60.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.279e-05/8.495, allocations: 8.281 kB / 2.875 GB, free: 60.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.775e-05/8.495, allocations: 19.94 kB / 2.875 GB, free: 60.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001815/8.497, allocations: 389.7 kB / 2.875 GB, free: 60.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/8.497, allocations: 3.938 kB / 2.875 GB, free: 60.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.196e-05/8.497, allocations: 8 kB / 2.875 GB, free: 60.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/8.497, allocations: 4 kB / 2.875 GB, free: 60.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002242/8.499, allocations: 369 kB / 2.876 GB, free: 60.35 MB / 362.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.001638/8.501, allocations: 1.19 MB / 2.877 GB, free: 59.14 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/8.502, allocations: 298 kB / 2.877 GB, free: 58.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1443/8.646, allocations: 47.11 MB / 2.923 GB, free: 7.621 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/8.646, allocations: 34.75 kB / 2.923 GB, free: 7.578 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 3.216e-06/8.646, allocations: 4 kB / 2.923 GB, free: 7.574 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.01074/8.657, allocations: 1.613 MB / 2.925 GB, free: 5.906 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/8.657, allocations: 110.9 kB / 2.925 GB, free: 5.773 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/8.657, allocations: 111 kB / 2.925 GB, free: 5.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/8.657, allocations: 29.7 kB / 2.925 GB, free: 5.625 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.04e-05/8.658, allocations: 178.8 kB / 2.925 GB, free: 5.449 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/8.658, allocations: 122.3 kB / 2.925 GB, free: 5.328 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.362e-05/8.658, allocations: 4 kB / 2.925 GB, free: 5.324 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.546e-05/8.658, allocations: 322.8 kB / 2.926 GB, free: 5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006287/8.658, allocations: 143.9 kB / 2.926 GB, free: 4.859 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006611/8.659, allocations: 210.5 kB / 2.926 GB, free: 4.629 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000653/8.66, allocations: 152.5 kB / 2.926 GB, free: 4.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/8.66, allocations: 0 / 2.926 GB, free: 4.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001765/8.662, allocations: 434 kB / 2.927 GB, free: 4.047 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/8.662, allocations: 9.094 kB / 2.927 GB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/8.662, allocations: 0 / 2.927 GB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003568/8.662, allocations: 45.38 kB / 2.927 GB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009025/8.663, allocations: 91.88 kB / 2.927 GB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003722/8.663, allocations: 0.5484 MB / 2.927 GB, free: 3.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005038/8.664, allocations: 36 kB / 2.927 GB, free: 3.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.824e-05/8.664, allocations: 15.94 kB / 2.927 GB, free: 3.277 MB / 362.7 MB 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.0001938/8.664, allocations: 137.7 kB / 2.927 GB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/8.664, allocations: 15.86 kB / 2.927 GB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003066/8.667, allocations: 1.462 MB / 2.929 GB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.892e-05/8.667, allocations: 15.97 kB / 2.929 GB, free: 1.621 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/8.667, allocations: 8 kB / 2.929 GB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/8.667, allocations: 3.984 kB / 2.929 GB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2667/8.934, allocations: 1.989 MB / 2.931 GB, free: 72.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/8.934, allocations: 4.938 kB / 2.931 GB, free: 72.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008189/8.935, allocations: 89.16 kB / 2.931 GB, free: 72.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005601/8.936, allocations: 79.66 kB / 2.931 GB, free: 72.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.899e-05/8.936, allocations: 14.22 kB / 2.931 GB, free: 72.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004543/8.936, allocations: 0.5875 MB / 2.932 GB, free: 72.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/8.936, allocations: 5.344 kB / 2.932 GB, free: 72.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003724/8.94, allocations: 1.775 MB / 2.933 GB, free: 71.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/8.94, allocations: 126 kB / 2.933 GB, free: 71.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.474e-05/8.94, allocations: 13.11 kB / 2.933 GB, free: 71.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005903/8.941, allocations: 22.02 kB / 2.933 GB, free: 71.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/8.941, allocations: 32.77 kB / 2.934 GB, free: 71.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.656e-05/8.941, allocations: 19.11 kB / 2.934 GB, free: 71.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.55e-05/8.941, allocations: 89.3 kB / 2.934 GB, free: 71.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/8.941, allocations: 0 / 2.934 GB, free: 71.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005259/8.946, allocations: 0.9621 MB / 2.935 GB, free: 71.52 MB / 362.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: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,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): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01344/8.96, allocations: 3.863 MB / 2.938 GB, free: 70.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002214/8.962, allocations: 0.605 MB / 2.939 GB, free: 70.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/8.962, allocations: 1.25 kB / 2.939 GB, free: 70.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00134/8.963, allocations: 0.5102 MB / 2.939 GB, free: 70.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009649/8.964, allocations: 71.48 kB / 2.939 GB, free: 70.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01042/8.975, allocations: 3.843 MB / 2.943 GB, free: 68.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003921/8.975, allocations: 0.8252 MB / 2.944 GB, free: 67.37 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003774/8.976, allocations: 130.2 kB / 2.944 GB, free: 67.36 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/8.976, allocations: 3.938 kB / 2.944 GB, free: 67.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.754/12.73, allocations: 24.63 MB / 2.968 GB, free: 65.59 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat