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.BranchingPipes13.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.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.181/2.181, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007966/0.0007969, allocations: 12 kB / 314.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.292, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.2/6.493, allocations: 2.656 GB / 3.017 GB, free: 125.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/6.493, allocations: 81.98 kB / 3.017 GB, free: 125.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.606/10.1, allocations: 0.8649 GB / 3.882 GB, free: 30.29 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.771e-06/10.1, allocations: 0 / 3.882 GB, free: 30.29 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000197/10.1, allocations: 55.12 kB / 3.882 GB, free: 30.24 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.01311/10.11, allocations: 4.081 MB / 3.886 GB, free: 26.55 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/10.11, allocations: 8.031 kB / 3.886 GB, free: 26.55 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006917/10.12, allocations: 0.7812 MB / 3.887 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005766/10.12, allocations: 1.972 MB / 3.889 GB, free: 24.09 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/10.12, allocations: 164.4 kB / 3.889 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003871/10.13, allocations: 177.4 kB / 3.889 GB, free: 23.77 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00867/10.13, allocations: 3.303 MB / 3.892 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.228e-05/10.13, allocations: 4 kB / 3.892 GB, free: 20.33 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003315/10.13, allocations: 77.92 kB / 3.892 GB, free: 20.27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002258/10.13, allocations: 155.2 kB / 3.893 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008794/10.14, allocations: 3.019 MB / 3.896 GB, free: 17.09 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.01931/10.16, allocations: 14.05 MB / 3.909 GB, free: 1.941 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005875/10.17, allocations: 2.024 MB / 3.911 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4739/10.64, allocations: 18.88 MB / 3.93 GB, free: 44.52 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01043/10.65, allocations: 1.553 MB / 3.931 GB, free: 44.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002373/10.66, allocations: 164.3 kB / 3.931 GB, free: 44.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=146): time 1.334e-05/10.66, allocations: 0 / 3.931 GB, free: 44.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158): time 0.04125/10.7, allocations: 8.178 MB / 3.939 GB, free: 43.36 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001452/10.7, allocations: 257.3 kB / 3.94 GB, free: 43.07 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004885/10.7, allocations: 1.358 MB / 3.941 GB, free: 42.91 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006064/10.7, allocations: 52.11 kB / 3.941 GB, free: 42.88 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001257/10.7, allocations: 0.8497 MB / 3.942 GB, free: 42.53 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001214/10.71, allocations: 0.5246 MB / 3.942 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003296/10.71, allocations: 35.06 kB / 3.942 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000252/10.71, allocations: 383.6 kB / 3.943 GB, free: 41.95 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004745/10.71, allocations: 1.02 MB / 3.944 GB, free: 41.95 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00536/10.72, allocations: 1.421 MB / 3.945 GB, free: 41.52 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00534/10.72, allocations: 1.25 MB / 3.946 GB, free: 41.44 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.96e-05/10.72, allocations: 4.188 kB / 3.946 GB, free: 41.44 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01497/10.74, allocations: 3.013 MB / 3.949 GB, free: 41.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001293/10.74, allocations: 4.25 MB / 3.953 GB, free: 36.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.24e-05/10.74, allocations: 14.56 kB / 3.953 GB, free: 36.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006892/10.74, allocations: 0.6139 MB / 3.954 GB, free: 36.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00456/10.75, allocations: 436.5 kB / 3.954 GB, free: 36.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004527/10.75, allocations: 2.823 MB / 3.957 GB, free: 34.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005378/10.76, allocations: 238.7 kB / 3.957 GB, free: 34.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000692/10.76, allocations: 95.92 kB / 3.957 GB, free: 34.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/10.76, allocations: 5.875 kB / 3.957 GB, free: 34.7 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0131/10.77, allocations: 2.728 MB / 3.96 GB, free: 34.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.358e-05/10.77, allocations: 12.28 kB / 3.96 GB, free: 34.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001903/10.78, allocations: 211.5 kB / 3.96 GB, free: 34.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0025/10.78, allocations: 458.2 kB / 3.961 GB, free: 34.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/10.78, allocations: 1.886 MB / 3.963 GB, free: 32.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002339/10.78, allocations: 234.7 kB / 3.963 GB, free: 32.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004101/10.78, allocations: 90.97 kB / 3.963 GB, free: 32.98 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.001799/10.78, allocations: 0.706 MB / 3.964 GB, free: 32.72 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000537/10.78, allocations: 198.7 kB / 3.964 GB, free: 32.62 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/10.8, allocations: 7.434 MB / 3.971 GB, free: 32.03 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.54e-05/10.8, allocations: 78.45 kB / 3.971 GB, free: 32.03 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/10.8, allocations: 3.656 kB / 3.971 GB, free: 32.03 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01073/10.81, allocations: 6.513 MB / 3.978 GB, free: 31.19 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0183/10.83, allocations: 10.32 MB / 3.988 GB, free: 30.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/10.83, allocations: 4.156 kB / 3.988 GB, free: 30.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00193/10.83, allocations: 328.8 kB / 3.988 GB, free: 30.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004031/10.83, allocations: 1.37 MB / 3.989 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003911/10.83, allocations: 60.94 kB / 3.989 GB, free: 30.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002947/10.84, allocations: 3.473 MB / 3.993 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.931e-06/10.84, allocations: 0 / 3.993 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01571/10.85, allocations: 7.24 MB / 4 GB, free: 27.79 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002919/10.85, allocations: 0.7083 MB / 4 GB, free: 27.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00102/10.86, allocations: 50.72 kB / 4.001 GB, free: 27.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003834/10.86, allocations: 188.6 kB / 4.001 GB, free: 27.47 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005727/10.86, allocations: 128.7 kB / 4.001 GB, free: 27.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003546/10.86, allocations: 67.55 kB / 4.001 GB, free: 27.47 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003575/10.86, allocations: 1.147 MB / 4.002 GB, free: 27.32 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.435e-06/10.86, allocations: 0 / 4.002 GB, free: 27.32 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009823/10.87, allocations: 2.696 MB / 4.005 GB, free: 27.2 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.01158/10.89, allocations: 2.88 MB / 4.007 GB, free: 26.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0106/10.9, allocations: 4.846 MB / 4.012 GB, free: 26.58 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/10.9, allocations: 2.375 kB / 4.012 GB, free: 26.58 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004246/10.9, allocations: 2.304 MB / 4.014 GB, free: 26.44 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005552/10.91, allocations: 0.894 MB / 4.015 GB, free: 26.42 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.684/11.59, allocations: 130 MB / 4.142 GB, free: 62.22 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002106/11.59, allocations: 2.136 MB / 4.144 GB, free: 61.48 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001016/11.59, allocations: 186 kB / 4.144 GB, free: 61.48 MB / 0.5417 GB Notification: Performance of SimCode: time 1.751e-06/11.59, allocations: 3.812 kB / 4.144 GB, free: 61.48 MB / 0.5417 GB Notification: Performance of Templates: time 0.1443/11.74, allocations: 111.2 MB / 4.253 GB, free: 48.8 MB / 0.5417 GB