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.205/2.205, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.68e-05/2.687e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3185, allocations: 54.86 MB / 364.5 MB, free: 5.555 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.609/6.928, allocations: 2.678 GB / 3.034 GB, free: 97.82 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/6.928, allocations: 80.08 kB / 3.034 GB, free: 97.78 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568/11.5, allocations: 1.008 GB / 4.041 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.143e-06/11.5, allocations: 0 / 4.041 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002886/11.5, allocations: 75.92 kB / 4.041 GB, free: 25.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.01595/11.51, allocations: 4.244 MB / 4.045 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/11.51, allocations: 10.53 kB / 4.045 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009352/11.52, allocations: 0.9373 MB / 4.046 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007061/11.53, allocations: 2.195 MB / 4.049 GB, free: 22.38 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003214/11.53, allocations: 196 kB / 4.049 GB, free: 22.29 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009744/11.53, allocations: 222.2 kB / 4.049 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/11.54, allocations: 3.87 MB / 4.053 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-05/11.54, allocations: 11.17 kB / 4.053 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004481/11.54, allocations: 100.6 kB / 4.053 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002542/11.54, allocations: 166.5 kB / 4.053 GB, free: 20.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01038/11.55, allocations: 3.437 MB / 4.056 GB, free: 17.14 MB / 0.5105 GB 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.02548/11.58, allocations: 16.73 MB / 4.073 GB, free: 1.203 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009444/11.59, allocations: 3.057 MB / 4.076 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003051/11.59, allocations: 1.238 MB / 4.077 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4022/11.99, allocations: 18.62 MB / 4.095 GB, free: 38.88 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006626/12, allocations: 1.85 MB / 4.097 GB, free: 38.76 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=192): time 6.552e-06/12, allocations: 2.75 kB / 4.097 GB, free: 38.76 MB / 0.5261 GB Notification: Performance of matching and sorting (n=212): time 0.03504/12.04, allocations: 8.644 MB / 4.105 GB, free: 37.93 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/12.04, allocations: 260 kB / 4.106 GB, free: 37.64 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003471/12.04, allocations: 1.432 MB / 4.107 GB, free: 37.41 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006194/12.04, allocations: 67.48 kB / 4.107 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001067/12.04, allocations: 0.9816 MB / 4.108 GB, free: 36.99 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001118/12.04, allocations: 0.7086 MB / 4.109 GB, free: 36.63 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002718/12.04, allocations: 47.66 kB / 4.109 GB, free: 36.63 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002061/12.04, allocations: 408.8 kB / 4.109 GB, free: 36.32 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002845/12.05, allocations: 1.123 MB / 4.11 GB, free: 36.31 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003541/12.05, allocations: 1.676 MB / 4.112 GB, free: 35.76 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003361/12.05, allocations: 1.393 MB / 4.113 GB, free: 35.67 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-05/12.05, allocations: 6.516 kB / 4.113 GB, free: 35.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=309) (initialization): time 0.009266/12.06, allocations: 3.329 MB / 4.116 GB, free: 35.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001162/12.06, allocations: 5.469 MB / 4.122 GB, free: 29.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.05e-05/12.06, allocations: 11.72 kB / 4.122 GB, free: 29.75 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00165/12.06, allocations: 331.3 kB / 4.122 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003959/12.07, allocations: 0.6012 MB / 4.123 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/12.07, allocations: 3.09 MB / 4.126 GB, free: 27.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004444/12.08, allocations: 338.9 kB / 4.126 GB, free: 27.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007479/12.08, allocations: 119.4 kB / 4.126 GB, free: 27.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/12.08, allocations: 3.844 kB / 4.126 GB, free: 27.11 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008371/12.08, allocations: 3.161 MB / 4.129 GB, free: 26.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.433e-05/12.08, allocations: 13.5 kB / 4.129 GB, free: 26.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/12.09, allocations: 335.9 kB / 4.13 GB, free: 26.92 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003733/12.09, allocations: 0.5897 MB / 4.13 GB, free: 26.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/12.09, allocations: 3.094 MB / 4.133 GB, free: 24.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003568/12.1, allocations: 329.3 kB / 4.134 GB, free: 24.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005886/12.1, allocations: 116.4 kB / 4.134 GB, free: 24.32 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 () * 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.0009054/12.1, allocations: 329.7 kB / 4.134 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007015/12.1, allocations: 225.4 kB / 4.134 GB, free: 24.03 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01507/12.11, allocations: 8.121 MB / 4.142 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.021e-05/12.11, allocations: 91.75 kB / 4.142 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.51e-05/12.11, allocations: 5.281 kB / 4.142 GB, free: 23.23 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01215/12.13, allocations: 7.014 MB / 4.149 GB, free: 22.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02593/12.15, allocations: 13.03 MB / 4.162 GB, free: 20.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.977e-05/12.15, allocations: 3.656 kB / 4.162 GB, free: 20.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002782/12.15, allocations: 485.2 kB / 4.162 GB, free: 20.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00208/12.16, allocations: 452.4 kB / 4.163 GB, free: 20.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005441/12.16, allocations: 78.83 kB / 4.163 GB, free: 20.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/12.16, allocations: 3.219 MB / 4.166 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.835e-06/12.16, allocations: 8.875 kB / 4.166 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/12.17, allocations: 8.092 MB / 4.174 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002353/12.18, allocations: 0.8013 MB / 4.175 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009875/12.18, allocations: 68.34 kB / 4.175 GB, free: 16.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003184/12.18, allocations: 235.1 kB / 4.175 GB, free: 16.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006826/12.18, allocations: 192.6 kB / 4.175 GB, free: 16.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003517/12.18, allocations: 100.1 kB / 4.175 GB, free: 16.18 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00275/12.18, allocations: 1.177 MB / 4.176 GB, free: 16.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.364e-06/12.18, allocations: 0 / 4.176 GB, free: 16.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01247/12.2, allocations: 2.919 MB / 4.179 GB, free: 15.91 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) * 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.01259/12.21, allocations: 3.023 MB / 4.182 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01244/12.22, allocations: 5.553 MB / 4.188 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.582e-05/12.22, allocations: 7.203 kB / 4.188 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005935/12.23, allocations: 2.941 MB / 4.19 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00771/12.24, allocations: 1.135 MB / 4.192 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6736/12.91, allocations: 128.4 MB / 4.317 GB, free: 72.47 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002928/12.91, allocations: 2.336 MB / 4.319 GB, free: 71.72 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/12.91, allocations: 241 kB / 4.319 GB, free: 71.72 MB / 0.5573 GB Notification: Performance of SimCode: time 1.741e-06/12.91, allocations: 0 / 4.319 GB, free: 71.72 MB / 0.5573 GB Notification: Performance of Templates: time 0.1853/13.1, allocations: 137.5 MB / 4.454 GB, free: 38.21 MB / 0.5573 GB