Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,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.BranchingPipes2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002735/0.002741, allocations: 343.3 kB / 15.93 MB, free: 6.188 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.372/3.372, 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.0036/0.0036, allocations: 225.3 kB / 397.8 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.4556/0.4556, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004613/0.0004615, allocations: 12 kB / 0.5592 GB, free: 53.48 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08551/0.086, allocations: 48.72 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.989/8.075, allocations: 2.562 GB / 3.169 GB, free: 95.25 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/8.076, allocations: 82.86 kB / 3.169 GB, free: 95.25 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907/11.98, allocations: 0.7462 GB / 3.915 GB, free: 24.01 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.875e-06/11.98, allocations: 0 / 3.915 GB, free: 24.01 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002531/11.98, allocations: 61.27 kB / 3.915 GB, free: 24 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: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.01897/12, allocations: 3.792 MB / 3.919 GB, free: 22.07 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/12, allocations: 10.91 kB / 3.919 GB, free: 22.07 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008374/12.01, allocations: 0.7563 MB / 3.92 GB, free: 21.94 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03694/12.05, allocations: 13.19 MB / 3.932 GB, free: 21.06 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003168/12.05, allocations: 162.5 kB / 3.933 GB, free: 21.06 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009322/12.05, allocations: 182.8 kB / 3.933 GB, free: 21.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01205/12.06, allocations: 3.345 MB / 3.936 GB, free: 20.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.633e-05/12.06, allocations: 7.656 kB / 3.936 GB, free: 20.09 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003957/12.06, allocations: 77.72 kB / 3.936 GB, free: 20.05 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002869/12.06, allocations: 144.5 kB / 3.936 GB, free: 20.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/12.07, allocations: 3.17 MB / 3.939 GB, free: 19.07 MB / 458.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.02549/12.1, allocations: 13.61 MB / 3.953 GB, free: 8.715 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007824/12.11, allocations: 2.038 MB / 3.955 GB, free: 8.094 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003229/12.11, allocations: 1.103 MB / 3.956 GB, free: 7.715 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07489/12.19, allocations: 18.8 MB / 3.974 GB, free: 7.98 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009317/12.2, allocations: 1.591 MB / 3.976 GB, free: 6.762 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002123/12.2, allocations: 174.3 kB / 3.976 GB, free: 6.602 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 7.173e-06/12.2, allocations: 0 / 3.976 GB, free: 6.602 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.4325/12.63, allocations: 8.233 MB / 3.984 GB, free: 39.75 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/12.63, allocations: 257.8 kB / 3.984 GB, free: 39.47 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003054/12.63, allocations: 1.425 MB / 3.985 GB, free: 39.31 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006206/12.63, allocations: 57.92 kB / 3.986 GB, free: 39.28 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/12.63, allocations: 0.8775 MB / 3.986 GB, free: 39.19 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009777/12.64, allocations: 0.5477 MB / 3.987 GB, free: 38.99 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/12.64, allocations: 36.91 kB / 3.987 GB, free: 38.99 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/12.64, allocations: 379.4 kB / 3.987 GB, free: 38.68 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003322/12.64, allocations: 1.011 MB / 3.988 GB, free: 38.68 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004027/12.64, allocations: 1.448 MB / 3.99 GB, free: 38.26 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004115/12.65, allocations: 1.249 MB / 3.991 GB, free: 38.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2e-05/12.65, allocations: 2.844 kB / 3.991 GB, free: 38.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01151/12.66, allocations: 3.134 MB / 3.994 GB, free: 37.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000326/12.66, allocations: 477.3 kB / 3.994 GB, free: 37.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.131e-05/12.66, allocations: 10.25 kB / 3.994 GB, free: 37.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004459/12.66, allocations: 0.5325 MB / 3.995 GB, free: 37.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003785/12.67, allocations: 454.3 kB / 3.995 GB, free: 37.35 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002495/12.67, allocations: 2.708 MB / 3.998 GB, free: 35.28 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004171/12.67, allocations: 254.9 kB / 3.998 GB, free: 35.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000511/12.68, allocations: 94.86 kB / 3.998 GB, free: 35.27 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/12.68, allocations: 7.656 kB / 3.998 GB, free: 35.27 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009046/12.68, allocations: 2.772 MB / 4.001 GB, free: 35.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-05/12.68, allocations: 16.64 kB / 4.001 GB, free: 35.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/12.69, allocations: 208 kB / 4.001 GB, free: 35.11 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003867/12.69, allocations: 467.7 kB / 4.002 GB, free: 35.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/12.69, allocations: 1.882 MB / 4.004 GB, free: 33.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003932/12.7, allocations: 253.5 kB / 4.004 GB, free: 33.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000429/12.7, allocations: 90.98 kB / 4.004 GB, free: 33.55 MB / 474.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 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.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 (215): * Single equations (assignments): 209 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.001904/12.7, allocations: 0.7027 MB / 4.005 GB, free: 33.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000619/12.7, allocations: 195.7 kB / 4.005 GB, free: 33.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01756/12.72, allocations: 7.462 MB / 4.012 GB, free: 32.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.013e-05/12.72, allocations: 80.05 kB / 4.012 GB, free: 32.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/12.72, allocations: 3.469 kB / 4.012 GB, free: 32.54 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01309/12.73, allocations: 6.522 MB / 4.019 GB, free: 31.62 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0239/12.75, allocations: 11.16 MB / 4.029 GB, free: 30.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/12.75, allocations: 7.156 kB / 4.029 GB, free: 30.54 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002728/12.76, allocations: 359.8 kB / 4.03 GB, free: 30.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004309/12.76, allocations: 1.175 MB / 4.031 GB, free: 30.48 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004786/12.76, allocations: 63.31 kB / 4.031 GB, free: 30.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003282/12.76, allocations: 3.196 MB / 4.034 GB, free: 28.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/12.76, allocations: 4.766 kB / 4.034 GB, free: 28.39 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01536/12.78, allocations: 7.156 MB / 4.041 GB, free: 27.57 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001989/12.78, allocations: 0.6887 MB / 4.042 GB, free: 27.29 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005781/12.78, allocations: 54.02 kB / 4.042 GB, free: 27.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002459/12.78, allocations: 186.1 kB / 4.042 GB, free: 27.28 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000409/12.78, allocations: 149.1 kB / 4.042 GB, free: 27.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002241/12.79, allocations: 70.55 kB / 4.042 GB, free: 27.28 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002157/12.79, allocations: 1.07 MB / 4.043 GB, free: 27.13 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.41e-07/12.79, allocations: 0 / 4.043 GB, free: 27.13 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01093/12.8, allocations: 2.421 MB / 4.046 GB, free: 27.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (177): * Single equations (assignments): 151 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01367/12.81, allocations: 2.526 MB / 4.048 GB, free: 26.79 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01237/12.82, allocations: 4.741 MB / 4.053 GB, free: 26.46 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/12.82, allocations: 0 / 4.053 GB, free: 26.46 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005299/12.83, allocations: 2.458 MB / 4.055 GB, free: 26.32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007756/12.84, allocations: 0.8707 MB / 4.056 GB, free: 26.31 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2024/13.04, allocations: 80.61 MB / 4.135 GB, free: 8.816 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002471/13.04, allocations: 2.172 MB / 4.137 GB, free: 7.105 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007053/13.05, allocations: 2.249 MB / 4.139 GB, free: 5.777 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001202/13.05, allocations: 170.4 kB / 4.139 GB, free: 5.621 MB / 474.7 MB Notification: Performance of SimCode: time 1.152e-06/13.05, allocations: 0 / 4.139 GB, free: 5.621 MB / 474.7 MB Notification: Performance of Templates: time 0.5723/13.62, allocations: 79.42 MB / 4.217 GB, free: 49.75 MB / 490.7 MB