Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.3..h|pipe.mediums.4..h|pipe.mediums.5..h|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.929/1.929, allocations: 209.2 MB / 225.4 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004295/0.0004297, allocations: 15.98 kB / 283.1 MB, free: 9.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1103, allocations: 48.72 MB / 331.8 MB, free: 9.043 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.83/7.94, allocations: 2.553 GB / 2.877 GB, free: 40.91 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/7.941, allocations: 80.34 kB / 2.877 GB, free: 40.87 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.587/10.53, allocations: 484.2 MB / 3.35 GB, free: 34.72 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.314e-06/10.53, allocations: 0 / 3.35 GB, free: 34.72 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001143/10.53, allocations: 37.64 kB / 3.35 GB, free: 34.71 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.01404/10.54, allocations: 3.026 MB / 3.353 GB, free: 33.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/10.54, allocations: 11.72 kB / 3.353 GB, free: 33.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006072/10.55, allocations: 0.5568 MB / 3.354 GB, free: 33.49 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005758/10.55, allocations: 1.492 MB / 3.355 GB, free: 33.12 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001777/10.55, allocations: 133.8 kB / 3.355 GB, free: 33.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004009/10.55, allocations: 142.6 kB / 3.356 GB, free: 33.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008426/10.56, allocations: 2.752 MB / 3.358 GB, free: 32.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.45e-05/10.56, allocations: 9.422 kB / 3.358 GB, free: 32.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002833/10.56, allocations: 62.52 kB / 3.358 GB, free: 32.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000169/10.56, allocations: 105.8 kB / 3.358 GB, free: 32.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009665/10.57, allocations: 2.695 MB / 3.361 GB, free: 31.41 MB / 442.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.01879/10.59, allocations: 10.92 MB / 3.372 GB, free: 23.31 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007332/10.6, allocations: 1.837 MB / 3.374 GB, free: 22.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2226/10.82, allocations: 61.62 MB / 3.434 GB, free: 9.23 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006408/10.83, allocations: 1.429 MB / 3.435 GB, free: 8.133 MB / 474.7 MB Notification: Performance of pre-optimization done (n=127): time 6.282e-06/10.83, allocations: 0 / 3.435 GB, free: 8.133 MB / 474.7 MB Notification: Performance of matching and sorting (n=151): time 0.03379/10.86, allocations: 8.34 MB / 3.443 GB, free: 0.9922 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000168/10.86, allocations: 278.3 kB / 3.444 GB, free: 0.6562 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3403/11.2, allocations: 0.9952 MB / 3.444 GB, free: 67.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004993/11.2, allocations: 54.17 kB / 3.445 GB, free: 67.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007127/11.2, allocations: 0.6781 MB / 3.445 GB, free: 67.08 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008188/11.21, allocations: 0.5154 MB / 3.446 GB, free: 66.83 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/11.21, allocations: 37.09 kB / 3.446 GB, free: 66.83 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001858/11.21, allocations: 379.2 kB / 3.446 GB, free: 66.52 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003592/11.21, allocations: 1.013 MB / 3.447 GB, free: 66.52 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004271/11.21, allocations: 1.511 MB / 3.449 GB, free: 65.96 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.005/18.22, allocations: 0.569 GB / 4.018 GB, free: 79.53 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.096e-05/18.22, allocations: 3.5 kB / 4.018 GB, free: 79.53 MB / 490.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01007/18.23, allocations: 3.367 MB / 4.021 GB, free: 79.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003372/18.23, allocations: 0.5077 MB / 4.021 GB, free: 78.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.537e-05/18.23, allocations: 14.59 kB / 4.021 GB, free: 78.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01984/18.25, allocations: 2.577 MB / 4.024 GB, free: 78.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001862/18.25, allocations: 282.1 kB / 4.024 GB, free: 78.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008357/18.26, allocations: 3.256 MB / 4.027 GB, free: 78.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003084/18.26, allocations: 224.9 kB / 4.028 GB, free: 78.15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002474/18.26, allocations: 88.19 kB / 4.028 GB, free: 78.15 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/18.26, allocations: 3.969 kB / 4.028 GB, free: 78.15 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009848/18.27, allocations: 3.247 MB / 4.031 GB, free: 78.08 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.452e-05/18.27, allocations: 15.19 kB / 4.031 GB, free: 78.08 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01268/18.29, allocations: 1.938 MB / 4.033 GB, free: 78.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002008/18.29, allocations: 294.7 kB / 4.033 GB, free: 78.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007342/18.3, allocations: 2.984 MB / 4.036 GB, free: 77.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002517/18.3, allocations: 206.7 kB / 4.036 GB, free: 77.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002307/18.3, allocations: 93.86 kB / 4.036 GB, free: 77.45 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.pipe.mediums[2].p = 0.0 $DER.pipe.mediums[3].p = 0.0 $DER.pipe.mediums[4].p = 0.0 $DER.pipe.mediums[1].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 145 * 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 {6 79} Notification: Performance of prepare postOptimizeDAE: time 0.001588/18.3, allocations: 0.6 MB / 4.037 GB, free: 77.26 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004411/18.3, allocations: 138.4 kB / 4.037 GB, free: 77.26 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/18.31, allocations: 5.833 MB / 4.043 GB, free: 76.88 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.454e-05/18.31, allocations: 54.45 kB / 4.043 GB, free: 76.88 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/18.31, allocations: 0 / 4.043 GB, free: 76.88 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008824/18.32, allocations: 4.734 MB / 4.047 GB, free: 76.15 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01668/18.34, allocations: 8.17 MB / 4.055 GB, free: 71.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.106e-05/18.34, allocations: 4 kB / 4.055 GB, free: 71.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001812/18.34, allocations: 255.4 kB / 4.055 GB, free: 71.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007611/18.35, allocations: 1.282 MB / 4.057 GB, free: 70.97 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002499/18.35, allocations: 60.98 kB / 4.057 GB, free: 70.94 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003867/18.35, allocations: 2.187 MB / 4.059 GB, free: 69.58 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/18.35, allocations: 8.375 kB / 4.059 GB, free: 69.57 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01201/18.36, allocations: 5.655 MB / 4.064 GB, free: 66.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/18.37, allocations: 0.6219 MB / 4.065 GB, free: 66.05 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004673/18.37, allocations: 38.36 kB / 4.065 GB, free: 66.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002162/18.37, allocations: 174.6 kB / 4.065 GB, free: 65.93 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003946/18.37, allocations: 154.5 kB / 4.065 GB, free: 65.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001629/18.37, allocations: 60.33 kB / 4.065 GB, free: 65.82 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001877/18.37, allocations: 0.9608 MB / 4.066 GB, free: 65.27 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.51e-07/18.37, allocations: 4 kB / 4.066 GB, free: 65.27 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009743/18.38, allocations: 2.113 MB / 4.068 GB, free: 63.61 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (pipe.mediums[1].h,pipe.mediums[2].h,pipe.mediums[3].h,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 31 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].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 (124): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 1 * 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 {10 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.01171/18.39, allocations: 1.99 MB / 4.07 GB, free: 62.33 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01257/18.4, allocations: 4.356 MB / 4.075 GB, free: 59.93 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/18.4, allocations: 0 / 4.075 GB, free: 59.93 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004667/18.41, allocations: 1.909 MB / 4.077 GB, free: 58.82 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005534/18.42, allocations: 0.6641 MB / 4.077 GB, free: 58.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5349/18.95, allocations: 60.61 MB / 4.136 GB, free: 69.18 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001556/18.95, allocations: 1.735 MB / 4.138 GB, free: 68.44 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008143/18.95, allocations: 126.6 kB / 4.138 GB, free: 68.43 MB / 490.7 MB Notification: Performance of SimCode: time 1.373e-06/18.95, allocations: 0 / 4.138 GB, free: 68.43 MB / 490.7 MB Notification: Performance of Templates: time 0.112/19.06, allocations: 57.58 MB / 4.194 GB, free: 64.96 MB / 490.7 MB