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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.678/1.678, allocations: 171.3 MB / 179.2 MB, free: 8.184 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.375e-05/2.393e-05, allocations: 4 kB / 222.5 MB, free: 8.805 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0751/0.07515, allocations: 38.76 MB / 261.3 MB, free: 1.953 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.206/6.282, allocations: 2.518 GB / 2.773 GB, free: 72.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002185/6.282, allocations: 72.7 kB / 2.773 GB, free: 72.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.491/8.773, allocations: 0.5289 GB / 3.302 GB, free: 31.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.16e-06/8.773, allocations: 1.125 kB / 3.302 GB, free: 31.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001703/8.773, allocations: 46.31 kB / 3.302 GB, free: 31.32 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.01055/8.784, allocations: 2.737 MB / 3.304 GB, free: 30.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/8.784, allocations: 10.88 kB / 3.304 GB, free: 30.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006215/8.79, allocations: 0.591 MB / 3.305 GB, free: 30 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004607/8.795, allocations: 1.458 MB / 3.306 GB, free: 29.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002014/8.795, allocations: 77.12 kB / 3.306 GB, free: 29.63 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005347/8.796, allocations: 84.8 kB / 3.307 GB, free: 29.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004753/8.8, allocations: 1.963 MB / 3.308 GB, free: 29.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005333/8.806, allocations: 2.159 MB / 3.311 GB, free: 29.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-05/8.806, allocations: 5.312 kB / 3.311 GB, free: 29.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002752/8.806, allocations: 5.969 kB / 3.311 GB, free: 29.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001916/8.806, allocations: 133.9 kB / 3.311 GB, free: 29.18 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.209/9.015, allocations: 75.6 MB / 3.385 GB, free: 21.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002253/9.018, allocations: 1.114 MB / 3.386 GB, free: 21.91 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/9.019, allocations: 0.6665 MB / 3.386 GB, free: 21.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008445/9.027, allocations: 4.301 MB / 3.39 GB, free: 18.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.853e-05/9.027, allocations: 41.62 kB / 3.391 GB, free: 18.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=102): time 4.526e-06/9.027, allocations: 0 / 3.391 GB, free: 18.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.01839/9.046, allocations: 4.899 MB / 3.395 GB, free: 17.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/9.046, allocations: 146.1 kB / 3.395 GB, free: 17.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/9.048, allocations: 0.8459 MB / 3.396 GB, free: 17.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003142/9.048, allocations: 25.7 kB / 3.396 GB, free: 17.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005307/9.049, allocations: 0.7822 MB / 3.397 GB, free: 17.04 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000447/9.049, allocations: 399.3 kB / 3.397 GB, free: 16.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/9.049, allocations: 0 / 3.397 GB, free: 16.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002428/9.049, allocations: 377.6 kB / 3.398 GB, free: 16.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001414/9.051, allocations: 0.7373 MB / 3.399 GB, free: 16.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/9.053, allocations: 1.176 MB / 3.4 GB, free: 15.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02239/9.075, allocations: 4.166 MB / 3.404 GB, free: 15.64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.547e-05/9.075, allocations: 3.938 kB / 3.404 GB, free: 15.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.01735/9.093, allocations: 4.164 MB / 3.408 GB, free: 13.24 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002632/9.095, allocations: 5.135 MB / 3.413 GB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-05/9.095, allocations: 12 kB / 3.413 GB, free: 7.809 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001934/9.097, allocations: 486.2 kB / 3.413 GB, free: 7.531 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002063/9.099, allocations: 395.2 kB / 3.414 GB, free: 7.242 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003377/9.103, allocations: 2.916 MB / 3.417 GB, free: 4.695 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0025/9.105, allocations: 193.9 kB / 3.417 GB, free: 4.555 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003302/9.106, allocations: 81.47 kB / 3.417 GB, free: 4.496 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/9.106, allocations: 7.75 kB / 3.417 GB, free: 4.492 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01679/9.122, allocations: 3.963 MB / 3.421 GB, free: 2.227 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.733e-05/9.123, allocations: 18.19 kB / 3.421 GB, free: 2.211 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001708/9.124, allocations: 448.4 kB / 3.421 GB, free: 1.953 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002167/9.126, allocations: 394.1 kB / 3.421 GB, free: 1.664 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2511/9.378, allocations: 2.901 MB / 3.424 GB, free: 59.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002046/9.38, allocations: 180.9 kB / 3.424 GB, free: 59.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002593/9.38, allocations: 78.72 kB / 3.425 GB, free: 59.53 MB / 410.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 (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,boundary.medium.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.0005411/9.381, allocations: 163.7 kB / 3.425 GB, free: 59.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004459/9.381, allocations: 129.8 kB / 3.425 GB, free: 59.42 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009684/9.391, allocations: 4.697 MB / 3.429 GB, free: 59.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.949e-05/9.391, allocations: 54.17 kB / 3.429 GB, free: 59.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/9.391, allocations: 0.5625 kB / 3.429 GB, free: 59.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007248/9.398, allocations: 4.328 MB / 3.434 GB, free: 58.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01417/9.412, allocations: 6.968 MB / 3.441 GB, free: 57.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-05/9.412, allocations: 0 / 3.441 GB, free: 57.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00153/9.414, allocations: 264.9 kB / 3.441 GB, free: 57.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002208/9.416, allocations: 0.5328 MB / 3.441 GB, free: 57.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002698/9.416, allocations: 21.17 kB / 3.441 GB, free: 57.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002694/9.419, allocations: 3.068 MB / 3.444 GB, free: 55.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.15e-06/9.419, allocations: 7.344 kB / 3.444 GB, free: 55.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009243/9.429, allocations: 4.655 MB / 3.449 GB, free: 55.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/9.43, allocations: 498.8 kB / 3.449 GB, free: 55.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004574/9.43, allocations: 17.39 kB / 3.449 GB, free: 55.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001792/9.432, allocations: 133.1 kB / 3.449 GB, free: 55.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000336/9.433, allocations: 112 kB / 3.45 GB, free: 55.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/9.433, allocations: 41.62 kB / 3.45 GB, free: 55.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001223/9.434, allocations: 0.6817 MB / 3.45 GB, free: 55.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.26e-07/9.434, allocations: 0 / 3.45 GB, free: 55.07 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008553/9.443, allocations: 2.064 MB / 3.452 GB, free: 55.07 MB / 410.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: 30 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,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 (114): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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.01081/9.453, allocations: 2.331 MB / 3.455 GB, free: 54.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006818/9.46, allocations: 3.303 MB / 3.458 GB, free: 54.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.151e-06/9.46, allocations: 4.469 kB / 3.458 GB, free: 54.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002982/9.463, allocations: 1.483 MB / 3.459 GB, free: 54.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003587/9.467, allocations: 0.552 MB / 3.46 GB, free: 54.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1523/9.619, allocations: 57.39 MB / 3.516 GB, free: 52.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/9.621, allocations: 1.753 MB / 3.518 GB, free: 51.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007325/9.622, allocations: 136.8 kB / 3.518 GB, free: 51.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.973e-06/9.622, allocations: 1.5 kB / 3.518 GB, free: 51.73 MB / 410.7 MB Notification: Performance of Templates: time 0.3703/9.992, allocations: 85.07 MB / 3.601 GB, free: 54.72 MB / 410.7 MB