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.576/1.576, allocations: 171.2 MB / 184.2 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.406e-05/2.449e-05, allocations: 0 / 228.8 MB, free: 15.46 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2103, allocations: 38.78 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.937/6.148, allocations: 2.518 GB / 2.779 GB, free: 64.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/6.148, allocations: 71.53 kB / 2.78 GB, free: 64.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.531/8.679, allocations: 0.5339 GB / 3.313 GB, free: 27 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.936e-06/8.679, allocations: 0 / 3.313 GB, free: 27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001835/8.679, allocations: 42.62 kB / 3.314 GB, free: 26.99 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.01058/8.69, allocations: 2.739 MB / 3.316 GB, free: 25.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/8.69, allocations: 9.812 kB / 3.316 GB, free: 25.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00607/8.696, allocations: 0.5947 MB / 3.317 GB, free: 25.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004816/8.701, allocations: 1.447 MB / 3.318 GB, free: 25.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/8.701, allocations: 145 kB / 3.318 GB, free: 25.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006097/8.702, allocations: 147.8 kB / 3.318 GB, free: 25.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008382/8.71, allocations: 2.769 MB / 3.321 GB, free: 24.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.812e-05/8.71, allocations: 10.41 kB / 3.321 GB, free: 24.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004525/8.711, allocations: 67.55 kB / 3.321 GB, free: 24.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002008/8.711, allocations: 124.7 kB / 3.321 GB, free: 24.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007834/8.719, allocations: 2.495 MB / 3.324 GB, free: 24.79 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02001/8.739, allocations: 11.95 MB / 3.335 GB, free: 17.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005187/8.744, allocations: 1.616 MB / 3.337 GB, free: 17.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/8.746, allocations: 0.7171 MB / 3.338 GB, free: 17.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01145/8.757, allocations: 5.683 MB / 3.343 GB, free: 13.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.979e-05/8.757, allocations: 48.25 kB / 3.343 GB, free: 13.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 5.139e-06/8.757, allocations: 1.406 kB / 3.343 GB, free: 13.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.02281/8.78, allocations: 5.895 MB / 3.349 GB, free: 12.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/8.78, allocations: 147.4 kB / 3.349 GB, free: 12.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002101/8.782, allocations: 1.002 MB / 3.35 GB, free: 12.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003179/8.783, allocations: 47.7 kB / 3.35 GB, free: 12.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005088/8.783, allocations: 0.759 MB / 3.351 GB, free: 11.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005416/8.784, allocations: 435.4 kB / 3.351 GB, free: 11.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/8.784, allocations: 36.06 kB / 3.351 GB, free: 11.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/8.784, allocations: 372.4 kB / 3.352 GB, free: 11.28 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001596/8.786, allocations: 0.7612 MB / 3.353 GB, free: 11.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001933/8.788, allocations: 1.207 MB / 3.354 GB, free: 10.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.283/12.07, allocations: 377.8 MB / 3.723 GB, free: 72.19 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-05/12.07, allocations: 3.312 kB / 3.723 GB, free: 72.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.006069/12.08, allocations: 2.412 MB / 3.725 GB, free: 72.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001041/12.08, allocations: 5.148 MB / 3.73 GB, free: 66.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-05/12.08, allocations: 13.41 kB / 3.73 GB, free: 66.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002183/12.08, allocations: 499.6 kB / 3.731 GB, free: 66.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002163/12.08, allocations: 397.8 kB / 3.731 GB, free: 66.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002525/12.09, allocations: 2.871 MB / 3.734 GB, free: 64.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002557/12.09, allocations: 207.4 kB / 3.734 GB, free: 64.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002895/12.09, allocations: 77.88 kB / 3.734 GB, free: 64.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/12.09, allocations: 3.219 kB / 3.734 GB, free: 64.66 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005512/12.09, allocations: 2.286 MB / 3.736 GB, free: 64.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.844e-05/12.09, allocations: 13.28 kB / 3.736 GB, free: 64.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001996/12.1, allocations: 476.8 kB / 3.737 GB, free: 64.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00224/12.1, allocations: 394.8 kB / 3.737 GB, free: 64.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002392/12.1, allocations: 2.867 MB / 3.74 GB, free: 62.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/12.1, allocations: 210 kB / 3.74 GB, free: 62.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002857/12.1, allocations: 77.67 kB / 3.74 GB, free: 62.49 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 () * 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.000574/12.1, allocations: 217.3 kB / 3.74 GB, free: 62.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004374/12.1, allocations: 138 kB / 3.741 GB, free: 62.38 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008645/12.11, allocations: 5.359 MB / 3.746 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.824e-05/12.11, allocations: 62.67 kB / 3.746 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/12.11, allocations: 7.578 kB / 3.746 GB, free: 62.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007177/12.12, allocations: 4.898 MB / 3.751 GB, free: 61.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01343/12.13, allocations: 7.892 MB / 3.758 GB, free: 60.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.345e-05/12.13, allocations: 0 / 3.758 GB, free: 60.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001746/12.14, allocations: 293.8 kB / 3.759 GB, free: 60.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002686/12.14, allocations: 0.5544 MB / 3.759 GB, free: 60.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002996/12.14, allocations: 37.97 kB / 3.759 GB, free: 60.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002432/12.14, allocations: 2.939 MB / 3.762 GB, free: 58.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.87e-06/12.14, allocations: 2.438 kB / 3.762 GB, free: 58.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008631/12.15, allocations: 4.979 MB / 3.767 GB, free: 58.12 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/12.15, allocations: 0.5126 MB / 3.767 GB, free: 57.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003466/12.15, allocations: 36.91 kB / 3.767 GB, free: 57.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001591/12.15, allocations: 155.1 kB / 3.768 GB, free: 57.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003069/12.15, allocations: 127.6 kB / 3.768 GB, free: 57.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/12.15, allocations: 41.7 kB / 3.768 GB, free: 57.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001486/12.15, allocations: 0.8141 MB / 3.769 GB, free: 57.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.89e-07/12.15, allocations: 0 / 3.769 GB, free: 57.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008628/12.16, allocations: 2.162 MB / 3.771 GB, free: 57.78 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 () * 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.01036/12.17, allocations: 2.223 MB / 3.773 GB, free: 57.65 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007426/12.18, allocations: 3.513 MB / 3.776 GB, free: 57.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.719e-06/12.18, allocations: 3.25 kB / 3.776 GB, free: 57.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003082/12.18, allocations: 1.607 MB / 3.778 GB, free: 57.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004122/12.19, allocations: 0.6198 MB / 3.778 GB, free: 57.58 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1925/12.38, allocations: 78.19 MB / 3.855 GB, free: 22.81 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/12.38, allocations: 1.782 MB / 3.857 GB, free: 21.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007194/12.38, allocations: 137.9 kB / 3.857 GB, free: 21.22 MB / 426.7 MB Notification: Performance of SimCode: time 2.085e-06/12.38, allocations: 4 kB / 3.857 GB, free: 21.22 MB / 426.7 MB Notification: Performance of Templates: time 0.3861/12.77, allocations: 86.46 MB / 3.941 GB, free: 51.14 MB / 426.7 MB