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.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 1.899/1.899, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.932e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08418/0.08423, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.318/6.403, allocations: 2.566 GB / 2.885 GB, free: 60.82 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/6.403, allocations: 73.97 kB / 2.885 GB, free: 60.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.006/10.41, allocations: 0.8798 GB / 3.765 GB, free: 30.75 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.923e-06/10.41, allocations: 0 / 3.765 GB, free: 30.75 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000256/10.41, allocations: 72.2 kB / 3.765 GB, free: 30.73 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01454/10.42, allocations: 3.831 MB / 3.769 GB, free: 28.63 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/10.42, allocations: 10.88 kB / 3.769 GB, free: 28.63 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008786/10.43, allocations: 0.8454 MB / 3.77 GB, free: 28.42 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006939/10.44, allocations: 2.086 MB / 3.772 GB, free: 27.47 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003013/10.44, allocations: 184.6 kB / 3.772 GB, free: 27.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008096/10.44, allocations: 203.1 kB / 3.772 GB, free: 27.34 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01037/10.45, allocations: 3.617 MB / 3.776 GB, free: 25.8 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.101e-05/10.45, allocations: 7.719 kB / 3.776 GB, free: 25.79 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003653/10.45, allocations: 87.92 kB / 3.776 GB, free: 25.74 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002578/10.45, allocations: 168.5 kB / 3.776 GB, free: 25.72 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009828/10.46, allocations: 3.194 MB / 3.779 GB, free: 24.71 MB / 474.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.0249/10.49, allocations: 15.45 MB / 3.794 GB, free: 12.46 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006591/10.49, allocations: 2.692 MB / 3.797 GB, free: 10.02 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002314/10.5, allocations: 1.114 MB / 3.798 GB, free: 9.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04131/10.54, allocations: 18.74 MB / 3.816 GB, free: 5.227 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005995/10.54, allocations: 1.702 MB / 3.818 GB, free: 3.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 6.886e-06/10.54, allocations: 0 / 3.818 GB, free: 3.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.3497/10.89, allocations: 7.691 MB / 3.825 GB, free: 47.35 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.041e-05/10.89, allocations: 263.7 kB / 3.826 GB, free: 47.07 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002615/10.9, allocations: 1.339 MB / 3.827 GB, free: 46.89 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005101/10.9, allocations: 60.83 kB / 3.827 GB, free: 46.86 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008604/10.9, allocations: 0.9216 MB / 3.828 GB, free: 46.49 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009333/10.9, allocations: 0.6214 MB / 3.828 GB, free: 46.18 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002264/10.9, allocations: 40.69 kB / 3.828 GB, free: 46.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/10.9, allocations: 392.8 kB / 3.829 GB, free: 45.86 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002575/10.9, allocations: 1.01 MB / 3.83 GB, free: 45.86 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003267/10.9, allocations: 1.502 MB / 3.831 GB, free: 45.36 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002924/10.91, allocations: 1.272 MB / 3.832 GB, free: 45.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-05/10.91, allocations: 3.906 kB / 3.832 GB, free: 45.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.008022/10.92, allocations: 2.978 MB / 3.835 GB, free: 45.06 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001046/10.92, allocations: 4.858 MB / 3.84 GB, free: 40.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.745e-05/10.92, allocations: 13.16 kB / 3.84 GB, free: 40.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/10.92, allocations: 236.1 kB / 3.84 GB, free: 39.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003302/10.92, allocations: 0.5282 MB / 3.841 GB, free: 39.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/10.92, allocations: 2.43 MB / 3.843 GB, free: 37.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003704/10.93, allocations: 304.7 kB / 3.844 GB, free: 37.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006045/10.93, allocations: 110.2 kB / 3.844 GB, free: 37.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/10.93, allocations: 4.188 kB / 3.844 GB, free: 37.89 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007216/10.93, allocations: 2.83 MB / 3.846 GB, free: 37.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.989e-05/10.93, allocations: 11.47 kB / 3.846 GB, free: 37.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/10.94, allocations: 237.6 kB / 3.847 GB, free: 37.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00329/10.94, allocations: 0.5253 MB / 3.847 GB, free: 37.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001587/10.94, allocations: 2.429 MB / 3.85 GB, free: 35.65 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003113/10.94, allocations: 307.7 kB / 3.85 GB, free: 35.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004628/10.94, allocations: 103 kB / 3.85 GB, free: 35.64 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008428/10.94, allocations: 311.3 kB / 3.85 GB, free: 35.46 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006128/10.95, allocations: 206.7 kB / 3.85 GB, free: 35.36 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0132/10.96, allocations: 7.469 MB / 3.858 GB, free: 34.68 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-05/10.96, allocations: 82.7 kB / 3.858 GB, free: 34.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/10.96, allocations: 0 / 3.858 GB, free: 34.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0106/10.97, allocations: 6.49 MB / 3.864 GB, free: 33.74 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.023/10.99, allocations: 12.07 MB / 3.876 GB, free: 32.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-05/10.99, allocations: 10.61 kB / 3.876 GB, free: 32.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002534/11, allocations: 430.4 kB / 3.876 GB, free: 32.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001759/11, allocations: 340.9 kB / 3.877 GB, free: 32.12 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004279/11, allocations: 72.48 kB / 3.877 GB, free: 32.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001531/11, allocations: 2.531 MB / 3.879 GB, free: 30.04 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.5e-06/11, allocations: 6.469 kB / 3.879 GB, free: 30.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01241/11.01, allocations: 7.427 MB / 3.886 GB, free: 28.64 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002078/11.01, allocations: 0.7455 MB / 3.887 GB, free: 28.31 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007368/11.01, allocations: 59.97 kB / 3.887 GB, free: 28.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002573/11.02, allocations: 219.8 kB / 3.887 GB, free: 28.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004291/11.02, allocations: 176.5 kB / 3.888 GB, free: 28.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002482/11.02, allocations: 79.23 kB / 3.888 GB, free: 28.29 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0022/11.02, allocations: 1.123 MB / 3.889 GB, free: 28.13 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.084e-06/11.02, allocations: 0 / 3.889 GB, free: 28.13 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01106/11.03, allocations: 2.719 MB / 3.891 GB, free: 28.02 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01239/11.04, allocations: 2.845 MB / 3.894 GB, free: 27.74 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01075/11.05, allocations: 4.949 MB / 3.899 GB, free: 27.41 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.537e-06/11.05, allocations: 0 / 3.899 GB, free: 27.41 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005157/11.06, allocations: 2.611 MB / 3.902 GB, free: 27.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00659/11.07, allocations: 0.9773 MB / 3.903 GB, free: 27.24 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6425/11.71, allocations: 125.7 MB / 4.025 GB, free: 59.39 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002467/11.71, allocations: 2.244 MB / 4.028 GB, free: 58.64 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001349/11.71, allocations: 215.6 kB / 4.028 GB, free: 58.64 MB / 0.4948 GB Notification: Performance of SimCode: time 2.047e-06/11.71, allocations: 0.9844 kB / 4.028 GB, free: 58.64 MB / 0.4948 GB Notification: Performance of Templates: time 0.1617/11.87, allocations: 116.9 MB / 4.142 GB, free: 28.52 MB / 0.4948 GB