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.BranchingPipes12.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|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.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.164/2.164, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.876e-05/2.898e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3175, allocations: 54.86 MB / 364.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.141/6.459, allocations: 2.656 GB / 3.012 GB, free: 115.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/6.459, allocations: 76.89 kB / 3.012 GB, free: 115.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.39/9.849, allocations: 0.8017 GB / 3.814 GB, free: 27.82 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.884e-06/9.849, allocations: 3.188 kB / 3.814 GB, free: 27.82 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002258/9.849, allocations: 72.81 kB / 3.814 GB, free: 27.8 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01332/9.862, allocations: 3.948 MB / 3.817 GB, free: 25.84 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/9.862, allocations: 10.56 kB / 3.817 GB, free: 25.84 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007382/9.87, allocations: 0.8392 MB / 3.818 GB, free: 25.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006199/9.876, allocations: 2.168 MB / 3.82 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/9.876, allocations: 175.4 kB / 3.821 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005195/9.877, allocations: 198 kB / 3.821 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009282/9.886, allocations: 3.697 MB / 3.824 GB, free: 24.6 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.333e-05/9.886, allocations: 7.719 kB / 3.824 GB, free: 24.6 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003638/9.886, allocations: 88.17 kB / 3.824 GB, free: 24.6 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000242/9.887, allocations: 156 kB / 3.825 GB, free: 24.59 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008922/9.896, allocations: 3.424 MB / 3.828 GB, free: 24.55 MB / 0.4948 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.02061/9.916, allocations: 14.77 MB / 3.842 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005432/9.922, allocations: 2.115 MB / 3.844 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001874/9.924, allocations: 1.068 MB / 3.845 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04073/9.964, allocations: 18.96 MB / 3.864 GB, free: 18.66 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004974/9.969, allocations: 1.68 MB / 3.866 GB, free: 18.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001468/9.971, allocations: 194.4 kB / 3.866 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 5.502e-06/9.971, allocations: 0 / 3.866 GB, free: 17.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.02262/9.993, allocations: 7.337 MB / 3.873 GB, free: 15.23 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002621/9.994, allocations: 410.9 kB / 3.873 GB, free: 14.76 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002843/9.997, allocations: 1.485 MB / 3.875 GB, free: 13.69 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004545/9.997, allocations: 61.7 kB / 3.875 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007865/9.998, allocations: 0.9255 MB / 3.876 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007236/9.999, allocations: 0.5836 MB / 3.876 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/9.999, allocations: 44 kB / 3.876 GB, free: 12.18 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002452/9.999, allocations: 388 kB / 3.877 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002156/10, allocations: 1.062 MB / 3.878 GB, free: 10.87 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002516/10, allocations: 1.538 MB / 3.879 GB, free: 9.289 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002479/10.01, allocations: 1.322 MB / 3.881 GB, free: 8.148 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/10.01, allocations: 4 kB / 3.881 GB, free: 8.145 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.007742/10.01, allocations: 3.177 MB / 3.884 GB, free: 5.336 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002458/10.02, allocations: 4.424 MB / 3.888 GB, free: 0.5742 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.256e-05/10.02, allocations: 18.3 kB / 3.888 GB, free: 0.5586 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006638/10.02, allocations: 0.9736 MB / 3.889 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002852/10.03, allocations: 472.3 kB / 3.889 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00411/10.03, allocations: 3.174 MB / 3.893 GB, free: 12.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003067/10.03, allocations: 240.1 kB / 3.893 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004057/10.03, allocations: 106.9 kB / 3.893 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/10.03, allocations: 4 kB / 3.893 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007557/10.04, allocations: 2.974 MB / 3.896 GB, free: 9.555 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-05/10.04, allocations: 15.28 kB / 3.896 GB, free: 9.543 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/10.04, allocations: 339 kB / 3.896 GB, free: 9.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002859/10.05, allocations: 0.4919 MB / 3.897 GB, free: 8.852 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005397/10.05, allocations: 4.037 MB / 3.901 GB, free: 4.859 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002498/10.05, allocations: 235.9 kB / 3.901 GB, free: 4.676 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004286/10.05, allocations: 98.38 kB / 3.901 GB, free: 4.586 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (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_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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.0008269/10.06, allocations: 309.2 kB / 3.901 GB, free: 4.277 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006463/10.06, allocations: 213.4 kB / 3.901 GB, free: 4.066 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3551/10.41, allocations: 8.152 MB / 3.909 GB, free: 56.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.252e-05/10.41, allocations: 80.53 kB / 3.909 GB, free: 56.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.36e-06/10.41, allocations: 0 / 3.909 GB, free: 56.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01051/10.42, allocations: 6.779 MB / 3.916 GB, free: 55.68 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01852/10.44, allocations: 10.77 MB / 3.927 GB, free: 55.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/10.44, allocations: 0 / 3.927 GB, free: 55.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001991/10.44, allocations: 346.1 kB / 3.927 GB, free: 55.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006708/10.45, allocations: 2.506 MB / 3.929 GB, free: 54.95 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002805/10.45, allocations: 62.77 kB / 3.929 GB, free: 54.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003782/10.45, allocations: 4.091 MB / 3.933 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.523e-06/10.45, allocations: 5.594 kB / 3.933 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01244/10.47, allocations: 7.681 MB / 3.941 GB, free: 52.36 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001978/10.47, allocations: 0.7494 MB / 3.942 GB, free: 52.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005533/10.47, allocations: 53.98 kB / 3.942 GB, free: 52.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00216/10.47, allocations: 196.1 kB / 3.942 GB, free: 52.21 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000478/10.47, allocations: 138.4 kB / 3.942 GB, free: 52.21 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002446/10.47, allocations: 75.56 kB / 3.942 GB, free: 52.21 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002397/10.47, allocations: 1.233 MB / 3.943 GB, free: 52.05 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.603e-06/10.47, allocations: 2.469 kB / 3.943 GB, free: 52.05 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01057/10.48, allocations: 2.826 MB / 3.946 GB, free: 52.05 MB / 0.5261 GB 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($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,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 (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.01173/10.5, allocations: 2.856 MB / 3.949 GB, free: 51.85 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009885/10.51, allocations: 5.302 MB / 3.954 GB, free: 51.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.644e-06/10.51, allocations: 6.781 kB / 3.954 GB, free: 51.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004367/10.51, allocations: 2.354 MB / 3.956 GB, free: 51.14 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005414/10.52, allocations: 0.8851 MB / 3.957 GB, free: 51.11 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3179/10.83, allocations: 127.7 MB / 4.082 GB, free: 17.14 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002009/10.84, allocations: 2.246 MB / 4.084 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/10.84, allocations: 197.6 kB / 4.084 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of SimCode: time 2.515e-06/10.84, allocations: 5.5 kB / 4.084 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.4976/11.33, allocations: 116.8 MB / 4.198 GB, free: 46.03 MB / 0.5261 GB