Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.221/2.221, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.939e-05/2.96e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3974, allocations: 54.86 MB / 364.5 MB, free: 5.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.007/6.405, allocations: 2.652 GB / 3.008 GB, free: 19.09 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002003/6.405, allocations: 81.42 kB / 3.008 GB, free: 19.01 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.283/9.688, allocations: 0.7407 GB / 3.749 GB, free: 35.65 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.196e-06/9.688, allocations: 0 / 3.749 GB, free: 35.65 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001235/9.688, allocations: 29.19 kB / 3.749 GB, free: 35.64 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01042/9.698, allocations: 2.751 MB / 3.752 GB, free: 34.08 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/9.698, allocations: 11.44 kB / 3.752 GB, free: 34.08 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004527/9.703, allocations: 481.9 kB / 3.752 GB, free: 33.96 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003345/9.706, allocations: 1.119 MB / 3.753 GB, free: 33.32 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001738/9.706, allocations: 154.5 kB / 3.753 GB, free: 33.22 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002719/9.707, allocations: 100.3 kB / 3.754 GB, free: 33.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005084/9.712, allocations: 1.879 MB / 3.755 GB, free: 32.28 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.284e-05/9.712, allocations: 3.938 kB / 3.755 GB, free: 32.28 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001927/9.712, allocations: 46.97 kB / 3.755 GB, free: 32.25 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/9.712, allocations: 78.61 kB / 3.756 GB, free: 32.24 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005094/9.717, allocations: 1.716 MB / 3.757 GB, free: 30.81 MB / 0.4948 GB 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.01422/9.732, allocations: 8.539 MB / 3.766 GB, free: 22.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00377/9.735, allocations: 1.38 MB / 3.767 GB, free: 21.52 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009614/9.736, allocations: 463.5 kB / 3.767 GB, free: 21.07 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4682/10.2, allocations: 63.49 MB / 3.829 GB, free: 42.32 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002984/10.21, allocations: 0.8996 MB / 3.83 GB, free: 42.19 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=82): time 5.031e-06/10.21, allocations: 0 / 3.83 GB, free: 42.19 MB / 0.5105 GB Notification: Performance of matching and sorting (n=86): time 0.01124/10.22, allocations: 3.739 MB / 3.834 GB, free: 41.21 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.552e-05/10.22, allocations: 398.3 kB / 3.834 GB, free: 40.74 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/10.22, allocations: 0.9256 MB / 3.835 GB, free: 40.58 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002282/10.22, allocations: 43.05 kB / 3.835 GB, free: 40.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004205/10.22, allocations: 0.5665 MB / 3.836 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000338/10.22, allocations: 309.3 kB / 3.836 GB, free: 40.12 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/10.22, allocations: 23.22 kB / 3.836 GB, free: 40.12 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001097/10.22, allocations: 359.7 kB / 3.836 GB, free: 39.81 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/10.22, allocations: 475.1 kB / 3.837 GB, free: 39.81 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/10.22, allocations: 0.9409 MB / 3.838 GB, free: 39.25 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/10.23, allocations: 0.6278 MB / 3.838 GB, free: 39.24 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.31e-05/10.23, allocations: 5.844 kB / 3.838 GB, free: 39.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004251/10.23, allocations: 1.709 MB / 3.84 GB, free: 39.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001084/10.23, allocations: 5.4 MB / 3.845 GB, free: 33.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.15e-05/10.23, allocations: 17.72 kB / 3.845 GB, free: 33.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007932/10.24, allocations: 1.053 MB / 3.846 GB, free: 33.53 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/10.24, allocations: 249 kB / 3.847 GB, free: 33.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002535/10.24, allocations: 1.455 MB / 3.848 GB, free: 32.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002054/10.25, allocations: 126.8 kB / 3.848 GB, free: 32.99 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002812/10.25, allocations: 71.58 kB / 3.848 GB, free: 32.99 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/10.25, allocations: 6.844 kB / 3.848 GB, free: 32.99 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003934/10.25, allocations: 1.524 MB / 3.85 GB, free: 32.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.415e-05/10.25, allocations: 17.59 kB / 3.85 GB, free: 32.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001725/10.25, allocations: 339.8 kB / 3.85 GB, free: 32.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/10.25, allocations: 281.2 kB / 3.85 GB, free: 32.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/10.25, allocations: 1.007 MB / 3.851 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/10.26, allocations: 128.7 kB / 3.851 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/10.26, allocations: 65.98 kB / 3.852 GB, free: 32.43 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0005044/10.26, allocations: 208 kB / 3.852 GB, free: 32.31 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003614/10.26, allocations: 125.3 kB / 3.852 GB, free: 32.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006305/10.26, allocations: 3.968 MB / 3.856 GB, free: 31.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.846e-05/10.26, allocations: 44.33 kB / 3.856 GB, free: 31.89 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/10.26, allocations: 0 / 3.856 GB, free: 31.89 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.202e-05/10.26, allocations: 6.797 kB / 3.856 GB, free: 31.89 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008838/10.27, allocations: 5.48 MB / 3.861 GB, free: 31.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/10.27, allocations: 3.75 kB / 3.861 GB, free: 31.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/10.27, allocations: 172.6 kB / 3.861 GB, free: 31.31 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007894/10.28, allocations: 1.776 MB / 3.863 GB, free: 31.26 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002073/10.28, allocations: 29.3 kB / 3.863 GB, free: 31.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002018/10.28, allocations: 2.089 MB / 3.865 GB, free: 30.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.726e-06/10.28, allocations: 7.344 kB / 3.865 GB, free: 30.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005919/10.29, allocations: 3.81 MB / 3.869 GB, free: 29.61 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/10.29, allocations: 0.5323 MB / 3.869 GB, free: 29.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004022/10.29, allocations: 24.53 kB / 3.869 GB, free: 29.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/10.29, allocations: 104.1 kB / 3.869 GB, free: 29.38 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/10.29, allocations: 76.09 kB / 3.87 GB, free: 29.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/10.29, allocations: 36.14 kB / 3.87 GB, free: 29.38 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00186/10.3, allocations: 1.039 MB / 3.871 GB, free: 29.26 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.017e-06/10.3, allocations: 0 / 3.871 GB, free: 29.26 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008371/10.3, allocations: 2.054 MB / 3.873 GB, free: 29.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01113/10.31, allocations: 2.353 MB / 3.875 GB, free: 28.92 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005325/10.32, allocations: 2.263 MB / 3.877 GB, free: 28.88 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.298e-05/10.32, allocations: 3.125 kB / 3.877 GB, free: 28.88 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001867/10.32, allocations: 0.9843 MB / 3.878 GB, free: 28.87 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004032/10.33, allocations: 0.6398 MB / 3.879 GB, free: 28.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005838/10.33, allocations: 2.911 MB / 3.882 GB, free: 28.18 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/10.33, allocations: 1.472 MB / 3.883 GB, free: 27.46 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005198/10.33, allocations: 117.5 kB / 3.883 GB, free: 27.45 MB / 0.5105 GB Notification: Performance of SimCode: time 1.813e-06/10.33, allocations: 2.562 kB / 3.883 GB, free: 27.45 MB / 0.5105 GB Notification: Performance of Templates: time 0.08811/10.42, allocations: 58.88 MB / 3.941 GB, free: 23 MB / 0.5105 GB