Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.NonCircularPipes.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Fluid.Examples.NonCircularPipes") Notification: Performance of loadModel(Modelica): time 1.603/1.603, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007584/0.0007591, allocations: 8 kB / 233.2 MB, free: 3.027 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1089, allocations: 38.77 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.853/5.962, allocations: 2.518 GB / 2.784 GB, free: 108.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/5.962, allocations: 74.59 kB / 2.784 GB, free: 108.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.506/8.467, allocations: 0.5353 GB / 3.319 GB, free: 21.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.386e-06/8.468, allocations: 0 / 3.319 GB, free: 21.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002181/8.468, allocations: 50.95 kB / 3.319 GB, free: 21.52 MB / 378.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.01182/8.48, allocations: 2.929 MB / 3.322 GB, free: 20.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/8.48, allocations: 7.781 kB / 3.322 GB, free: 20.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006241/8.486, allocations: 0.584 MB / 3.323 GB, free: 20.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005229/8.491, allocations: 1.467 MB / 3.324 GB, free: 19.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002856/8.492, allocations: 144.8 kB / 3.324 GB, free: 19.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006345/8.492, allocations: 145.6 kB / 3.324 GB, free: 19.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009875/8.502, allocations: 2.815 MB / 3.327 GB, free: 19.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.779e-05/8.502, allocations: 7.375 kB / 3.327 GB, free: 19.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003893/8.503, allocations: 69.59 kB / 3.327 GB, free: 19.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002304/8.503, allocations: 125.7 kB / 3.327 GB, free: 19.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009359/8.512, allocations: 2.651 MB / 3.33 GB, free: 19.36 MB / 378.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.0204/8.533, allocations: 11.95 MB / 3.342 GB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006106/8.539, allocations: 1.73 MB / 3.343 GB, free: 12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01153/8.55, allocations: 5.678 MB / 3.349 GB, free: 23.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/8.55, allocations: 44.06 kB / 3.349 GB, free: 23.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=108): time 4.482e-06/8.55, allocations: 0 / 3.349 GB, free: 23.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=124): time 0.02699/8.577, allocations: 7.127 MB / 3.356 GB, free: 23.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/8.578, allocations: 140.6 kB / 3.356 GB, free: 22.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/8.58, allocations: 1.021 MB / 3.357 GB, free: 22.75 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003245/8.58, allocations: 48.14 kB / 3.357 GB, free: 22.71 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000518/8.581, allocations: 0.7588 MB / 3.358 GB, free: 22.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005261/8.581, allocations: 431.5 kB / 3.358 GB, free: 22 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/8.581, allocations: 35.78 kB / 3.358 GB, free: 22 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002301/8.581, allocations: 376.7 kB / 3.359 GB, free: 21.69 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002114/8.584, allocations: 0.8736 MB / 3.359 GB, free: 21.69 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00275/8.586, allocations: 1.328 MB / 3.361 GB, free: 21.18 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.965/11.55, allocations: 377.7 MB / 3.73 GB, free: 27.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.506e-05/11.55, allocations: 4 kB / 3.73 GB, free: 27.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.007259/11.56, allocations: 2.642 MB / 3.732 GB, free: 25.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001028/11.56, allocations: 5.138 MB / 3.737 GB, free: 19.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.857e-05/11.56, allocations: 18.25 kB / 3.737 GB, free: 19.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002222/11.56, allocations: 0.5011 MB / 3.738 GB, free: 19.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/11.56, allocations: 394.4 kB / 3.738 GB, free: 19.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002449/11.57, allocations: 2.876 MB / 3.741 GB, free: 16.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002436/11.57, allocations: 203.4 kB / 3.741 GB, free: 16.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003314/11.57, allocations: 80.92 kB / 3.741 GB, free: 16.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/11.57, allocations: 4 kB / 3.741 GB, free: 16.28 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00679/11.58, allocations: 2.522 MB / 3.744 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-05/11.58, allocations: 16.89 kB / 3.744 GB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00212/11.58, allocations: 482.3 kB / 3.744 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002249/11.58, allocations: 392.8 kB / 3.744 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00249/11.58, allocations: 2.872 MB / 3.747 GB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001998/11.59, allocations: 203.4 kB / 3.747 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002604/11.59, allocations: 78.55 kB / 3.748 GB, free: 10.91 MB / 426.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.001499/11.59, allocations: 0.5948 MB / 3.748 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004187/11.59, allocations: 138 kB / 3.748 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01082/11.6, allocations: 5.456 MB / 3.754 GB, free: 6.867 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001013/11.6, allocations: 62.09 kB / 3.754 GB, free: 6.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/11.6, allocations: 0 / 3.754 GB, free: 6.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01002/11.61, allocations: 5.004 MB / 3.759 GB, free: 3.277 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2734/11.88, allocations: 8.005 MB / 3.766 GB, free: 64.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.599e-05/11.88, allocations: 0 / 3.766 GB, free: 64.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001686/11.88, allocations: 282.8 kB / 3.767 GB, free: 64.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002656/11.89, allocations: 0.5787 MB / 3.767 GB, free: 64.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002934/11.89, allocations: 42.55 kB / 3.767 GB, free: 64.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00268/11.89, allocations: 2.938 MB / 3.77 GB, free: 62.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.776e-06/11.89, allocations: 0 / 3.77 GB, free: 62.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01195/11.9, allocations: 5.318 MB / 3.775 GB, free: 62.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/11.9, allocations: 0.5161 MB / 3.776 GB, free: 62.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004969/11.9, allocations: 33.34 kB / 3.776 GB, free: 62.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001989/11.91, allocations: 164.8 kB / 3.776 GB, free: 62.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003645/11.91, allocations: 120.1 kB / 3.776 GB, free: 62.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/11.91, allocations: 44.14 kB / 3.776 GB, free: 62.05 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001598/11.91, allocations: 0.8227 MB / 3.777 GB, free: 61.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.577e-06/11.91, allocations: 0 / 3.777 GB, free: 61.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009286/11.92, allocations: 2.165 MB / 3.779 GB, free: 61.95 MB / 426.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.01065/11.93, allocations: 2.232 MB / 3.781 GB, free: 61.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009915/11.94, allocations: 3.86 MB / 3.785 GB, free: 61.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.28e-06/11.94, allocations: 0 / 3.785 GB, free: 61.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003851/11.94, allocations: 1.706 MB / 3.787 GB, free: 61.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004355/11.95, allocations: 0.625 MB / 3.787 GB, free: 61.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2016/12.15, allocations: 80.23 MB / 3.866 GB, free: 55.51 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001707/12.15, allocations: 1.784 MB / 3.867 GB, free: 54.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007494/12.15, allocations: 137 kB / 3.867 GB, free: 54.01 MB / 426.7 MB Notification: Performance of SimCode: time 1.774e-06/12.15, allocations: 0 / 3.867 GB, free: 54.01 MB / 426.7 MB Notification: Performance of Templates: time 0.3851/12.54, allocations: 86.77 MB / 3.952 GB, free: 61.61 MB / 426.7 MB