Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.92/1.92, allocations: 194.9 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003522, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09788/0.09826, allocations: 44.5 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.622/8.72, allocations: 2.628 GB / 2.93 GB, free: 74.28 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/8.72, allocations: 79.59 kB / 2.93 GB, free: 74.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.937/11.66, allocations: 0.5476 GB / 3.477 GB, free: 4.219 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.345e-06/11.66, allocations: 0 / 3.477 GB, free: 4.219 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002437/11.66, allocations: 43.78 kB / 3.477 GB, free: 4.18 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.01543/11.67, allocations: 2.981 MB / 3.48 GB, free: 1.156 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/11.67, allocations: 8.031 kB / 3.48 GB, free: 1.148 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006903/11.68, allocations: 0.6066 MB / 3.481 GB, free: 0.543 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3458/12.03, allocations: 1.458 MB / 3.482 GB, free: 27.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003106/12.03, allocations: 144.8 kB / 3.482 GB, free: 27.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007686/12.03, allocations: 147.9 kB / 3.483 GB, free: 27.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01222/12.04, allocations: 2.824 MB / 3.485 GB, free: 26.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.759e-05/12.04, allocations: 6.781 kB / 3.485 GB, free: 26.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003788/12.04, allocations: 69.42 kB / 3.485 GB, free: 26.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000275/12.04, allocations: 131.2 kB / 3.485 GB, free: 26.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.012/12.05, allocations: 2.644 MB / 3.488 GB, free: 26.96 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.02609/12.08, allocations: 11.95 MB / 3.5 GB, free: 19.74 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007732/12.09, allocations: 1.736 MB / 3.501 GB, free: 19.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01588/12.1, allocations: 5.73 MB / 3.507 GB, free: 15.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.414e-05/12.1, allocations: 43.72 kB / 3.507 GB, free: 15.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 3.887e-06/12.1, allocations: 2.5 kB / 3.507 GB, free: 15.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=124): time 0.03467/12.14, allocations: 7.135 MB / 3.514 GB, free: 14.83 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.557e-05/12.14, allocations: 149 kB / 3.514 GB, free: 14.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002445/12.14, allocations: 1.148 MB / 3.515 GB, free: 14.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004507/12.14, allocations: 46.86 kB / 3.515 GB, free: 14.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007698/12.14, allocations: 0.7555 MB / 3.516 GB, free: 14.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008414/12.14, allocations: 435.4 kB / 3.517 GB, free: 13.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/12.14, allocations: 33.78 kB / 3.517 GB, free: 13.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001807/12.14, allocations: 375.7 kB / 3.517 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003254/12.15, allocations: 0.8741 MB / 3.518 GB, free: 13.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003648/12.15, allocations: 1.328 MB / 3.519 GB, free: 13.08 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.557/16.71, allocations: 378.7 MB / 3.889 GB, free: 72.03 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.484e-05/16.71, allocations: 3.625 kB / 3.889 GB, free: 72.03 MB / 474.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.009756/16.72, allocations: 2.646 MB / 3.891 GB, free: 71.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003181/16.72, allocations: 484 kB / 3.892 GB, free: 71.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.351e-05/16.72, allocations: 12.78 kB / 3.892 GB, free: 71.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002776/16.72, allocations: 0.5051 MB / 3.892 GB, free: 71.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003033/16.72, allocations: 398.1 kB / 3.893 GB, free: 71.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00296/16.73, allocations: 2.869 MB / 3.896 GB, free: 69.22 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003569/16.73, allocations: 214.8 kB / 3.896 GB, free: 69.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006185/16.73, allocations: 74.08 kB / 3.896 GB, free: 69.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/16.73, allocations: 3.281 kB / 3.896 GB, free: 69.21 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009668/16.74, allocations: 2.522 MB / 3.898 GB, free: 68.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.94e-05/16.74, allocations: 13.2 kB / 3.898 GB, free: 68.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002357/16.74, allocations: 481.2 kB / 3.899 GB, free: 68.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002998/16.74, allocations: 393.2 kB / 3.899 GB, free: 67.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/16.75, allocations: 2.879 MB / 3.902 GB, free: 65.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002574/16.75, allocations: 204 kB / 3.902 GB, free: 65.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002564/16.75, allocations: 80.16 kB / 3.902 GB, free: 65.12 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.001695/16.75, allocations: 0.6016 MB / 3.903 GB, free: 64.76 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005029/16.75, allocations: 136.8 kB / 3.903 GB, free: 64.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01244/16.77, allocations: 5.458 MB / 3.908 GB, free: 61.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.787e-05/16.77, allocations: 58.69 kB / 3.908 GB, free: 61.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/16.77, allocations: 0 / 3.908 GB, free: 61.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01069/16.78, allocations: 5.003 MB / 3.913 GB, free: 58.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01769/16.79, allocations: 8.013 MB / 3.921 GB, free: 54.71 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/16.79, allocations: 0 / 3.921 GB, free: 54.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002254/16.8, allocations: 284.2 kB / 3.921 GB, free: 54.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003211/16.8, allocations: 0.5661 MB / 3.922 GB, free: 54.18 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003229/16.8, allocations: 37.55 kB / 3.922 GB, free: 54.17 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002729/16.8, allocations: 2.942 MB / 3.925 GB, free: 51.63 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/16.8, allocations: 6.062 kB / 3.925 GB, free: 51.62 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01235/16.82, allocations: 5.31 MB / 3.93 GB, free: 48.69 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001602/16.82, allocations: 0.5206 MB / 3.931 GB, free: 48.34 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004832/16.82, allocations: 39.39 kB / 3.931 GB, free: 48.32 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/16.82, allocations: 163.2 kB / 3.931 GB, free: 48.23 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003641/16.82, allocations: 115.4 kB / 3.931 GB, free: 48.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/16.82, allocations: 47.23 kB / 3.931 GB, free: 48.14 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001679/16.82, allocations: 0.8151 MB / 3.932 GB, free: 47.67 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.61e-07/16.82, allocations: 6.062 kB / 3.932 GB, free: 47.66 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01035/16.83, allocations: 2.173 MB / 3.934 GB, free: 45.98 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.01369/16.85, allocations: 2.239 MB / 3.936 GB, free: 44.54 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01224/16.86, allocations: 3.849 MB / 3.94 GB, free: 42.41 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/16.86, allocations: 7.906 kB / 3.94 GB, free: 42.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004448/16.86, allocations: 1.705 MB / 3.941 GB, free: 41.55 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005802/16.87, allocations: 0.6252 MB / 3.942 GB, free: 41.23 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6347/17.5, allocations: 81.53 MB / 4.022 GB, free: 61.23 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002106/17.51, allocations: 1.782 MB / 4.023 GB, free: 60.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009822/17.51, allocations: 135.6 kB / 4.024 GB, free: 60.49 MB / 474.7 MB Notification: Performance of SimCode: time 1.232e-06/17.51, allocations: 3.875 kB / 4.024 GB, free: 60.49 MB / 474.7 MB Notification: Performance of Templates: time 0.1545/17.66, allocations: 86.96 MB / 4.108 GB, free: 51.34 MB / 474.7 MB