Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.303/2.303, allocations: 234.9 MB / 251.1 MB, free: 9.688 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000423/0.0004232, allocations: 12 kB / 314.9 MB, free: 9.738 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.3705, allocations: 54.86 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.789/8.16, allocations: 2.656 GB / 3.018 GB, free: 63.63 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/8.16, allocations: 83.2 kB / 3.018 GB, free: 63.59 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.88/13.04, allocations: 0.8648 GB / 3.883 GB, free: 35.09 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.515e-06/13.04, allocations: 3.469 kB / 3.883 GB, free: 35.09 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002767/13.04, allocations: 61.16 kB / 3.883 GB, free: 35.08 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.01833/13.06, allocations: 4.085 MB / 3.887 GB, free: 33.26 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/13.06, allocations: 10.56 kB / 3.887 GB, free: 33.26 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008048/13.07, allocations: 0.779 MB / 3.887 GB, free: 33.13 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007805/13.07, allocations: 1.972 MB / 3.889 GB, free: 32.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002678/13.08, allocations: 167.7 kB / 3.889 GB, free: 32.69 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007719/13.08, allocations: 179.5 kB / 3.89 GB, free: 32.69 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0112/13.09, allocations: 3.308 MB / 3.893 GB, free: 32.23 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.933e-05/13.09, allocations: 15.11 kB / 3.893 GB, free: 32.22 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003768/13.09, allocations: 82.44 kB / 3.893 GB, free: 32.22 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002873/13.09, allocations: 146.6 kB / 3.893 GB, free: 32.22 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01138/13.1, allocations: 3.017 MB / 3.896 GB, free: 32.2 MB / 0.5105 GB 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.02914/13.13, allocations: 14.05 MB / 3.91 GB, free: 23.71 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008014/13.14, allocations: 2.028 MB / 3.912 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05884/13.2, allocations: 18.88 MB / 3.93 GB, free: 27.84 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006225/13.2, allocations: 1.553 MB / 3.932 GB, free: 27.72 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001733/13.2, allocations: 169.4 kB / 3.932 GB, free: 27.65 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=146): time 7.784e-06/13.2, allocations: 0 / 3.932 GB, free: 27.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158): time 0.0361/13.24, allocations: 8.207 MB / 3.94 GB, free: 26.42 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001727/13.24, allocations: 257 kB / 3.94 GB, free: 26.14 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003218/13.24, allocations: 1.533 MB / 3.942 GB, free: 25.95 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005307/13.24, allocations: 52.05 kB / 3.942 GB, free: 25.92 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008849/13.24, allocations: 0.8497 MB / 3.942 GB, free: 25.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008814/13.25, allocations: 0.5269 MB / 3.943 GB, free: 25.16 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002091/13.25, allocations: 35.34 kB / 3.943 GB, free: 25.16 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002255/13.25, allocations: 386 kB / 3.943 GB, free: 24.85 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003194/13.25, allocations: 1.014 MB / 3.944 GB, free: 24.84 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003715/13.25, allocations: 1.433 MB / 3.946 GB, free: 24.41 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003839/13.26, allocations: 1.242 MB / 3.947 GB, free: 24.33 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.526e-05/13.26, allocations: 3.688 kB / 3.947 GB, free: 24.33 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01069/13.27, allocations: 3.019 MB / 3.95 GB, free: 24.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003608/13.27, allocations: 479 kB / 3.95 GB, free: 23.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.493e-05/13.27, allocations: 12.31 kB / 3.95 GB, free: 23.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005021/13.27, allocations: 0.6139 MB / 3.951 GB, free: 23.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003658/13.28, allocations: 435.3 kB / 3.951 GB, free: 23.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/13.28, allocations: 2.833 MB / 3.954 GB, free: 21.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003795/13.28, allocations: 234.3 kB / 3.954 GB, free: 21.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005139/13.28, allocations: 100.8 kB / 3.955 GB, free: 21.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/13.28, allocations: 3.688 kB / 3.955 GB, free: 21.46 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008949/13.29, allocations: 2.727 MB / 3.957 GB, free: 21.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-05/13.29, allocations: 8.688 kB / 3.957 GB, free: 21.32 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/13.3, allocations: 219.4 kB / 3.957 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004025/13.3, allocations: 453.1 kB / 3.958 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/13.3, allocations: 1.874 MB / 3.96 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003063/13.3, allocations: 236 kB / 3.96 GB, free: 19.74 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004031/13.3, allocations: 93.38 kB / 3.96 GB, free: 19.73 MB / 0.5261 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 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.002112/13.31, allocations: 0.7069 MB / 3.961 GB, free: 19.47 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005966/13.31, allocations: 197.7 kB / 3.961 GB, free: 19.38 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01554/13.32, allocations: 7.441 MB / 3.968 GB, free: 18.69 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.281e-05/13.32, allocations: 83.69 kB / 3.968 GB, free: 18.69 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/13.32, allocations: 0 / 3.968 GB, free: 18.69 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0127/13.34, allocations: 6.514 MB / 3.975 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02094/13.36, allocations: 10.33 MB / 3.985 GB, free: 17.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/13.36, allocations: 7.219 kB / 3.985 GB, free: 17.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002708/13.36, allocations: 329.8 kB / 3.985 GB, free: 17.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005013/13.36, allocations: 1.377 MB / 3.986 GB, free: 17.05 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005408/13.37, allocations: 56.25 kB / 3.986 GB, free: 17.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003975/13.37, allocations: 3.469 MB / 3.99 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/13.37, allocations: 2.312 kB / 3.99 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01597/13.39, allocations: 7.236 MB / 3.997 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002228/13.39, allocations: 0.7089 MB / 3.998 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007958/13.39, allocations: 47.69 kB / 3.998 GB, free: 11.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002887/13.39, allocations: 187.9 kB / 3.998 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004384/13.39, allocations: 127.3 kB / 3.998 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000231/13.39, allocations: 69.75 kB / 3.998 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002597/13.39, allocations: 1.142 MB / 3.999 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.61e-07/13.39, allocations: 3.188 kB / 3.999 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01225/13.41, allocations: 2.706 MB / 4.002 GB, free: 10.07 MB / 0.5261 GB 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: 55 ($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,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) * 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.01975/13.43, allocations: 2.868 MB / 4.005 GB, free: 9.297 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0139/13.44, allocations: 4.844 MB / 4.009 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/13.44, allocations: 0 / 4.009 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005511/13.45, allocations: 2.312 MB / 4.011 GB, free: 6.488 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007937/13.45, allocations: 0.9031 MB / 4.012 GB, free: 6.27 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8463/14.3, allocations: 131 MB / 4.14 GB, free: 50.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002415/14.3, allocations: 2.135 MB / 4.142 GB, free: 49.42 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001233/14.3, allocations: 185 kB / 4.143 GB, free: 49.42 MB / 0.5417 GB Notification: Performance of SimCode: time 1.112e-06/14.3, allocations: 0 / 4.143 GB, free: 49.42 MB / 0.5417 GB Notification: Performance of Templates: time 0.6348/14.94, allocations: 111.1 MB / 4.251 GB, free: 72.22 MB / 0.5573 GB