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.BranchingPipes4.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.BranchingPipes4,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|splitter.medium.h|splitter.medium.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.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 1.89/1.89, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.415e-05/2.438e-05, allocations: 0 / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.08724, allocations: 48.7 MB / 326.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.134/6.221, allocations: 2.549 GB / 2.868 GB, free: 76.99 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/6.221, allocations: 75.97 kB / 2.868 GB, free: 76.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.876/10.1, allocations: 0.8762 GB / 3.745 GB, free: 29.93 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.261e-06/10.1, allocations: 3.938 kB / 3.745 GB, free: 29.93 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002099/10.1, allocations: 63.67 kB / 3.745 GB, free: 29.92 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01349/10.11, allocations: 3.887 MB / 3.748 GB, free: 27.96 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/10.11, allocations: 11.66 kB / 3.748 GB, free: 27.96 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008069/10.12, allocations: 0.8465 MB / 3.749 GB, free: 27.83 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006523/10.13, allocations: 2.058 MB / 3.751 GB, free: 27.32 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000207/10.13, allocations: 179.7 kB / 3.751 GB, free: 27.32 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004648/10.13, allocations: 198.7 kB / 3.752 GB, free: 27.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009367/10.14, allocations: 3.648 MB / 3.755 GB, free: 26.77 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.811e-05/10.14, allocations: 9.125 kB / 3.755 GB, free: 26.77 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003572/10.14, allocations: 93.72 kB / 3.755 GB, free: 26.77 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002558/10.14, allocations: 168.6 kB / 3.755 GB, free: 26.76 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009237/10.15, allocations: 3.277 MB / 3.759 GB, free: 26.17 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.02206/10.17, allocations: 15.4 MB / 3.774 GB, free: 14.52 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006021/10.17, allocations: 2.159 MB / 3.776 GB, free: 13.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001851/10.18, allocations: 1.02 MB / 3.777 GB, free: 13.41 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03983/10.22, allocations: 18.93 MB / 3.795 GB, free: 15.44 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005449/10.22, allocations: 1.679 MB / 3.797 GB, free: 14.13 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 6.459e-06/10.22, allocations: 0 / 3.797 GB, free: 14.13 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.02741/10.25, allocations: 7.525 MB / 3.804 GB, free: 7.723 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001839/10.25, allocations: 260.8 kB / 3.805 GB, free: 7.418 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002993/10.25, allocations: 1.432 MB / 3.806 GB, free: 6.133 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004004/10.25, allocations: 61.64 kB / 3.806 GB, free: 6.066 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/10.25, allocations: 0.9252 MB / 3.807 GB, free: 5.195 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000887/10.25, allocations: 0.5946 MB / 3.807 GB, free: 4.66 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/10.25, allocations: 39.94 kB / 3.808 GB, free: 4.621 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002694/10.25, allocations: 397.3 kB / 3.808 GB, free: 4.246 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002392/10.26, allocations: 1.009 MB / 3.809 GB, free: 3.34 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002956/10.26, allocations: 1.458 MB / 3.81 GB, free: 1.828 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002844/10.26, allocations: 1.254 MB / 3.812 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/10.26, allocations: 8 kB / 3.812 GB, free: 0.7344 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.326/10.59, allocations: 3.033 MB / 3.814 GB, free: 45.49 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009737/10.59, allocations: 4.86 MB / 3.819 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/10.59, allocations: 12.09 kB / 3.819 GB, free: 40.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/10.59, allocations: 236.1 kB / 3.819 GB, free: 40.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002954/10.59, allocations: 0.5177 MB / 3.82 GB, free: 40.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/10.6, allocations: 2.43 MB / 3.822 GB, free: 38.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003093/10.6, allocations: 270 kB / 3.823 GB, free: 38.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003139/10.6, allocations: 106.5 kB / 3.823 GB, free: 38.35 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/10.6, allocations: 3.688 kB / 3.823 GB, free: 38.35 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006268/10.61, allocations: 2.798 MB / 3.825 GB, free: 38.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/10.61, allocations: 12.62 kB / 3.825 GB, free: 38.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/10.61, allocations: 234.3 kB / 3.826 GB, free: 38.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002803/10.61, allocations: 0.5149 MB / 3.826 GB, free: 38.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001526/10.61, allocations: 2.429 MB / 3.829 GB, free: 36.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002326/10.61, allocations: 274.7 kB / 3.829 GB, free: 36.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003031/10.61, allocations: 102.2 kB / 3.829 GB, free: 36.11 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006866/10.61, allocations: 297.3 kB / 3.829 GB, free: 35.94 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005573/10.61, allocations: 208.8 kB / 3.829 GB, free: 35.94 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/10.63, allocations: 7.532 MB / 3.837 GB, free: 35.37 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001041/10.63, allocations: 86.09 kB / 3.837 GB, free: 35.37 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/10.63, allocations: 1.281 kB / 3.837 GB, free: 35.37 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009942/10.64, allocations: 6.562 MB / 3.843 GB, free: 34.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/10.66, allocations: 10.73 MB / 3.854 GB, free: 33.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/10.66, allocations: 1.219 kB / 3.854 GB, free: 33.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002294/10.66, allocations: 410.1 kB / 3.854 GB, free: 33.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/10.66, allocations: 339.2 kB / 3.854 GB, free: 33.78 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002221/10.66, allocations: 65.25 kB / 3.855 GB, free: 33.78 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/10.66, allocations: 2.513 MB / 3.857 GB, free: 31.71 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.527e-06/10.66, allocations: 0 / 3.857 GB, free: 31.71 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01111/10.67, allocations: 6.795 MB / 3.864 GB, free: 31.05 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/10.67, allocations: 0.7467 MB / 3.864 GB, free: 30.78 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004896/10.67, allocations: 47.61 kB / 3.864 GB, free: 30.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001966/10.68, allocations: 219.5 kB / 3.865 GB, free: 30.77 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003447/10.68, allocations: 143.5 kB / 3.865 GB, free: 30.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002234/10.68, allocations: 74.83 kB / 3.865 GB, free: 30.77 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002085/10.68, allocations: 1.193 MB / 3.866 GB, free: 30.61 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.008e-06/10.68, allocations: 2.531 kB / 3.866 GB, free: 30.61 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00991/10.69, allocations: 2.821 MB / 3.869 GB, free: 30.61 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01111/10.7, allocations: 2.948 MB / 3.872 GB, free: 30.33 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009652/10.71, allocations: 4.878 MB / 3.876 GB, free: 29.99 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.091e-06/10.71, allocations: 0 / 3.876 GB, free: 29.99 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004322/10.71, allocations: 2.342 MB / 3.879 GB, free: 29.86 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006112/10.72, allocations: 0.954 MB / 3.88 GB, free: 29.84 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5905/11.31, allocations: 125.5 MB / 4.002 GB, free: 59.14 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002767/11.31, allocations: 2.229 MB / 4.004 GB, free: 58.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/11.31, allocations: 217.5 kB / 4.005 GB, free: 58.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.922e-06/11.32, allocations: 3.906 kB / 4.005 GB, free: 58.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.1528/11.47, allocations: 117.3 MB / 4.119 GB, free: 39.56 MB / 0.4948 GB