Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.NonCircularPipes.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|annulus_pipe.mediums.1..h|annulus_pipe.mediums.2..h|annulus_pipe.mediums.2..p|circular_pipe.mediums.1..h|circular_pipe.mediums.2..h|circular_pipe.mediums.2..p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.NonCircularPipes") Notification: Performance of loadModel(Modelica): time 1.772/1.772, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003632, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08196/0.08235, allocations: 44.51 MB / 308.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.496/6.578, allocations: 2.628 GB / 2.929 GB, free: 93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/6.579, allocations: 72.59 kB / 2.929 GB, free: 93 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.4/8.979, allocations: 0.5476 GB / 3.477 GB, free: 32.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.428e-06/8.979, allocations: 3.938 kB / 3.477 GB, free: 32.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001698/8.979, allocations: 39 kB / 3.477 GB, free: 32.68 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.01132/8.99, allocations: 2.998 MB / 3.48 GB, free: 30.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/8.99, allocations: 6.906 kB / 3.48 GB, free: 30.99 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005884/8.996, allocations: 0.5973 MB / 3.48 GB, free: 30.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004595/9.001, allocations: 1.47 MB / 3.482 GB, free: 30.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002662/9.001, allocations: 142.8 kB / 3.482 GB, free: 30.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006164/9.002, allocations: 144.4 kB / 3.482 GB, free: 30.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008935/9.011, allocations: 2.814 MB / 3.485 GB, free: 28.35 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-05/9.011, allocations: 7.938 kB / 3.485 GB, free: 28.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003475/9.011, allocations: 67.83 kB / 3.485 GB, free: 28.28 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001913/9.011, allocations: 129.3 kB / 3.485 GB, free: 28.17 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00851/9.02, allocations: 2.649 MB / 3.488 GB, free: 26.04 MB / 426.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.01863/9.039, allocations: 11.95 MB / 3.499 GB, free: 14.65 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005713/9.044, allocations: 1.734 MB / 3.501 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01033/9.055, allocations: 5.735 MB / 3.507 GB, free: 6.723 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/9.055, allocations: 43.56 kB / 3.507 GB, free: 6.672 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 3.945e-06/9.055, allocations: 3.938 kB / 3.507 GB, free: 6.668 MB / 426.7 MB Notification: Performance of matching and sorting (n=124): time 0.3087/9.363, allocations: 7.124 MB / 3.514 GB, free: 35.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/9.364, allocations: 148.4 kB / 3.514 GB, free: 34.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002161/9.366, allocations: 1.015 MB / 3.515 GB, free: 34.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003289/9.366, allocations: 51.64 kB / 3.515 GB, free: 34.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005886/9.367, allocations: 0.7518 MB / 3.515 GB, free: 34.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000578/9.367, allocations: 431.2 kB / 3.516 GB, free: 34.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000167/9.367, allocations: 30.47 kB / 3.516 GB, free: 34.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/9.368, allocations: 384.2 kB / 3.516 GB, free: 34.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002612/9.37, allocations: 0.8738 MB / 3.517 GB, free: 34.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003366/9.374, allocations: 1.322 MB / 3.518 GB, free: 33.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.979/12.35, allocations: 377.7 MB / 3.887 GB, free: 82.48 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.908e-05/12.35, allocations: 5.078 kB / 3.887 GB, free: 82.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.008184/12.36, allocations: 2.649 MB / 3.89 GB, free: 82.37 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001053/12.36, allocations: 5.137 MB / 3.895 GB, free: 76.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.699e-05/12.36, allocations: 15.47 kB / 3.895 GB, free: 76.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002284/12.36, allocations: 0.504 MB / 3.895 GB, free: 76.95 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002084/12.37, allocations: 394.3 kB / 3.896 GB, free: 76.94 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/12.37, allocations: 2.869 MB / 3.899 GB, free: 74.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/12.37, allocations: 216.5 kB / 3.899 GB, free: 74.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003737/12.37, allocations: 76.3 kB / 3.899 GB, free: 74.86 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/12.37, allocations: 4.922 kB / 3.899 GB, free: 74.86 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007229/12.38, allocations: 2.523 MB / 3.901 GB, free: 74.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.989e-05/12.38, allocations: 14.28 kB / 3.901 GB, free: 74.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002065/12.38, allocations: 479.6 kB / 3.902 GB, free: 74.72 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002224/12.38, allocations: 401.1 kB / 3.902 GB, free: 74.72 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002393/12.39, allocations: 2.866 MB / 3.905 GB, free: 72.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/12.39, allocations: 198.5 kB / 3.905 GB, free: 72.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003091/12.39, allocations: 91.05 kB / 3.905 GB, free: 72.63 MB / 474.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: circular_pipe.mediums[1].p = 1000000.0 annulus_pipe.mediums[1].p = 1000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 11 (boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 182 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001517/12.39, allocations: 0.5935 MB / 3.906 GB, free: 72.44 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004248/12.39, allocations: 139.6 kB / 3.906 GB, free: 72.44 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01013/12.4, allocations: 5.454 MB / 3.911 GB, free: 72.04 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.77e-05/12.4, allocations: 61.31 kB / 3.911 GB, free: 72.04 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/12.4, allocations: 1.75 kB / 3.911 GB, free: 72.04 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008644/12.41, allocations: 5.004 MB / 3.916 GB, free: 71.28 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/12.43, allocations: 8.006 MB / 3.924 GB, free: 70.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/12.43, allocations: 0 / 3.924 GB, free: 70.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001584/12.43, allocations: 290.8 kB / 3.924 GB, free: 70.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002583/12.43, allocations: 0.5715 MB / 3.925 GB, free: 70.59 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002832/12.43, allocations: 38.55 kB / 3.925 GB, free: 70.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002317/12.43, allocations: 2.952 MB / 3.928 GB, free: 68.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.251e-06/12.43, allocations: 0 / 3.928 GB, free: 68.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/12.44, allocations: 5.31 MB / 3.933 GB, free: 68.06 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001528/12.44, allocations: 0.5162 MB / 3.933 GB, free: 67.84 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005159/12.45, allocations: 38.52 kB / 3.933 GB, free: 67.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002013/12.45, allocations: 153.3 kB / 3.934 GB, free: 67.83 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003888/12.45, allocations: 121.5 kB / 3.934 GB, free: 67.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/12.45, allocations: 42.84 kB / 3.934 GB, free: 67.83 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001638/12.45, allocations: 0.8197 MB / 3.935 GB, free: 67.72 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.37e-07/12.45, allocations: 4 kB / 3.935 GB, free: 67.71 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009023/12.46, allocations: 2.176 MB / 3.937 GB, free: 67.71 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01072/12.47, allocations: 2.235 MB / 3.939 GB, free: 66.92 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009336/12.48, allocations: 3.852 MB / 3.943 GB, free: 64.78 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/12.48, allocations: 0 / 3.943 GB, free: 64.78 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003685/12.48, allocations: 1.719 MB / 3.944 GB, free: 63.93 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003839/12.49, allocations: 0.6245 MB / 3.945 GB, free: 63.61 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1867/12.67, allocations: 81.52 MB / 4.025 GB, free: 9.227 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00158/12.68, allocations: 1.781 MB / 4.026 GB, free: 7.402 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000741/12.68, allocations: 143.4 kB / 4.026 GB, free: 7.262 MB / 474.7 MB Notification: Performance of SimCode: time 1.735e-06/12.68, allocations: 0 / 4.026 GB, free: 7.262 MB / 474.7 MB Notification: Performance of Templates: time 0.413/13.09, allocations: 86.96 MB / 4.111 GB, free: 65.1 MB / 474.7 MB