Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00259/0.00259, allocations: 350.6 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.376/3.376, allocations: 341.5 MB / 358.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003428/0.003428, allocations: 226.1 kB / 397.9 MB, free: 4.965 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5646/0.5646, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000727/0.0007274, allocations: 15.98 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09893/0.09969, allocations: 48.7 MB / 0.6067 GB, free: 4.656 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.661/7.761, allocations: 2.546 GB / 3.153 GB, free: 86.56 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/7.761, allocations: 81.55 kB / 3.153 GB, free: 86.56 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.344/12.11, allocations: 0.8051 GB / 3.958 GB, free: 15.22 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.775e-06/12.11, allocations: 0 / 3.958 GB, free: 15.22 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002766/12.11, allocations: 62.03 kB / 3.958 GB, free: 15.21 MB / 458.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.0184/12.12, allocations: 3.958 MB / 3.962 GB, free: 11.64 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/12.12, allocations: 8.031 kB / 3.962 GB, free: 11.63 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008326/12.13, allocations: 0.7581 MB / 3.962 GB, free: 10.87 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03626/12.17, allocations: 13.14 MB / 3.975 GB, free: 14.57 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003022/12.17, allocations: 167.4 kB / 3.975 GB, free: 14.41 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007674/12.17, allocations: 179.9 kB / 3.976 GB, free: 14.23 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01214/12.18, allocations: 3.301 MB / 3.979 GB, free: 10.77 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.526e-05/12.18, allocations: 7.938 kB / 3.979 GB, free: 10.77 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003932/12.18, allocations: 79.95 kB / 3.979 GB, free: 10.69 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003291/12.18, allocations: 147.3 kB / 3.979 GB, free: 10.54 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01205/12.2, allocations: 3.007 MB / 3.982 GB, free: 7.531 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.4124/12.61, allocations: 14.01 MB / 3.996 GB, free: 28.9 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00771/12.62, allocations: 2.021 MB / 3.998 GB, free: 28.88 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003037/12.62, allocations: 1.026 MB / 3.999 GB, free: 28.87 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06188/12.68, allocations: 18.85 MB / 4.017 GB, free: 17.05 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008143/12.69, allocations: 1.544 MB / 4.019 GB, free: 16.93 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002147/12.69, allocations: 162.4 kB / 4.019 GB, free: 16.93 MB / 474.7 MB Notification: Performance of pre-optimization done (n=142): time 7.163e-06/12.69, allocations: 0 / 4.019 GB, free: 16.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=154): time 0.07079/12.76, allocations: 8.069 MB / 4.027 GB, free: 15.99 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/12.76, allocations: 257.7 kB / 4.027 GB, free: 15.71 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00462/12.77, allocations: 1.512 MB / 4.028 GB, free: 15.54 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006485/12.77, allocations: 54.92 kB / 4.028 GB, free: 15.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/12.77, allocations: 0.8982 MB / 4.029 GB, free: 15.22 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001269/12.77, allocations: 0.5152 MB / 4.03 GB, free: 14.96 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00032/12.77, allocations: 35.72 kB / 4.03 GB, free: 14.96 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000224/12.77, allocations: 381.2 kB / 4.03 GB, free: 14.65 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004667/12.78, allocations: 1.011 MB / 4.031 GB, free: 14.65 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005151/12.78, allocations: 1.419 MB / 4.033 GB, free: 14.23 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004874/12.79, allocations: 1.234 MB / 4.034 GB, free: 14.15 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.782e-05/12.79, allocations: 3.25 kB / 4.034 GB, free: 14.15 MB / 474.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01172/12.8, allocations: 3.145 MB / 4.037 GB, free: 13.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003186/12.8, allocations: 477.8 kB / 4.037 GB, free: 13.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.462e-05/12.8, allocations: 10.84 kB / 4.037 GB, free: 13.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005033/12.8, allocations: 0.6151 MB / 4.038 GB, free: 13.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003629/12.81, allocations: 439.8 kB / 4.038 GB, free: 13.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002999/12.81, allocations: 2.824 MB / 4.041 GB, free: 11.24 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003922/12.81, allocations: 231.4 kB / 4.041 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006052/12.81, allocations: 100.4 kB / 4.041 GB, free: 11.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/12.81, allocations: 3.344 kB / 4.041 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009538/12.82, allocations: 2.751 MB / 4.044 GB, free: 11.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-05/12.82, allocations: 12.28 kB / 4.044 GB, free: 11.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/12.82, allocations: 209.3 kB / 4.044 GB, free: 11.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003844/12.83, allocations: 455 kB / 4.045 GB, free: 11.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002283/12.83, allocations: 1.88 MB / 4.047 GB, free: 25.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003711/12.83, allocations: 233 kB / 4.047 GB, free: 25.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005504/12.84, allocations: 90.77 kB / 4.047 GB, free: 25.51 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.002203/12.84, allocations: 0.7056 MB / 4.048 GB, free: 25.26 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000713/12.84, allocations: 187 kB / 4.048 GB, free: 25.16 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01647/12.85, allocations: 7.461 MB / 4.055 GB, free: 24.56 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.577e-05/12.85, allocations: 78.66 kB / 4.055 GB, free: 24.56 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/12.85, allocations: 3.5 kB / 4.055 GB, free: 24.56 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01287/12.87, allocations: 6.531 MB / 4.062 GB, free: 23.72 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02188/12.89, allocations: 10.33 MB / 4.072 GB, free: 23.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-05/12.89, allocations: 2.156 kB / 4.072 GB, free: 23.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002755/12.89, allocations: 330.1 kB / 4.072 GB, free: 23.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006014/12.9, allocations: 1.347 MB / 4.073 GB, free: 22.99 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005048/12.9, allocations: 55.5 kB / 4.073 GB, free: 22.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003859/12.9, allocations: 3.472 MB / 4.077 GB, free: 20.89 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/12.9, allocations: 0 / 4.077 GB, free: 20.89 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01585/12.92, allocations: 7.246 MB / 4.084 GB, free: 20.32 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002333/12.92, allocations: 0.7018 MB / 4.084 GB, free: 20 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008153/12.92, allocations: 44.14 kB / 4.084 GB, free: 20 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002922/12.93, allocations: 191.6 kB / 4.085 GB, free: 19.99 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005228/12.93, allocations: 129 kB / 4.085 GB, free: 19.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002433/12.93, allocations: 66.59 kB / 4.085 GB, free: 19.99 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002367/12.93, allocations: 1.127 MB / 4.086 GB, free: 19.85 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.31e-07/12.93, allocations: 0 / 4.086 GB, free: 19.85 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01178/12.94, allocations: 2.56 MB / 4.088 GB, free: 19.73 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.01467/12.95, allocations: 2.711 MB / 4.091 GB, free: 19.45 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01332/12.97, allocations: 4.737 MB / 4.096 GB, free: 19.13 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/12.97, allocations: 0 / 4.096 GB, free: 19.13 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00515/12.97, allocations: 2.249 MB / 4.098 GB, free: 18.98 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008441/12.98, allocations: 0.9191 MB / 4.099 GB, free: 18.97 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2112/13.19, allocations: 80.5 MB / 4.177 GB, free: 1.266 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3899/13.58, allocations: 2.2 MB / 4.18 GB, free: 62.54 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006934/13.59, allocations: 2.166 MB / 4.182 GB, free: 62.52 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/13.59, allocations: 168.3 kB / 4.182 GB, free: 62.52 MB / 0.4948 GB Notification: Performance of SimCode: time 1.222e-06/13.59, allocations: 1.125 kB / 4.182 GB, free: 62.52 MB / 0.4948 GB Notification: Performance of Templates: time 0.2003/13.79, allocations: 82.16 MB / 4.262 GB, free: 59.12 MB / 0.4948 GB