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.BranchingPipes18.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.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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.333/2.333, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004398/0.0004399, allocations: 8 kB / 314.4 MB, free: 9.555 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2716, allocations: 54.87 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.321/6.593, allocations: 2.678 GB / 3.038 GB, free: 102.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002339/6.593, allocations: 82.58 kB / 3.038 GB, free: 102.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.56/11.15, allocations: 1.01 GB / 4.049 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.352e-06/11.15, allocations: 3 kB / 4.049 GB, free: 24.93 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003162/11.15, allocations: 68.91 kB / 4.049 GB, free: 24.91 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01754/11.17, allocations: 4.529 MB / 4.053 GB, free: 22.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/11.17, allocations: 14.5 kB / 4.053 GB, free: 22.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009025/11.18, allocations: 0.9311 MB / 4.054 GB, free: 22.27 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008185/11.19, allocations: 2.22 MB / 4.056 GB, free: 21.27 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003592/11.19, allocations: 197.8 kB / 4.056 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001031/11.19, allocations: 229 kB / 4.057 GB, free: 21.11 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/11.2, allocations: 3.902 MB / 4.06 GB, free: 19.47 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.212e-05/11.2, allocations: 10.94 kB / 4.06 GB, free: 19.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004881/11.2, allocations: 98.34 kB / 4.061 GB, free: 19.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002726/11.2, allocations: 177.4 kB / 4.061 GB, free: 19.37 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01277/11.22, allocations: 3.605 MB / 4.064 GB, free: 18.29 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.02717/11.24, allocations: 16.73 MB / 4.081 GB, free: 3.293 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008839/11.25, allocations: 3.151 MB / 4.084 GB, free: 0.5156 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4151/11.67, allocations: 18.55 MB / 4.102 GB, free: 40.84 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007281/11.67, allocations: 1.867 MB / 4.104 GB, free: 40.72 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=192): time 7.563e-06/11.67, allocations: 0 / 4.104 GB, free: 40.72 MB / 0.5261 GB Notification: Performance of matching and sorting (n=212): time 0.04127/11.72, allocations: 10.26 MB / 4.114 GB, free: 39.71 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.949e-05/11.72, allocations: 256.2 kB / 4.114 GB, free: 39.43 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002965/11.72, allocations: 1.451 MB / 4.115 GB, free: 39.21 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006025/11.72, allocations: 69.23 kB / 4.115 GB, free: 39.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009814/11.72, allocations: 0.9828 MB / 4.116 GB, free: 38.79 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001039/11.72, allocations: 0.704 MB / 4.117 GB, free: 38.44 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002595/11.72, allocations: 45.78 kB / 4.117 GB, free: 38.44 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001738/11.72, allocations: 411.2 kB / 4.117 GB, free: 38.12 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003706/11.73, allocations: 1.268 MB / 4.119 GB, free: 38.11 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004402/11.73, allocations: 1.82 MB / 4.12 GB, free: 37.56 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004346/11.73, allocations: 1.536 MB / 4.122 GB, free: 37.47 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.135e-05/11.73, allocations: 6.906 kB / 4.122 GB, free: 37.47 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.0107/11.75, allocations: 3.59 MB / 4.125 GB, free: 37.24 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001165/11.75, allocations: 5.471 MB / 4.131 GB, free: 31.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.039e-05/11.75, allocations: 14.41 kB / 4.131 GB, free: 31.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001724/11.75, allocations: 348.5 kB / 4.131 GB, free: 31.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003565/11.75, allocations: 0.6083 MB / 4.132 GB, free: 31.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002142/11.75, allocations: 3.094 MB / 4.135 GB, free: 28.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003967/11.76, allocations: 340.8 kB / 4.135 GB, free: 28.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006975/11.76, allocations: 124.8 kB / 4.135 GB, free: 28.92 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/11.76, allocations: 6.797 kB / 4.135 GB, free: 28.91 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01053/11.77, allocations: 3.437 MB / 4.139 GB, free: 28.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.928e-05/11.77, allocations: 15.53 kB / 4.139 GB, free: 28.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001727/11.77, allocations: 350.3 kB / 4.139 GB, free: 28.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003769/11.78, allocations: 0.5943 MB / 4.14 GB, free: 28.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/11.78, allocations: 3.094 MB / 4.143 GB, free: 26.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003166/11.78, allocations: 332.4 kB / 4.143 GB, free: 26.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006565/11.78, allocations: 119.9 kB / 4.143 GB, free: 26.12 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 31 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.002464/11.78, allocations: 0.7972 MB / 4.144 GB, free: 25.87 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007061/11.78, allocations: 224.7 kB / 4.144 GB, free: 25.75 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01693/11.8, allocations: 8.229 MB / 4.152 GB, free: 25.03 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.472e-05/11.8, allocations: 88.92 kB / 4.152 GB, free: 25.03 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/11.8, allocations: 3.953 kB / 4.152 GB, free: 25.03 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01383/11.82, allocations: 7.138 MB / 4.159 GB, free: 24.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02758/11.84, allocations: 13.18 MB / 4.172 GB, free: 22.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.234e-05/11.84, allocations: 6.141 kB / 4.172 GB, free: 22.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002667/11.85, allocations: 487.2 kB / 4.172 GB, free: 22.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00258/11.85, allocations: 479.1 kB / 4.173 GB, free: 22.41 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005462/11.85, allocations: 84.47 kB / 4.173 GB, free: 22.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002226/11.85, allocations: 3.218 MB / 4.176 GB, free: 19.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.59e-06/11.85, allocations: 15.34 kB / 4.176 GB, free: 19.81 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/11.87, allocations: 8.484 MB / 4.184 GB, free: 18.38 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002357/11.87, allocations: 0.7979 MB / 4.185 GB, free: 18.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007925/11.87, allocations: 66.09 kB / 4.185 GB, free: 18.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003179/11.87, allocations: 234.9 kB / 4.185 GB, free: 18.03 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006248/11.88, allocations: 188.3 kB / 4.186 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000287/11.88, allocations: 92.16 kB / 4.186 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002438/11.88, allocations: 1.2 MB / 4.187 GB, free: 17.88 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.083e-06/11.88, allocations: 0 / 4.187 GB, free: 17.88 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01197/11.89, allocations: 2.919 MB / 4.19 GB, free: 17.77 MB / 0.5261 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: 59 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (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.01266/11.9, allocations: 3.039 MB / 4.193 GB, free: 17.44 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01415/11.92, allocations: 5.948 MB / 4.199 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/11.92, allocations: 4.438 kB / 4.199 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006254/11.92, allocations: 3.029 MB / 4.201 GB, free: 16.95 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007731/11.93, allocations: 1.135 MB / 4.203 GB, free: 16.93 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6862/12.62, allocations: 131.4 MB / 4.331 GB, free: 67.95 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003246/12.62, allocations: 2.341 MB / 4.333 GB, free: 67.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/12.62, allocations: 239.9 kB / 4.333 GB, free: 67.2 MB / 0.5573 GB Notification: Performance of SimCode: time 1.772e-06/12.62, allocations: 0 / 4.333 GB, free: 67.2 MB / 0.5573 GB Notification: Performance of Templates: time 0.1858/12.81, allocations: 137.9 MB / 4.468 GB, free: 33.72 MB / 0.5573 GB