Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.832/1.832, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.627e-05, allocations: 0 / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08782/0.08787, allocations: 48.71 MB / 326.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.059/6.146, allocations: 2.542 GB / 2.861 GB, free: 86.21 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/6.147, allocations: 80.39 kB / 2.861 GB, free: 86.17 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.178/9.325, allocations: 0.723 GB / 3.584 GB, free: 23.44 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.941e-06/9.325, allocations: 3.469 kB / 3.584 GB, free: 23.44 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000118/9.325, allocations: 33.69 kB / 3.584 GB, free: 23.43 MB / 458.7 MB 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.009536/9.334, allocations: 2.669 MB / 3.586 GB, free: 21.91 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/9.334, allocations: 11.03 kB / 3.586 GB, free: 21.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004419/9.339, allocations: 462 kB / 3.587 GB, free: 21.79 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003258/9.342, allocations: 1.121 MB / 3.588 GB, free: 21.15 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000172/9.342, allocations: 145.6 kB / 3.588 GB, free: 21.05 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003101/9.343, allocations: 92.39 kB / 3.588 GB, free: 21.02 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004919/9.348, allocations: 1.893 MB / 3.59 GB, free: 20.11 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.063e-05/9.348, allocations: 0.5156 kB / 3.59 GB, free: 20.11 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002031/9.348, allocations: 46.45 kB / 3.59 GB, free: 20.09 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001251/9.348, allocations: 77.05 kB / 3.59 GB, free: 20.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004793/9.353, allocations: 1.721 MB / 3.592 GB, free: 19.31 MB / 458.7 MB 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.01366/9.367, allocations: 8.536 MB / 3.6 GB, free: 11.28 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003693/9.37, allocations: 1.389 MB / 3.601 GB, free: 10 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009668/9.371, allocations: 464.8 kB / 3.602 GB, free: 9.559 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4442/9.816, allocations: 63.42 MB / 3.664 GB, free: 23.24 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002855/9.818, allocations: 0.9002 MB / 3.665 GB, free: 23.12 MB / 474.7 MB Notification: Performance of pre-optimization done (n=82): time 6.143e-06/9.819, allocations: 0 / 3.665 GB, free: 23.12 MB / 474.7 MB Notification: Performance of matching and sorting (n=86): time 0.01169/9.83, allocations: 3.741 MB / 3.668 GB, free: 22.12 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.83e-05/9.83, allocations: 398 kB / 3.669 GB, free: 21.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/9.832, allocations: 0.9247 MB / 3.67 GB, free: 21.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002505/9.832, allocations: 45.73 kB / 3.67 GB, free: 21.47 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000435/9.833, allocations: 0.5641 MB / 3.67 GB, free: 21.18 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003447/9.833, allocations: 307.2 kB / 3.671 GB, free: 21.04 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/9.833, allocations: 23.62 kB / 3.671 GB, free: 21.04 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/9.833, allocations: 363.5 kB / 3.671 GB, free: 20.73 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/9.835, allocations: 474.1 kB / 3.671 GB, free: 20.73 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/9.836, allocations: 0.9426 MB / 3.672 GB, free: 20.17 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/9.837, allocations: 0.6311 MB / 3.673 GB, free: 20.16 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.24e-05/9.837, allocations: 3.844 kB / 3.673 GB, free: 20.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004197/9.842, allocations: 1.706 MB / 3.675 GB, free: 20.08 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001088/9.843, allocations: 5.405 MB / 3.68 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-05/9.843, allocations: 17.3 kB / 3.68 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007595/9.85, allocations: 1.048 MB / 3.681 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/9.852, allocations: 251.6 kB / 3.681 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002577/9.854, allocations: 1.442 MB / 3.683 GB, free: 13.92 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002187/9.857, allocations: 129.5 kB / 3.683 GB, free: 13.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002294/9.857, allocations: 72.2 kB / 3.683 GB, free: 13.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/9.857, allocations: 7.031 kB / 3.683 GB, free: 13.91 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003874/9.861, allocations: 1.524 MB / 3.684 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.916e-05/9.861, allocations: 19.45 kB / 3.684 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001716/9.863, allocations: 333.8 kB / 3.685 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/9.864, allocations: 281.7 kB / 3.685 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/9.866, allocations: 1.009 MB / 3.686 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/9.867, allocations: 130.9 kB / 3.686 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/9.868, allocations: 66.72 kB / 3.686 GB, free: 13.34 MB / 474.7 MB 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.0005045/9.868, allocations: 200.8 kB / 3.686 GB, free: 13.23 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003634/9.868, allocations: 124.2 kB / 3.686 GB, free: 13.17 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006263/9.875, allocations: 3.976 MB / 3.69 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.884e-05/9.875, allocations: 43.8 kB / 3.69 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/9.875, allocations: 0 / 3.69 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.287e-05/9.875, allocations: 13.72 kB / 3.69 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009005/9.884, allocations: 5.477 MB / 3.696 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.691e-05/9.884, allocations: 1.375 kB / 3.696 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009304/9.885, allocations: 173.7 kB / 3.696 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007734/9.893, allocations: 1.773 MB / 3.698 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/9.893, allocations: 30.72 kB / 3.698 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002513/9.895, allocations: 2.085 MB / 3.7 GB, free: 27.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.428e-06/9.896, allocations: 6.469 kB / 3.7 GB, free: 27.08 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005922/9.901, allocations: 3.815 MB / 3.703 GB, free: 26.48 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/9.903, allocations: 0.5257 MB / 3.704 GB, free: 26.26 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002873/9.903, allocations: 24.09 kB / 3.704 GB, free: 26.26 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/9.904, allocations: 101.6 kB / 3.704 GB, free: 26.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001773/9.904, allocations: 75.78 kB / 3.704 GB, free: 26.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/9.905, allocations: 38.98 kB / 3.704 GB, free: 26.24 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001848/9.906, allocations: 1.036 MB / 3.705 GB, free: 26.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.97e-07/9.906, allocations: 3.781 kB / 3.705 GB, free: 26.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007832/9.914, allocations: 2.043 MB / 3.707 GB, free: 26.03 MB / 490.7 MB 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.01057/9.925, allocations: 2.353 MB / 3.709 GB, free: 25.67 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005359/9.93, allocations: 2.263 MB / 3.712 GB, free: 25.61 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/9.93, allocations: 4.469 kB / 3.712 GB, free: 25.61 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001877/9.932, allocations: 0.9856 MB / 3.713 GB, free: 25.61 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004272/9.937, allocations: 0.631 MB / 3.713 GB, free: 25.57 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006013/9.943, allocations: 2.908 MB / 3.716 GB, free: 24.82 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/9.944, allocations: 1.473 MB / 3.717 GB, free: 24.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005665/9.945, allocations: 111.9 kB / 3.718 GB, free: 24.07 MB / 490.7 MB Notification: Performance of SimCode: time 1.9e-06/9.945, allocations: 0 / 3.718 GB, free: 24.07 MB / 490.7 MB Notification: Performance of Templates: time 0.09091/10.04, allocations: 58.73 MB / 3.775 GB, free: 18.89 MB / 490.7 MB