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.BranchingPipes13.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.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.933/1.933, allocations: 209.2 MB / 225.4 MB, free: 0.6836 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004479/0.0004478, allocations: 15.98 kB / 283.1 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1038, allocations: 48.71 MB / 331.8 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.575/7.679, allocations: 2.546 GB / 2.87 GB, free: 47.71 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003983/7.679, allocations: 84.44 kB / 2.87 GB, free: 47.66 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.743/12.42, allocations: 0.8432 GB / 3.713 GB, free: 30.26 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.504e-06/12.42, allocations: 3.094 kB / 3.713 GB, free: 30.26 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003414/12.42, allocations: 57.55 kB / 3.713 GB, free: 30.25 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.01904/12.44, allocations: 3.955 MB / 3.717 GB, free: 28.33 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/12.44, allocations: 7.281 kB / 3.717 GB, free: 28.33 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008116/12.45, allocations: 0.7664 MB / 3.718 GB, free: 28.2 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008163/12.46, allocations: 1.952 MB / 3.72 GB, free: 27.76 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003169/12.46, allocations: 159.4 kB / 3.72 GB, free: 27.76 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00102/12.46, allocations: 178 kB / 3.72 GB, free: 27.76 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01181/12.47, allocations: 3.302 MB / 3.723 GB, free: 27.29 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-05/12.47, allocations: 9.688 kB / 3.723 GB, free: 27.29 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004084/12.47, allocations: 82.89 kB / 3.723 GB, free: 27.29 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000291/12.47, allocations: 149.8 kB / 3.724 GB, free: 27.28 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/12.48, allocations: 3.009 MB / 3.726 GB, free: 27.27 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.02885/12.51, allocations: 14.03 MB / 3.74 GB, free: 18.68 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007983/12.52, allocations: 2.03 MB / 3.742 GB, free: 18.64 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06093/12.58, allocations: 18.86 MB / 3.761 GB, free: 22.67 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006378/12.59, allocations: 1.543 MB / 3.762 GB, free: 22.53 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002656/12.59, allocations: 168.1 kB / 3.762 GB, free: 22.45 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 1.386e-05/12.59, allocations: 0 / 3.762 GB, free: 22.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=154): time 0.03835/12.63, allocations: 8.231 MB / 3.77 GB, free: 21.14 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001884/12.63, allocations: 254.2 kB / 3.771 GB, free: 20.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/12.63, allocations: 1.531 MB / 3.772 GB, free: 20.45 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000543/12.63, allocations: 53.58 kB / 3.772 GB, free: 20.39 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009572/12.64, allocations: 0.8458 MB / 3.773 GB, free: 19.68 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001022/12.64, allocations: 0.5085 MB / 3.773 GB, free: 19.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002156/12.64, allocations: 34.84 kB / 3.773 GB, free: 19.26 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002244/12.64, allocations: 382.4 kB / 3.774 GB, free: 18.92 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00327/12.64, allocations: 1.006 MB / 3.775 GB, free: 18.59 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00375/12.64, allocations: 1.422 MB / 3.776 GB, free: 17.77 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003779/12.65, allocations: 1.232 MB / 3.777 GB, free: 17.25 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-05/12.65, allocations: 2.875 kB / 3.777 GB, free: 17.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01059/12.66, allocations: 3.051 MB / 3.78 GB, free: 16.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003817/12.66, allocations: 470.5 kB / 3.781 GB, free: 15.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.861e-05/12.66, allocations: 12.75 kB / 3.781 GB, free: 15.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005011/12.66, allocations: 0.616 MB / 3.781 GB, free: 15.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003537/12.67, allocations: 434.7 kB / 3.782 GB, free: 15.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00344/12.67, allocations: 2.842 MB / 3.785 GB, free: 12.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003751/12.67, allocations: 237.6 kB / 3.785 GB, free: 12.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005451/12.68, allocations: 91.14 kB / 3.785 GB, free: 12.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/12.68, allocations: 3.875 kB / 3.785 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008627/12.68, allocations: 2.76 MB / 3.788 GB, free: 11.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.324e-05/12.68, allocations: 13.88 kB / 3.788 GB, free: 11.85 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/12.69, allocations: 214.8 kB / 3.788 GB, free: 11.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003607/12.69, allocations: 450.7 kB / 3.788 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/12.69, allocations: 1.881 MB / 3.79 GB, free: 10.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002912/12.69, allocations: 227.1 kB / 3.79 GB, free: 9.988 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003535/12.69, allocations: 90.91 kB / 3.79 GB, free: 9.973 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 () * Number of clocked 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.002162/12.7, allocations: 0.7041 MB / 3.791 GB, free: 9.504 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006186/12.7, allocations: 192.2 kB / 3.791 GB, free: 9.406 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01708/12.71, allocations: 7.449 MB / 3.799 GB, free: 3.363 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001184/12.71, allocations: 79.08 kB / 3.799 GB, free: 3.316 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/12.71, allocations: 3.188 kB / 3.799 GB, free: 3.316 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4092/13.12, allocations: 6.972 MB / 3.805 GB, free: 44.64 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02468/13.15, allocations: 10.34 MB / 3.816 GB, free: 44.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.91e-05/13.15, allocations: 1.375 kB / 3.816 GB, free: 44.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002739/13.15, allocations: 330.4 kB / 3.816 GB, free: 44.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005266/13.16, allocations: 1.353 MB / 3.817 GB, free: 44.02 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005479/13.16, allocations: 54.81 kB / 3.817 GB, free: 44.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004117/13.16, allocations: 3.464 MB / 3.821 GB, free: 41.95 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/13.16, allocations: 4.375 kB / 3.821 GB, free: 41.95 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01692/13.18, allocations: 7.248 MB / 3.828 GB, free: 41.54 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002218/13.18, allocations: 0.7125 MB / 3.828 GB, free: 41.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006539/13.18, allocations: 44.86 kB / 3.828 GB, free: 41.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002556/13.18, allocations: 182.6 kB / 3.829 GB, free: 41.39 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003602/13.18, allocations: 126.5 kB / 3.829 GB, free: 41.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002098/13.18, allocations: 70.8 kB / 3.829 GB, free: 41.39 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002422/13.19, allocations: 1.144 MB / 3.83 GB, free: 41.25 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.21e-07/13.19, allocations: 0 / 3.83 GB, free: 41.25 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01173/13.2, allocations: 2.672 MB / 3.832 GB, free: 41.25 MB / 490.7 MB 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) * Number of clocked states: 0 () * 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.01514/13.21, allocations: 2.863 MB / 3.835 GB, free: 41.09 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01266/13.23, allocations: 4.732 MB / 3.84 GB, free: 40.78 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.355e-06/13.23, allocations: 0 / 3.84 GB, free: 40.78 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005/13.23, allocations: 2.259 MB / 3.842 GB, free: 40.63 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007874/13.24, allocations: 0.8967 MB / 3.843 GB, free: 40.61 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3432/13.58, allocations: 127.7 MB / 3.968 GB, free: 9.488 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001883/13.58, allocations: 2.127 MB / 3.97 GB, free: 7.898 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/13.59, allocations: 185.4 kB / 3.97 GB, free: 7.742 MB / 490.7 MB Notification: Performance of SimCode: time 1.993e-06/13.59, allocations: 0 / 3.97 GB, free: 7.742 MB / 490.7 MB Notification: Performance of Templates: time 0.585/14.17, allocations: 110.7 MB / 4.078 GB, free: 49.69 MB / 0.4948 GB