Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 1.912/1.912, allocations: 209.3 MB / 225.4 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004262/0.0004262, allocations: 12 kB / 283.1 MB, free: 9.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1016, allocations: 48.7 MB / 331.8 MB, free: 9.047 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.869/7.971, allocations: 2.567 GB / 2.891 GB, free: 26.68 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/7.971, allocations: 86.83 kB / 2.891 GB, free: 26.64 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.579/13.55, allocations: 0.9848 GB / 3.876 GB, free: 23.02 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.375e-06/13.55, allocations: 0 / 3.876 GB, free: 23.02 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003567/13.55, allocations: 72.75 kB / 3.876 GB, free: 23 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: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.02183/13.57, allocations: 4.398 MB / 3.88 GB, free: 21 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/13.57, allocations: 10.62 kB / 3.88 GB, free: 21 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009849/13.58, allocations: 0.9084 MB / 3.881 GB, free: 20.85 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009685/13.59, allocations: 2.206 MB / 3.883 GB, free: 20.39 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004805/13.59, allocations: 197.1 kB / 3.884 GB, free: 20.38 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001488/13.59, allocations: 226.3 kB / 3.884 GB, free: 20.38 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/13.61, allocations: 3.914 MB / 3.888 GB, free: 19.77 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001029/13.61, allocations: 8.812 kB / 3.888 GB, free: 19.77 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004867/13.61, allocations: 96.66 kB / 3.888 GB, free: 19.77 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003251/13.61, allocations: 180.2 kB / 3.888 GB, free: 19.75 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01489/13.63, allocations: 3.594 MB / 3.891 GB, free: 19.69 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.03412/13.66, allocations: 16.7 MB / 3.908 GB, free: 9.465 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01134/13.67, allocations: 3.15 MB / 3.911 GB, free: 8.84 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05861/13.73, allocations: 18.54 MB / 3.929 GB, free: 12.84 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007508/13.74, allocations: 1.854 MB / 3.931 GB, free: 12.69 MB / 490.7 MB Notification: Performance of pre-optimization done (n=188): time 6.382e-06/13.74, allocations: 4 kB / 3.931 GB, free: 12.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=208): time 0.04599/13.78, allocations: 10.28 MB / 3.941 GB, free: 11.27 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001957/13.78, allocations: 257.8 kB / 3.941 GB, free: 10.98 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/13.79, allocations: 1.639 MB / 3.943 GB, free: 10.74 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007526/13.79, allocations: 67.95 kB / 3.943 GB, free: 10.71 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001041/13.79, allocations: 0.9881 MB / 3.944 GB, free: 10.11 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001151/13.79, allocations: 0.6928 MB / 3.944 GB, free: 9.574 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002608/13.79, allocations: 47.06 kB / 3.944 GB, free: 9.539 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002512/13.79, allocations: 406.1 kB / 3.945 GB, free: 9.184 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004447/13.8, allocations: 1.263 MB / 3.946 GB, free: 8.766 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005001/13.8, allocations: 1.813 MB / 3.948 GB, free: 7.719 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005019/13.81, allocations: 1.523 MB / 3.949 GB, free: 7.074 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.09e-05/13.81, allocations: 3.938 kB / 3.949 GB, free: 7.074 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01257/13.82, allocations: 3.641 MB / 3.953 GB, free: 5.699 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004302/13.82, allocations: 0.5586 MB / 3.953 GB, free: 4.977 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/13.82, allocations: 14.25 kB / 3.953 GB, free: 4.977 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/13.82, allocations: 348.8 kB / 3.954 GB, free: 4.859 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00508/13.83, allocations: 0.5955 MB / 3.954 GB, free: 4.801 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003115/13.83, allocations: 3.097 MB / 3.957 GB, free: 1.809 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005294/13.83, allocations: 338.4 kB / 3.958 GB, free: 1.551 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006951/13.84, allocations: 123.5 kB / 3.958 GB, free: 1.441 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/13.84, allocations: 4 kB / 3.958 GB, free: 1.438 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01301/13.85, allocations: 3.494 MB / 3.961 GB, free: 14.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-05/13.85, allocations: 18.89 kB / 3.961 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001966/13.85, allocations: 345.7 kB / 3.961 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005085/13.86, allocations: 0.5907 MB / 3.962 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003284/13.86, allocations: 3.106 MB / 3.965 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00444/13.86, allocations: 326 kB / 3.965 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005205/13.86, allocations: 119.4 kB / 3.965 GB, free: 10.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (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,junctionVolume.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00268/13.87, allocations: 0.7917 MB / 3.966 GB, free: 9.402 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007995/13.87, allocations: 221.3 kB / 3.966 GB, free: 9.184 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02197/13.89, allocations: 8.244 MB / 3.974 GB, free: 1.863 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001374/13.89, allocations: 91.34 kB / 3.975 GB, free: 1.809 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/13.89, allocations: 4 kB / 3.975 GB, free: 1.805 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4319/14.32, allocations: 7.191 MB / 3.982 GB, free: 52.28 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03759/14.36, allocations: 13.15 MB / 3.994 GB, free: 50.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.983e-05/14.36, allocations: 5.406 kB / 3.994 GB, free: 50.85 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004046/14.36, allocations: 486.3 kB / 3.995 GB, free: 50.85 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003045/14.37, allocations: 485.9 kB / 3.995 GB, free: 50.81 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007066/14.37, allocations: 81.75 kB / 3.995 GB, free: 50.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002666/14.37, allocations: 3.224 MB / 3.999 GB, free: 48.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.229e-05/14.37, allocations: 13.11 kB / 3.999 GB, free: 48.22 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02022/14.39, allocations: 8.083 MB / 4.007 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002862/14.39, allocations: 0.7972 MB / 4.007 GB, free: 47.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001065/14.39, allocations: 60.41 kB / 4.007 GB, free: 47.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003862/14.4, allocations: 229 kB / 4.008 GB, free: 47.36 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007233/14.4, allocations: 193.2 kB / 4.008 GB, free: 47.35 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003164/14.4, allocations: 96.02 kB / 4.008 GB, free: 47.35 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002867/14.4, allocations: 1.197 MB / 4.009 GB, free: 47.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.51e-07/14.4, allocations: 0 / 4.009 GB, free: 47.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01514/14.42, allocations: 2.882 MB / 4.012 GB, free: 47.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 57 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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,junctionVolume.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01646/14.43, allocations: 3.017 MB / 4.015 GB, free: 47 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01787/14.45, allocations: 5.834 MB / 4.02 GB, free: 46.66 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/14.45, allocations: 1.938 kB / 4.02 GB, free: 46.66 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007715/14.46, allocations: 2.984 MB / 4.023 GB, free: 46.51 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01014/14.47, allocations: 1.137 MB / 4.024 GB, free: 46.48 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3651/14.84, allocations: 129.2 MB / 4.151 GB, free: 9.91 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002581/14.84, allocations: 2.33 MB / 4.153 GB, free: 8.102 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001744/14.84, allocations: 237.6 kB / 4.153 GB, free: 7.887 MB / 0.4948 GB Notification: Performance of SimCode: time 1.322e-06/14.84, allocations: 0 / 4.153 GB, free: 7.887 MB / 0.4948 GB Notification: Performance of Templates: time 0.7243/15.56, allocations: 137.4 MB / 4.287 GB, free: 23.87 MB / 0.4948 GB