Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.653/1.653, allocations: 171.2 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.0003697, allocations: 8 kB / 233.3 MB, free: 2.277 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08277/0.08319, allocations: 38.78 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.516/7.6, allocations: 2.504 GB / 2.77 GB, free: 22.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/7.6, allocations: 71.59 kB / 2.77 GB, free: 22.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7326/8.332, allocations: 105.9 MB / 2.874 GB, free: 62.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.364e-06/8.333, allocations: 0 / 2.874 GB, free: 62.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.382e-05/8.333, allocations: 0 / 2.874 GB, free: 62.3 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.008891/8.341, allocations: 1.149 MB / 2.875 GB, free: 61.28 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/8.342, allocations: 16.03 kB / 2.875 GB, free: 61.26 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001049/8.342, allocations: 48.39 kB / 2.875 GB, free: 61.22 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006805/8.342, allocations: 47.48 kB / 2.875 GB, free: 61.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/8.343, allocations: 229.8 kB / 2.875 GB, free: 60.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/8.343, allocations: 11.16 kB / 2.875 GB, free: 60.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.287e-05/8.343, allocations: 14.81 kB / 2.875 GB, free: 60.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001947/8.345, allocations: 400.6 kB / 2.875 GB, free: 60.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/8.345, allocations: 7.609 kB / 2.875 GB, free: 60.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.434e-05/8.345, allocations: 6.812 kB / 2.875 GB, free: 60.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/8.345, allocations: 4 kB / 2.875 GB, free: 60.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002344/8.347, allocations: 369.1 kB / 2.876 GB, free: 60.47 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.001806/8.349, allocations: 1.191 MB / 2.877 GB, free: 59.35 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/8.35, allocations: 292.8 kB / 2.877 GB, free: 59.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1493/8.5, allocations: 47.1 MB / 2.923 GB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.833e-05/8.5, allocations: 42.69 kB / 2.923 GB, free: 12.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.504e-06/8.5, allocations: 4 kB / 2.923 GB, free: 12.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.01133/8.511, allocations: 1.618 MB / 2.925 GB, free: 11.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/8.511, allocations: 114.9 kB / 2.925 GB, free: 11.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/8.511, allocations: 105.3 kB / 2.925 GB, free: 10.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.598e-05/8.512, allocations: 29.7 kB / 2.925 GB, free: 10.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.635e-05/8.512, allocations: 108.4 kB / 2.925 GB, free: 10.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/8.512, allocations: 118.3 kB / 2.925 GB, free: 10.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.671e-05/8.512, allocations: 15.94 kB / 2.925 GB, free: 10.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.697e-05/8.512, allocations: 326.8 kB / 2.926 GB, free: 10.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006364/8.512, allocations: 139.9 kB / 2.926 GB, free: 10.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006685/8.513, allocations: 214.6 kB / 2.926 GB, free: 9.969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007065/8.514, allocations: 152.5 kB / 2.926 GB, free: 9.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/8.514, allocations: 0 / 2.926 GB, free: 9.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001781/8.516, allocations: 430 kB / 2.927 GB, free: 9.391 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/8.516, allocations: 8 kB / 2.927 GB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/8.516, allocations: 3.984 kB / 2.927 GB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003611/8.516, allocations: 40.98 kB / 2.927 GB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008187/8.517, allocations: 91.88 kB / 2.927 GB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004768/8.517, allocations: 0.5483 MB / 2.927 GB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005138/8.518, allocations: 32.11 kB / 2.927 GB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.265e-05/8.518, allocations: 15.98 kB / 2.927 GB, free: 8.625 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.0001907/8.518, allocations: 133.8 kB / 2.927 GB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002615/8.519, allocations: 19.77 kB / 2.927 GB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003209/8.522, allocations: 1.463 MB / 2.929 GB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.515e-05/8.522, allocations: 19.97 kB / 2.929 GB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/8.522, allocations: 4 kB / 2.929 GB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/8.522, allocations: 0 / 2.929 GB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004111/8.526, allocations: 1.995 MB / 2.931 GB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/8.526, allocations: 4 kB / 2.931 GB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007862/8.527, allocations: 87.98 kB / 2.931 GB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005264/8.527, allocations: 76.69 kB / 2.931 GB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.566e-05/8.527, allocations: 15.98 kB / 2.931 GB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003737/8.528, allocations: 0.5914 MB / 2.932 GB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/8.528, allocations: 0 / 2.932 GB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003232/8.531, allocations: 1.778 MB / 2.933 GB, free: 2.246 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/8.531, allocations: 132.5 kB / 2.933 GB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.933e-05/8.531, allocations: 11.98 kB / 2.933 GB, free: 2.086 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005853/8.532, allocations: 27.94 kB / 2.933 GB, free: 2.059 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.519e-05/8.532, allocations: 27.95 kB / 2.933 GB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.195e-05/8.532, allocations: 15.98 kB / 2.933 GB, free: 2.016 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.204e-05/8.532, allocations: 99.2 kB / 2.934 GB, free: 1.918 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/8.532, allocations: 0 / 2.934 GB, free: 1.918 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00503/8.537, allocations: 0.9562 MB / 2.935 GB, free: 0.9609 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.2586/8.796, allocations: 3.852 MB / 2.938 GB, free: 70.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002237/8.798, allocations: 0.6027 MB / 2.939 GB, free: 70.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/8.798, allocations: 0 / 2.939 GB, free: 70.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001309/8.8, allocations: 0.5181 MB / 2.939 GB, free: 70.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009843/8.801, allocations: 78.64 kB / 2.939 GB, free: 70.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/8.811, allocations: 3.803 MB / 2.943 GB, free: 68.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004007/8.812, allocations: 0.8276 MB / 2.944 GB, free: 67.61 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007135/8.813, allocations: 130.9 kB / 2.944 GB, free: 67.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003445/8.813, allocations: 132.4 kB / 2.944 GB, free: 67.59 MB / 362.7 MB Notification: Performance of SimCode: time 1.513e-06/8.813, allocations: 1.219 kB / 2.944 GB, free: 67.59 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/8.913, allocations: 30.63 MB / 2.974 GB, free: 66.77 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000276/8.914, allocations: 185.4 kB / 2.974 GB, free: 66.53 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.17/13.08, allocations: 0 / 2.974 GB, free: 66.53 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat