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.98/1.98, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005635/0.0005637, allocations: 12 kB / 263.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08949/0.09008, allocations: 44.51 MB / 308.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.NonCircularPipes): time 0.07808/0.1682, allocations: 53.08 MB / 361.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.2654/0.4337, allocations: 22.54 MB / 384 MB, free: 10.8 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002088/0.4358, allocations: 58.56 kB / 384 MB, free: 10.8 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002542/0.4384, allocations: 0.7214 MB / 384.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01066/0.4491, allocations: 3.146 MB / 387.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02176/0.4709, allocations: 6.514 MB / 394.4 MB, free: 10.68 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005422/0.4763, allocations: 3.227 MB / 397.6 MB, free: 10.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00172/0.4781, allocations: 0.9227 MB / 398.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02212/0.5002, allocations: 12.49 MB / 411 MB, free: 7.23 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02148/0.5218, allocations: 12.16 MB / 423.2 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004657/0.5223, allocations: 76 kB / 423.3 MB, free: 12 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02209/0.5444, allocations: 8.7 MB / 432 MB, free: 5.219 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001189/0.5456, allocations: 0.5616 MB / 432.5 MB, free: 4.848 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008655/0.5465, allocations: 397.4 kB / 432.9 MB, free: 4.613 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01257/0.5591, allocations: 5.226 MB / 438.2 MB, free: 140 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.262e-06/0.5591, allocations: 0 / 438.2 MB, free: 140 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.329e-06/0.5592, allocations: 0 / 438.2 MB, free: 140 kB / 330.7 MB Notification: Performance of Transformations before backend: time 5.524e-05/0.5592, allocations: 4 kB / 438.2 MB, free: 136 kB / 330.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.008285/0.5675, allocations: 2.619 MB / 440.8 MB, free: 13.65 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.5676, allocations: 12.03 kB / 440.8 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005751/0.5734, allocations: 0.5956 MB / 441.4 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002965/0.5764, allocations: 1.141 MB / 442.5 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002543/0.5767, allocations: 144 kB / 442.7 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004661/0.5771, allocations: 143.5 kB / 442.8 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008754/0.5859, allocations: 2.806 MB / 445.6 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.788e-05/0.586, allocations: 7.188 kB / 445.6 MB, free: 9.789 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002493/0.5863, allocations: 69.27 kB / 445.7 MB, free: 9.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002624/0.5865, allocations: 154.2 kB / 445.8 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009123/0.5957, allocations: 2.665 MB / 448.5 MB, free: 7.676 MB / 346.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.02111/0.6168, allocations: 11.92 MB / 460.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006331/0.6232, allocations: 1.77 MB / 462.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0124/0.6357, allocations: 5.754 MB / 467.9 MB, free: 4.875 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.089e-05/0.6358, allocations: 46.38 kB / 468 MB, free: 4.824 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 5.535e-06/0.6358, allocations: 4 kB / 468 MB, free: 4.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.02785/0.6637, allocations: 7.026 MB / 475 MB, free: 13.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.6638, allocations: 141.5 kB / 475.2 MB, free: 13.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002267/0.6661, allocations: 1.145 MB / 476.3 MB, free: 12.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/0.6664, allocations: 45.7 kB / 476.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000768/0.6672, allocations: 0.7555 MB / 477.1 MB, free: 11.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006185/0.6678, allocations: 437.6 kB / 477.5 MB, free: 11.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.6679, allocations: 28 kB / 477.6 MB, free: 11.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002517/0.6682, allocations: 378.8 kB / 477.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002497/0.6707, allocations: 0.8705 MB / 478.8 MB, free: 9.934 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003029/0.6738, allocations: 1.348 MB / 480.1 MB, free: 8.402 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.442/4.116, allocations: 0.4883 GB / 0.9572 GB, free: 76.61 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/4.116, allocations: 5.094 kB / 0.9572 GB, free: 76.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.006488/4.123, allocations: 2.648 MB / 0.9598 GB, free: 74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002333/4.123, allocations: 497.7 kB / 0.9603 GB, free: 73.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/4.123, allocations: 16 kB / 0.9603 GB, free: 73.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002075/4.125, allocations: 0.4989 MB / 0.9608 GB, free: 72.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001861/4.127, allocations: 404.3 kB / 0.9611 GB, free: 72.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002241/4.129, allocations: 2.887 MB / 0.964 GB, free: 69.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/4.131, allocations: 203.3 kB / 0.9642 GB, free: 69.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/4.131, allocations: 79.98 kB / 0.9642 GB, free: 69.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/4.131, allocations: 6.031 kB / 0.9642 GB, free: 69.17 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005959/4.137, allocations: 2.514 MB / 0.9667 GB, free: 66.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.807e-05/4.137, allocations: 12.94 kB / 0.9667 GB, free: 66.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001829/4.139, allocations: 490.9 kB / 0.9672 GB, free: 66.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/4.141, allocations: 392.4 kB / 0.9675 GB, free: 65.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002206/4.143, allocations: 2.868 MB / 0.9703 GB, free: 62.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001715/4.145, allocations: 208.7 kB / 0.9705 GB, free: 62.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001922/4.145, allocations: 79.98 kB / 0.9706 GB, free: 62.52 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: 61 * 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 (188): * Single equations (assignments): 184 * 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.00133/4.147, allocations: 0.5928 MB / 0.9712 GB, free: 61.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005906/4.147, allocations: 144.5 kB / 0.9713 GB, free: 61.86 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009764/4.157, allocations: 5.427 MB / 0.9766 GB, free: 56.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.172e-05/4.157, allocations: 59.91 kB / 0.9767 GB, free: 56.44 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.033e-06/4.157, allocations: 5.938 kB / 0.9767 GB, free: 56.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007667/4.165, allocations: 4.982 MB / 0.9816 GB, free: 51.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/4.178, allocations: 7.963 MB / 0.9893 GB, free: 43.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/4.178, allocations: 0 / 0.9893 GB, free: 43.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001347/4.179, allocations: 292.9 kB / 0.9896 GB, free: 43.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002483/4.182, allocations: 0.5718 MB / 0.9902 GB, free: 42.48 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001541/4.182, allocations: 39.92 kB / 0.9902 GB, free: 42.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002251/4.184, allocations: 2.94 MB / 0.9931 GB, free: 39.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/4.184, allocations: 4.062 kB / 0.9931 GB, free: 39.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009165/4.194, allocations: 5.284 MB / 0.9983 GB, free: 34.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/4.195, allocations: 0.5131 MB / 0.9988 GB, free: 33.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003406/4.195, allocations: 31.95 kB / 0.9988 GB, free: 33.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/4.196, allocations: 161 kB / 0.9989 GB, free: 33.33 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002717/4.197, allocations: 122 kB / 0.9991 GB, free: 33.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/4.197, allocations: 39.98 kB / 0.9991 GB, free: 33.17 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001312/4.198, allocations: 0.8098 MB / 0.9999 GB, free: 32.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.996e-06/4.198, allocations: 0 / 0.9999 GB, free: 32.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005325/4.203, allocations: 1.985 MB / 1.002 GB, free: 30.51 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.00617/4.21, allocations: 1.629 MB / 1.003 GB, free: 29.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008757/4.218, allocations: 3.856 MB / 1.007 GB, free: 25.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.843e-06/4.219, allocations: 1.5 kB / 1.007 GB, free: 25.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003042/4.222, allocations: 1.712 MB / 1.009 GB, free: 23.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003258/4.225, allocations: 0.6229 MB / 1.009 GB, free: 23.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009434/4.234, allocations: 6.403 MB / 1.016 GB, free: 16.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001607/4.236, allocations: 1.778 MB / 1.017 GB, free: 14.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006315/4.237, allocations: 139.4 kB / 1.018 GB, free: 14.67 MB / 426.7 MB Notification: Performance of SimCode: time 1.462e-06/4.237, allocations: 0 / 1.018 GB, free: 14.67 MB / 426.7 MB Notification: Performance of Templates: time 0.3138/4.55, allocations: 85.01 MB / 1.101 GB, free: 103.4 MB / 426.7 MB