Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.393/2.393, allocations: 234.9 MB / 251.1 MB, free: 9.691 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004363, allocations: 12 kB / 314.9 MB, free: 9.75 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.368, allocations: 54.86 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.743/8.111, allocations: 2.652 GB / 3.014 GB, free: 68.38 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/8.111, allocations: 89.33 kB / 3.014 GB, free: 68.33 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.963/12.07, allocations: 0.7425 GB / 3.756 GB, free: 39.83 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.915e-06/12.07, allocations: 3.312 kB / 3.756 GB, free: 39.83 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001966/12.07, allocations: 38.67 kB / 3.756 GB, free: 39.82 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.0142/12.09, allocations: 2.901 MB / 3.759 GB, free: 38.34 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/12.09, allocations: 7.844 kB / 3.759 GB, free: 38.34 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004915/12.09, allocations: 480.4 kB / 3.759 GB, free: 38.27 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004346/12.1, allocations: 1.143 MB / 3.761 GB, free: 37.94 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002902/12.1, allocations: 143.6 kB / 3.761 GB, free: 37.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005253/12.1, allocations: 97.28 kB / 3.761 GB, free: 37.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006702/12.11, allocations: 1.9 MB / 3.763 GB, free: 37.53 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.059e-05/12.11, allocations: 0 / 3.763 GB, free: 37.53 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002431/12.11, allocations: 44.69 kB / 3.763 GB, free: 37.53 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001848/12.11, allocations: 79.56 kB / 3.763 GB, free: 37.53 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007118/12.11, allocations: 1.783 MB / 3.765 GB, free: 37.49 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.01932/12.13, allocations: 8.536 MB / 3.773 GB, free: 31.63 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005272/12.14, allocations: 1.404 MB / 3.774 GB, free: 30.97 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2098/12.35, allocations: 63.26 MB / 3.836 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003816/12.35, allocations: 0.8937 MB / 3.837 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=82): time 5.32e-06/12.35, allocations: 4 kB / 3.837 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=86): time 0.02098/12.37, allocations: 4.648 MB / 3.841 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002674/12.37, allocations: 402.2 kB / 3.842 GB, free: 10.24 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00218/12.38, allocations: 1.047 MB / 3.843 GB, free: 9.332 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003566/12.38, allocations: 49.7 kB / 3.843 GB, free: 9.277 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005481/12.38, allocations: 0.5602 MB / 3.843 GB, free: 8.746 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004315/12.38, allocations: 302.4 kB / 3.844 GB, free: 8.48 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/12.38, allocations: 24.12 kB / 3.844 GB, free: 8.457 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001987/12.38, allocations: 372.6 kB / 3.844 GB, free: 8.102 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/12.38, allocations: 0.5319 MB / 3.845 GB, free: 7.641 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002606/12.38, allocations: 1.009 MB / 3.846 GB, free: 6.516 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002744/12.38, allocations: 0.7059 MB / 3.846 GB, free: 5.863 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.158e-05/12.39, allocations: 8 kB / 3.846 GB, free: 5.855 MB / 0.5261 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.00765/12.39, allocations: 1.868 MB / 3.848 GB, free: 4.176 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004948/12.39, allocations: 0.4911 MB / 3.849 GB, free: 3.496 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.864e-05/12.39, allocations: 12 kB / 3.849 GB, free: 3.484 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01113/12.4, allocations: 1.11 MB / 3.85 GB, free: 2.645 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001935/12.41, allocations: 250 kB / 3.85 GB, free: 2.434 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004287/12.41, allocations: 1.497 MB / 3.851 GB, free: 1.027 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002606/12.41, allocations: 137.5 kB / 3.851 GB, free: 0.918 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003413/12.41, allocations: 67.75 kB / 3.852 GB, free: 0.8555 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/12.41, allocations: 4 kB / 3.852 GB, free: 0.8516 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4588/12.87, allocations: 1.682 MB / 3.853 GB, free: 70.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.879e-05/12.87, allocations: 16.94 kB / 3.853 GB, free: 70.72 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002872/12.88, allocations: 369.5 kB / 3.854 GB, free: 70.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002346/12.88, allocations: 287.3 kB / 3.854 GB, free: 70.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002236/12.88, allocations: 1.06 MB / 3.855 GB, free: 70.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002069/12.88, allocations: 121.8 kB / 3.855 GB, free: 70.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003314/12.88, allocations: 68.95 kB / 3.855 GB, free: 70.19 MB / 0.5261 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.00144/12.88, allocations: 473.6 kB / 3.856 GB, free: 70 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004483/12.88, allocations: 124.9 kB / 3.856 GB, free: 70 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009403/12.89, allocations: 4.059 MB / 3.86 GB, free: 69.77 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-05/12.89, allocations: 46.88 kB / 3.86 GB, free: 69.77 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/12.89, allocations: 2.516 kB / 3.86 GB, free: 69.77 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.014e-05/12.89, allocations: 5.234 kB / 3.86 GB, free: 69.77 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01223/12.91, allocations: 5.545 MB / 3.865 GB, free: 69.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-05/12.91, allocations: 7.812 kB / 3.865 GB, free: 69.24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/12.91, allocations: 171 kB / 3.865 GB, free: 69.24 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01102/12.92, allocations: 1.538 MB / 3.867 GB, free: 69.19 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000282/12.92, allocations: 27.34 kB / 3.867 GB, free: 69.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002461/12.92, allocations: 2.093 MB / 3.869 GB, free: 68.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/12.92, allocations: 7.484 kB / 3.869 GB, free: 68.13 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008567/12.93, allocations: 3.878 MB / 3.873 GB, free: 67.69 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/12.93, allocations: 0.5344 MB / 3.873 GB, free: 67.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006176/12.93, allocations: 27.78 kB / 3.873 GB, free: 67.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002084/12.94, allocations: 99.62 kB / 3.873 GB, free: 67.48 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003166/12.94, allocations: 74.52 kB / 3.873 GB, free: 67.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/12.94, allocations: 38.47 kB / 3.873 GB, free: 67.48 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00233/12.94, allocations: 1.061 MB / 3.874 GB, free: 67.37 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.71e-07/12.94, allocations: 0 / 3.874 GB, free: 67.37 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01023/12.95, allocations: 2.053 MB / 3.876 GB, free: 67.37 MB / 0.5261 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.01365/12.96, allocations: 2.353 MB / 3.879 GB, free: 67.17 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007781/12.97, allocations: 2.466 MB / 3.881 GB, free: 67.12 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/12.97, allocations: 3.188 kB / 3.881 GB, free: 67.12 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002575/12.97, allocations: 1.039 MB / 3.882 GB, free: 67.12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006962/12.98, allocations: 0.6384 MB / 3.883 GB, free: 67.11 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/12.99, allocations: 4.488 MB / 3.887 GB, free: 65.23 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001587/12.99, allocations: 1.471 MB / 3.889 GB, free: 64.52 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008573/12.99, allocations: 110.1 kB / 3.889 GB, free: 64.51 MB / 0.5261 GB Notification: Performance of SimCode: time 1.172e-06/12.99, allocations: 2.375 kB / 3.889 GB, free: 64.51 MB / 0.5261 GB Notification: Performance of Templates: time 0.1282/13.12, allocations: 59.21 MB / 3.947 GB, free: 61.12 MB / 0.5261 GB