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.067/2.067, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004338/0.0004338, allocations: 12 kB / 314.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.271, allocations: 54.85 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.455/6.726, allocations: 2.652 GB / 3.013 GB, free: 55.57 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002032/6.727, allocations: 85.28 kB / 3.013 GB, free: 55.52 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.38/10.11, allocations: 0.7425 GB / 3.756 GB, free: 42.01 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.749e-06/10.11, allocations: 3.938 kB / 3.756 GB, free: 42.01 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001454/10.11, allocations: 37.38 kB / 3.756 GB, free: 42 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.01136/10.12, allocations: 2.914 MB / 3.758 GB, free: 40.37 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/10.12, allocations: 10.78 kB / 3.758 GB, free: 40.37 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004401/10.12, allocations: 477 kB / 3.759 GB, free: 40.25 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003593/10.13, allocations: 1.137 MB / 3.76 GB, free: 39.61 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002185/10.13, allocations: 141.2 kB / 3.76 GB, free: 39.52 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004676/10.13, allocations: 96.88 kB / 3.76 GB, free: 39.48 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005593/10.13, allocations: 1.89 MB / 3.762 GB, free: 38.62 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.484e-05/10.13, allocations: 3.875 kB / 3.762 GB, free: 38.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002259/10.13, allocations: 48.84 kB / 3.762 GB, free: 38.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/10.13, allocations: 78.94 kB / 3.762 GB, free: 38.58 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006308/10.14, allocations: 1.773 MB / 3.764 GB, free: 38 MB / 0.4948 GB 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.01596/10.15, allocations: 8.54 MB / 3.772 GB, free: 31.59 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004427/10.16, allocations: 1.398 MB / 3.774 GB, free: 30.93 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.473/10.63, allocations: 63.3 MB / 3.836 GB, free: 54.13 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003646/10.64, allocations: 0.8891 MB / 3.836 GB, free: 54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=82): time 6.963e-06/10.64, allocations: 1.625 kB / 3.836 GB, free: 54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=86): time 0.01684/10.65, allocations: 4.625 MB / 3.841 GB, free: 52.94 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/10.65, allocations: 408.4 kB / 3.841 GB, free: 52.47 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001799/10.66, allocations: 0.9311 MB / 3.842 GB, free: 52.32 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002548/10.66, allocations: 47.08 kB / 3.842 GB, free: 52.29 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004674/10.66, allocations: 0.5599 MB / 3.843 GB, free: 52 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004023/10.66, allocations: 301.3 kB / 3.843 GB, free: 51.86 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/10.66, allocations: 27 kB / 3.843 GB, free: 51.86 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001114/10.66, allocations: 370.1 kB / 3.843 GB, free: 51.55 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/10.66, allocations: 0.5355 MB / 3.844 GB, free: 51.55 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001916/10.66, allocations: 1.007 MB / 3.845 GB, free: 50.99 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001948/10.66, allocations: 0.6994 MB / 3.846 GB, free: 50.98 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/10.66, allocations: 3.906 kB / 3.846 GB, free: 50.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005456/10.67, allocations: 1.862 MB / 3.847 GB, free: 50.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.00111/10.67, allocations: 5.402 MB / 3.853 GB, free: 45.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.175e-05/10.67, allocations: 13.84 kB / 3.853 GB, free: 45.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008478/10.68, allocations: 1.103 MB / 3.854 GB, free: 45.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/10.68, allocations: 251.6 kB / 3.854 GB, free: 45.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00279/10.68, allocations: 1.496 MB / 3.856 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002121/10.68, allocations: 137.8 kB / 3.856 GB, free: 44.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/10.68, allocations: 69.17 kB / 3.856 GB, free: 44.72 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/10.68, allocations: 4.625 kB / 3.856 GB, free: 44.72 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005007/10.69, allocations: 1.686 MB / 3.857 GB, free: 44.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-05/10.69, allocations: 15.12 kB / 3.857 GB, free: 44.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002062/10.69, allocations: 379 kB / 3.858 GB, free: 44.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001611/10.69, allocations: 281 kB / 3.858 GB, free: 44.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/10.69, allocations: 1.052 MB / 3.859 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/10.7, allocations: 126.5 kB / 3.859 GB, free: 44.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002001/10.7, allocations: 65.86 kB / 3.859 GB, free: 44.15 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) 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 () * Number of clocked 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.001229/10.7, allocations: 480.6 kB / 3.86 GB, free: 43.96 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003901/10.7, allocations: 125.2 kB / 3.86 GB, free: 43.89 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007718/10.71, allocations: 4.055 MB / 3.864 GB, free: 43.55 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.633e-05/10.71, allocations: 40.89 kB / 3.864 GB, free: 43.55 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/10.71, allocations: 6.25 kB / 3.864 GB, free: 43.55 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.103e-05/10.71, allocations: 7.172 kB / 3.864 GB, free: 43.55 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/10.72, allocations: 5.546 MB / 3.869 GB, free: 42.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/10.72, allocations: 2.594 kB / 3.869 GB, free: 42.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/10.72, allocations: 173.8 kB / 3.869 GB, free: 42.96 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007539/10.72, allocations: 1.539 MB / 3.871 GB, free: 42.91 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002224/10.73, allocations: 25.33 kB / 3.871 GB, free: 42.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002123/10.73, allocations: 2.099 MB / 3.873 GB, free: 41.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.887e-06/10.73, allocations: 3.875 kB / 3.873 GB, free: 41.85 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007416/10.73, allocations: 3.989 MB / 3.877 GB, free: 41.27 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/10.74, allocations: 0.5329 MB / 3.877 GB, free: 41.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004418/10.74, allocations: 28.45 kB / 3.877 GB, free: 41.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001667/10.74, allocations: 95.94 kB / 3.878 GB, free: 41.04 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002564/10.74, allocations: 74.39 kB / 3.878 GB, free: 41.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/10.74, allocations: 36.33 kB / 3.878 GB, free: 41.04 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002033/10.74, allocations: 1.055 MB / 3.879 GB, free: 40.93 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.89e-07/10.74, allocations: 0 / 3.879 GB, free: 40.93 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008689/10.75, allocations: 2.056 MB / 3.881 GB, free: 40.83 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 () * Number of clocked 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.0112/10.76, allocations: 2.37 MB / 3.883 GB, free: 40.59 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00722/10.77, allocations: 2.466 MB / 3.885 GB, free: 40.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/10.77, allocations: 0 / 3.885 GB, free: 40.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002391/10.77, allocations: 1.057 MB / 3.886 GB, free: 40.53 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004076/10.77, allocations: 0.6157 MB / 3.887 GB, free: 40.52 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008636/10.78, allocations: 4.482 MB / 3.891 GB, free: 38.65 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/10.78, allocations: 1.469 MB / 3.893 GB, free: 37.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005656/10.79, allocations: 113.9 kB / 3.893 GB, free: 37.92 MB / 0.5105 GB Notification: Performance of SimCode: time 1.658e-06/10.79, allocations: 0 / 3.893 GB, free: 37.92 MB / 0.5105 GB Notification: Performance of Templates: time 0.09175/10.88, allocations: 59.21 MB / 3.951 GB, free: 34.14 MB / 0.5105 GB