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.BranchingPipes1.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.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|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.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.816/1.816, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.71e-05/2.728e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08455/0.0846, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.951/6.035, allocations: 2.545 GB / 2.864 GB, free: 81.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/6.036, allocations: 78.2 kB / 2.864 GB, free: 81.59 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.618/9.654, allocations: 0.7755 GB / 3.64 GB, free: 32.84 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.938e-06/9.654, allocations: 0 / 3.64 GB, free: 32.84 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002877/9.654, allocations: 65.75 kB / 3.64 GB, free: 32.83 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: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01515/9.669, allocations: 3.831 MB / 3.644 GB, free: 31.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/9.669, allocations: 17.3 kB / 3.644 GB, free: 31.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007766/9.677, allocations: 0.811 MB / 3.644 GB, free: 31.02 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006833/9.684, allocations: 2.075 MB / 3.646 GB, free: 30.56 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003018/9.684, allocations: 176.4 kB / 3.647 GB, free: 30.56 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00088/9.685, allocations: 197.5 kB / 3.647 GB, free: 30.56 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01046/9.696, allocations: 3.687 MB / 3.65 GB, free: 30.01 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.938e-05/9.696, allocations: 8.734 kB / 3.65 GB, free: 30 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004086/9.696, allocations: 88.28 kB / 3.65 GB, free: 30 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002507/9.696, allocations: 168.4 kB / 3.651 GB, free: 30 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009844/9.706, allocations: 3.406 MB / 3.654 GB, free: 29.98 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.02291/9.729, allocations: 14.74 MB / 3.668 GB, free: 21.39 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005893/9.735, allocations: 2.117 MB / 3.67 GB, free: 21.36 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001997/9.737, allocations: 1.046 MB / 3.671 GB, free: 21.35 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04266/9.78, allocations: 18.92 MB / 3.69 GB, free: 25.51 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004931/9.785, allocations: 1.67 MB / 3.691 GB, free: 25.38 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00144/9.786, allocations: 194 kB / 3.692 GB, free: 25.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=158): time 5.996e-06/9.786, allocations: 0 / 3.692 GB, free: 25.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=170): time 0.02246/9.809, allocations: 7.345 MB / 3.699 GB, free: 24.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002726/9.809, allocations: 417.2 kB / 3.699 GB, free: 23.85 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002723/9.812, allocations: 1.486 MB / 3.701 GB, free: 23.66 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004032/9.812, allocations: 61.11 kB / 3.701 GB, free: 23.63 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007696/9.813, allocations: 0.9217 MB / 3.702 GB, free: 23.18 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005812/9.814, allocations: 0.5762 MB / 3.702 GB, free: 22.81 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/9.814, allocations: 37.12 kB / 3.702 GB, free: 22.81 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002512/9.814, allocations: 402.2 kB / 3.703 GB, free: 22.49 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00203/9.816, allocations: 1.051 MB / 3.704 GB, free: 22.48 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002453/9.819, allocations: 1.522 MB / 3.705 GB, free: 21.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002492/9.821, allocations: 1.309 MB / 3.706 GB, free: 21.89 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/9.821, allocations: 3.719 kB / 3.706 GB, free: 21.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.00708/9.828, allocations: 3.206 MB / 3.71 GB, free: 21.67 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002192/9.831, allocations: 4.43 MB / 3.714 GB, free: 17.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.197e-05/9.831, allocations: 13.48 kB / 3.714 GB, free: 17.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006818/9.837, allocations: 0.955 MB / 3.715 GB, free: 17.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002625/9.84, allocations: 473.5 kB / 3.715 GB, free: 17.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004187/9.844, allocations: 3.164 MB / 3.718 GB, free: 14.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006374/9.851, allocations: 229.8 kB / 3.719 GB, free: 14.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007658/9.852, allocations: 104.1 kB / 3.719 GB, free: 14.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/9.852, allocations: 3.969 kB / 3.719 GB, free: 14.93 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01472/9.866, allocations: 2.995 MB / 3.722 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.014e-05/9.867, allocations: 21.89 kB / 3.722 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002767/9.869, allocations: 340 kB / 3.722 GB, free: 14.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004973/9.874, allocations: 0.4898 MB / 3.722 GB, free: 14.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008943/9.883, allocations: 4.042 MB / 3.726 GB, free: 11.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004238/9.888, allocations: 239.9 kB / 3.727 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005591/9.888, allocations: 101.9 kB / 3.727 GB, free: 11.92 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.phase,pipe1.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,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.001269/9.889, allocations: 295.2 kB / 3.727 GB, free: 11.74 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/9.89, allocations: 213.7 kB / 3.727 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02281/9.913, allocations: 7.761 MB / 3.735 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001429/9.914, allocations: 77.55 kB / 3.735 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/9.914, allocations: 2.281 kB / 3.735 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01857/9.932, allocations: 6.795 MB / 3.741 GB, free: 9.93 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02333/9.956, allocations: 10.77 MB / 3.752 GB, free: 9.145 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.498e-05/9.956, allocations: 3.812 kB / 3.752 GB, free: 9.145 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002133/9.958, allocations: 348.9 kB / 3.752 GB, free: 9.145 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006616/9.964, allocations: 2.486 MB / 3.755 GB, free: 9.055 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004317/9.965, allocations: 63.69 kB / 3.755 GB, free: 9.055 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00448/9.969, allocations: 4.119 MB / 3.759 GB, free: 6.941 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.308e-06/9.969, allocations: 0 / 3.759 GB, free: 6.941 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01221/9.982, allocations: 7.657 MB / 3.766 GB, free: 4.957 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001838/9.984, allocations: 0.749 MB / 3.767 GB, free: 4.496 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006328/9.984, allocations: 54.08 kB / 3.767 GB, free: 4.465 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002202/9.986, allocations: 191.4 kB / 3.767 GB, free: 4.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000337/9.987, allocations: 135.7 kB / 3.767 GB, free: 4.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002134/9.987, allocations: 76.72 kB / 3.768 GB, free: 4.395 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002228/9.989, allocations: 1.23 MB / 3.769 GB, free: 3.902 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.81e-07/9.989, allocations: 0 / 3.769 GB, free: 3.902 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01106/10, allocations: 2.806 MB / 3.771 GB, free: 3.309 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$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) * 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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01223/10.01, allocations: 2.826 MB / 3.774 GB, free: 2.668 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01007/10.02, allocations: 5.169 MB / 3.779 GB, free: 0.5586 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.204e-06/10.02, allocations: 3.969 kB / 3.779 GB, free: 0.5586 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005747/10.03, allocations: 2.375 MB / 3.782 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005149/10.03, allocations: 0.8858 MB / 3.782 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5957/10.63, allocations: 126.2 MB / 3.906 GB, free: 50.91 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002151/10.63, allocations: 2.242 MB / 3.908 GB, free: 50.13 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/10.63, allocations: 196.3 kB / 3.908 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of SimCode: time 2.452e-06/10.63, allocations: 0 / 3.908 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of Templates: time 0.4934/11.13, allocations: 116.1 MB / 4.021 GB, free: 55.43 MB / 0.4948 GB