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.BranchingPipes13.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.BranchingPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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|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.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.833/1.833, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.639e-05/2.658e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0859/0.08595, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.979/6.065, allocations: 2.546 GB / 2.865 GB, free: 81.18 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/6.065, allocations: 77.27 kB / 2.865 GB, free: 81.14 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.718/9.783, allocations: 0.8409 GB / 3.706 GB, free: 30.46 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.009e-06/9.783, allocations: 3.125 kB / 3.706 GB, free: 30.46 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002258/9.783, allocations: 62.25 kB / 3.706 GB, free: 30.45 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01305/9.796, allocations: 3.689 MB / 3.709 GB, free: 28.71 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/9.796, allocations: 14.17 kB / 3.709 GB, free: 28.71 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007209/9.804, allocations: 0.7561 MB / 3.71 GB, free: 28.58 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006121/9.81, allocations: 1.94 MB / 3.712 GB, free: 28.14 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002277/9.81, allocations: 160.6 kB / 3.712 GB, free: 28.14 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005868/9.811, allocations: 174.7 kB / 3.712 GB, free: 28.14 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009165/9.82, allocations: 3.266 MB / 3.715 GB, free: 27.67 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.63e-05/9.82, allocations: 5.062 kB / 3.715 GB, free: 27.67 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003435/9.82, allocations: 84.67 kB / 3.716 GB, free: 27.67 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002332/9.82, allocations: 149.7 kB / 3.716 GB, free: 27.66 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008841/9.829, allocations: 2.892 MB / 3.718 GB, free: 27.65 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.02194/9.851, allocations: 14.04 MB / 3.732 GB, free: 19.13 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005447/9.857, allocations: 1.957 MB / 3.734 GB, free: 19.09 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/9.859, allocations: 0.9417 MB / 3.735 GB, free: 19.08 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04169/9.9, allocations: 18.91 MB / 3.753 GB, free: 23.24 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004828/9.905, allocations: 1.55 MB / 3.755 GB, free: 23.12 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001391/9.907, allocations: 163.8 kB / 3.755 GB, free: 23.04 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 5.757e-06/9.907, allocations: 0 / 3.755 GB, free: 23.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=154): time 0.02297/9.93, allocations: 6.761 MB / 3.762 GB, free: 22.11 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001871/9.93, allocations: 256.8 kB / 3.762 GB, free: 21.83 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002552/9.933, allocations: 1.334 MB / 3.763 GB, free: 21.64 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003909/9.933, allocations: 58.11 kB / 3.763 GB, free: 21.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000755/9.934, allocations: 0.8485 MB / 3.764 GB, free: 21.18 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006326/9.934, allocations: 0.5117 MB / 3.765 GB, free: 20.86 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001871/9.935, allocations: 30.25 kB / 3.765 GB, free: 20.86 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002378/9.935, allocations: 382.4 kB / 3.765 GB, free: 20.54 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001907/9.937, allocations: 0.9147 MB / 3.766 GB, free: 20.54 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002204/9.939, allocations: 1.309 MB / 3.767 GB, free: 20.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002404/9.941, allocations: 1.146 MB / 3.768 GB, free: 19.99 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.311e-05/9.941, allocations: 3.75 kB / 3.768 GB, free: 19.99 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.007245/9.949, allocations: 2.837 MB / 3.771 GB, free: 19.69 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002058/9.951, allocations: 4.25 MB / 3.775 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.274e-05/9.951, allocations: 11.69 kB / 3.775 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003798/9.955, allocations: 0.6024 MB / 3.776 GB, free: 15.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002465/9.957, allocations: 431.9 kB / 3.776 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003103/9.96, allocations: 2.823 MB / 3.779 GB, free: 12.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002934/9.963, allocations: 234.9 kB / 3.779 GB, free: 12.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004349/9.964, allocations: 94.38 kB / 3.779 GB, free: 12.55 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/9.964, allocations: 3.688 kB / 3.779 GB, free: 12.55 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005597/9.969, allocations: 2.551 MB / 3.782 GB, free: 11.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.76e-05/9.969, allocations: 14.78 kB / 3.782 GB, free: 11.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008494/9.97, allocations: 195.8 kB / 3.782 GB, free: 11.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002746/9.973, allocations: 458.1 kB / 3.783 GB, free: 11.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/9.975, allocations: 1.879 MB / 3.784 GB, free: 9.781 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002375/9.977, allocations: 226.4 kB / 3.785 GB, free: 9.734 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003/9.978, allocations: 90.58 kB / 3.785 GB, free: 9.715 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006865/9.978, allocations: 293.9 kB / 3.785 GB, free: 9.453 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005168/9.979, allocations: 192.6 kB / 3.785 GB, free: 9.352 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01152/9.99, allocations: 7.354 MB / 3.792 GB, free: 6.105 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.469e-05/9.99, allocations: 79.47 kB / 3.792 GB, free: 6.086 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.206e-06/9.99, allocations: 0 / 3.792 GB, free: 6.086 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0105/10, allocations: 6.439 MB / 3.799 GB, free: 2.316 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02234/10.02, allocations: 10.39 MB / 3.809 GB, free: 9.875 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/10.02, allocations: 1.031 kB / 3.809 GB, free: 9.875 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001924/10.03, allocations: 327.8 kB / 3.809 GB, free: 9.609 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004526/10.03, allocations: 1.575 MB / 3.811 GB, free: 8.324 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003907/10.03, allocations: 56.16 kB / 3.811 GB, free: 8.277 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00408/10.03, allocations: 3.462 MB / 3.814 GB, free: 4.922 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.139e-06/10.03, allocations: 4.031 kB / 3.814 GB, free: 4.918 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3367/10.37, allocations: 7.432 MB / 3.821 GB, free: 60.68 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001999/10.37, allocations: 0.7037 MB / 3.822 GB, free: 60.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005498/10.37, allocations: 48.17 kB / 3.822 GB, free: 60.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002016/10.38, allocations: 185.4 kB / 3.822 GB, free: 60.59 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003414/10.38, allocations: 127.9 kB / 3.822 GB, free: 60.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002125/10.38, allocations: 70.84 kB / 3.822 GB, free: 60.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002198/10.38, allocations: 1.126 MB / 3.824 GB, free: 60.43 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.75e-07/10.38, allocations: 0 / 3.824 GB, free: 60.43 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009385/10.39, allocations: 2.671 MB / 3.826 GB, free: 60.43 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01147/10.4, allocations: 2.87 MB / 3.829 GB, free: 60.28 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009395/10.41, allocations: 4.463 MB / 3.833 GB, free: 59.97 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.168e-06/10.41, allocations: 0.7188 kB / 3.833 GB, free: 59.97 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004216/10.41, allocations: 2.173 MB / 3.835 GB, free: 59.83 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00573/10.42, allocations: 0.8831 MB / 3.836 GB, free: 59.81 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3051/10.72, allocations: 125.1 MB / 3.958 GB, free: 42.23 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001781/10.73, allocations: 2.131 MB / 3.961 GB, free: 40.63 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009057/10.73, allocations: 187.7 kB / 3.961 GB, free: 40.47 MB / 0.4948 GB Notification: Performance of SimCode: time 2.184e-06/10.73, allocations: 0 / 3.961 GB, free: 40.47 MB / 0.4948 GB Notification: Performance of Templates: time 0.4974/11.22, allocations: 110.2 MB / 4.068 GB, free: 54.65 MB / 0.4948 GB