Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.174/2.174, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.322e-05/1.329e-05, allocations: 0 / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.281, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.427/6.708, allocations: 2.673 GB / 3.022 GB, free: 129.9 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/6.708, allocations: 74.62 kB / 3.022 GB, free: 129.9 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687/10.39, allocations: 0.8605 GB / 3.883 GB, free: 7.051 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.269e-06/10.39, allocations: 4 kB / 3.883 GB, free: 7.047 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002657/10.39, allocations: 59.77 kB / 3.883 GB, free: 6.992 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01531/10.41, allocations: 3.75 MB / 3.887 GB, free: 3.195 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/10.41, allocations: 8.031 kB / 3.887 GB, free: 3.188 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007761/10.42, allocations: 0.7854 MB / 3.887 GB, free: 2.398 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007176/10.43, allocations: 1.977 MB / 3.889 GB, free: 408 kB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002173/10.43, allocations: 79.98 kB / 3.889 GB, free: 328 kB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006394/10.43, allocations: 111.9 kB / 3.889 GB, free: 216 kB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3475/10.77, allocations: 2.287 MB / 3.892 GB, free: 37.22 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006727/10.78, allocations: 2.532 MB / 3.894 GB, free: 36.74 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.916e-05/10.78, allocations: 7.125 kB / 3.894 GB, free: 36.74 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003078/10.78, allocations: 7.531 kB / 3.894 GB, free: 36.74 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002254/10.78, allocations: 150.8 kB / 3.894 GB, free: 36.74 MB / 0.5105 GB 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.2785/11.06, allocations: 108.1 MB / 4 GB, free: 29.2 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002916/11.06, allocations: 1.431 MB / 4.001 GB, free: 29.16 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001883/11.06, allocations: 0.9532 MB / 4.002 GB, free: 29.14 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03852/11.1, allocations: 17.46 MB / 4.019 GB, free: 17.61 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002287/11.11, allocations: 1.142 MB / 4.02 GB, free: 17.45 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001317/11.11, allocations: 144.7 kB / 4.021 GB, free: 17.42 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=145): time 6.792e-06/11.11, allocations: 4 kB / 4.021 GB, free: 17.41 MB / 0.5573 GB Notification: Performance of matching and sorting (n=157): time 0.04278/11.15, allocations: 8.754 MB / 4.029 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002332/11.15, allocations: 358 kB / 4.029 GB, free: 15.4 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/11.15, allocations: 1.026 MB / 4.03 GB, free: 15.23 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004117/11.15, allocations: 37.3 kB / 4.03 GB, free: 15.2 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008342/11.15, allocations: 0.9005 MB / 4.031 GB, free: 14.82 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006651/11.15, allocations: 0.5052 MB / 4.032 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/11.15, allocations: 0 / 4.032 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002376/11.15, allocations: 385.1 kB / 4.032 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/11.16, allocations: 0.8945 MB / 4.033 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00243/11.16, allocations: 1.323 MB / 4.034 GB, free: 13.8 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01061/11.17, allocations: 1.823 MB / 4.036 GB, free: 13.75 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.148e-05/11.17, allocations: 0 / 4.036 GB, free: 13.75 MB / 0.5573 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01589/11.19, allocations: 3.372 MB / 4.039 GB, free: 13.57 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002368/11.19, allocations: 4.239 MB / 4.044 GB, free: 25.12 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.351e-05/11.19, allocations: 15.16 kB / 4.044 GB, free: 25.12 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002598/11.19, allocations: 0.4902 MB / 4.044 GB, free: 25.08 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002682/11.19, allocations: 458.2 kB / 4.044 GB, free: 25.08 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003212/11.2, allocations: 2.807 MB / 4.047 GB, free: 22.99 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003318/11.2, allocations: 266.6 kB / 4.047 GB, free: 22.96 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006033/11.2, allocations: 103.5 kB / 4.048 GB, free: 22.96 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/11.2, allocations: 6.547 kB / 4.048 GB, free: 22.96 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01346/11.21, allocations: 2.934 MB / 4.05 GB, free: 22.86 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.132e-05/11.21, allocations: 10.91 kB / 4.05 GB, free: 22.86 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005576/11.21, allocations: 193.5 kB / 4.051 GB, free: 22.84 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002729/11.22, allocations: 467.5 kB / 4.051 GB, free: 22.83 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/11.22, allocations: 1.896 MB / 4.053 GB, free: 21.27 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002587/11.22, allocations: 238.5 kB / 4.053 GB, free: 21.25 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003312/11.22, allocations: 95.59 kB / 4.053 GB, free: 21.25 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0007411/11.22, allocations: 234 kB / 4.053 GB, free: 21.07 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000524/11.22, allocations: 179.8 kB / 4.054 GB, free: 20.98 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01817/11.24, allocations: 6.665 MB / 4.06 GB, free: 20.46 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.322e-05/11.24, allocations: 68.36 kB / 4.06 GB, free: 20.46 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/11.24, allocations: 12.5 kB / 4.06 GB, free: 20.46 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01539/11.26, allocations: 5.814 MB / 4.066 GB, free: 19.69 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02547/11.28, allocations: 9.905 MB / 4.076 GB, free: 16.46 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-05/11.28, allocations: 4 kB / 4.076 GB, free: 16.45 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001698/11.28, allocations: 313.1 kB / 4.076 GB, free: 16.22 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002609/11.29, allocations: 1.231 MB / 4.077 GB, free: 15.36 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003942/11.29, allocations: 43.22 kB / 4.077 GB, free: 15.34 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003702/11.29, allocations: 3.4 MB / 4.08 GB, free: 12.58 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.179e-05/11.29, allocations: 11.95 kB / 4.08 GB, free: 12.57 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01823/11.31, allocations: 7.071 MB / 4.087 GB, free: 8.227 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001944/11.31, allocations: 0.6424 MB / 4.088 GB, free: 7.762 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000633/11.31, allocations: 27.31 kB / 4.088 GB, free: 7.746 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002212/11.31, allocations: 154.8 kB / 4.088 GB, free: 7.633 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003906/11.31, allocations: 139 kB / 4.088 GB, free: 7.559 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002304/11.31, allocations: 74.44 kB / 4.088 GB, free: 7.508 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001913/11.32, allocations: 0.9492 MB / 4.089 GB, free: 6.941 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.991e-06/11.32, allocations: 0 / 4.089 GB, free: 6.941 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01106/11.33, allocations: 2.472 MB / 4.092 GB, free: 4.859 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (161): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01276/11.34, allocations: 2.955 MB / 4.095 GB, free: 2.863 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009361/11.35, allocations: 4.267 MB / 4.099 GB, free: 404 kB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.679e-06/11.35, allocations: 0 / 4.099 GB, free: 404 kB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.3488/11.7, allocations: 2.336 MB / 4.101 GB, free: 98.38 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00579/11.7, allocations: 0.7777 MB / 4.102 GB, free: 98.37 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/11.72, allocations: 5.139 MB / 4.107 GB, free: 97.29 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001934/11.72, allocations: 2.054 MB / 4.109 GB, free: 96.55 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/11.72, allocations: 179.9 kB / 4.109 GB, free: 96.54 MB / 0.573 GB Notification: Performance of SimCode: time 2.853e-06/11.72, allocations: 0 / 4.109 GB, free: 96.54 MB / 0.573 GB Notification: Performance of Templates: time 0.1426/11.86, allocations: 106.3 MB / 4.213 GB, free: 88.98 MB / 0.573 GB