Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.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.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002713/0.002713, allocations: 348 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.712/3.712, 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.003571/0.00357, allocations: 226.1 kB / 397.9 MB, free: 4.977 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.4836/0.4836, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006134/0.0006139, allocations: 11.98 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08168/0.08233, allocations: 48.71 MB / 0.6067 GB, free: 4.645 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.022/8.105, allocations: 2.567 GB / 3.174 GB, free: 96.42 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/8.105, allocations: 82.7 kB / 3.174 GB, free: 96.42 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.323/13.43, allocations: 0.9396 GB / 4.113 GB, free: 25.42 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.146e-06/13.43, allocations: 0 / 4.113 GB, free: 25.42 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003589/13.43, allocations: 70.05 kB / 4.113 GB, free: 25.41 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.02173/13.45, allocations: 4.4 MB / 4.118 GB, free: 23.05 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/13.45, allocations: 8.688 kB / 4.118 GB, free: 23.05 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/13.46, allocations: 0.914 MB / 4.119 GB, free: 22.81 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03997/13.5, allocations: 13.39 MB / 4.132 GB, free: 18.73 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004025/13.5, allocations: 198.9 kB / 4.132 GB, free: 18.64 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001314/13.5, allocations: 220.9 kB / 4.132 GB, free: 18.58 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01598/13.52, allocations: 3.917 MB / 4.136 GB, free: 16.93 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-05/13.52, allocations: 7.406 kB / 4.136 GB, free: 16.93 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005508/13.52, allocations: 103 kB / 4.136 GB, free: 16.86 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003272/13.52, allocations: 167.7 kB / 4.136 GB, free: 16.84 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0144/13.53, allocations: 3.597 MB / 4.14 GB, free: 15.76 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.03313/13.57, allocations: 16.69 MB / 4.156 GB, free: 15.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01277/13.58, allocations: 3.144 MB / 4.159 GB, free: 12.61 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004834/13.58, allocations: 1.351 MB / 4.16 GB, free: 11.26 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4726/14.06, allocations: 18.53 MB / 4.179 GB, free: 34.84 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008278/14.07, allocations: 1.855 MB / 4.18 GB, free: 34.72 MB / 490.7 MB Notification: Performance of pre-optimization done (n=188): time 6.903e-06/14.07, allocations: 2.781 kB / 4.18 GB, free: 34.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=208): time 0.04945/14.12, allocations: 10.1 MB / 4.19 GB, free: 33.92 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/14.12, allocations: 259.3 kB / 4.19 GB, free: 33.64 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003509/14.12, allocations: 1.625 MB / 4.192 GB, free: 33.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007286/14.12, allocations: 70.02 kB / 4.192 GB, free: 33.38 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001277/14.12, allocations: 1.049 MB / 4.193 GB, free: 33.04 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001307/14.12, allocations: 0.6962 MB / 4.194 GB, free: 32.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002834/14.12, allocations: 45.91 kB / 4.194 GB, free: 32.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/14.12, allocations: 400.8 kB / 4.194 GB, free: 32.39 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004378/14.13, allocations: 1.257 MB / 4.195 GB, free: 32.38 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005136/14.13, allocations: 1.82 MB / 4.197 GB, free: 31.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00528/14.14, allocations: 1.518 MB / 4.199 GB, free: 31.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.674e-05/14.14, allocations: 3.5 kB / 4.199 GB, free: 31.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.01419/14.15, allocations: 3.765 MB / 4.202 GB, free: 31.45 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004022/14.15, allocations: 0.5547 MB / 4.203 GB, free: 30.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.743e-05/14.15, allocations: 13.69 kB / 4.203 GB, free: 30.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002011/14.15, allocations: 351.6 kB / 4.203 GB, free: 30.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005128/14.16, allocations: 0.6038 MB / 4.204 GB, free: 30.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/14.16, allocations: 3.097 MB / 4.207 GB, free: 28.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005473/14.17, allocations: 332.1 kB / 4.207 GB, free: 28.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009485/14.17, allocations: 119.6 kB / 4.207 GB, free: 28.17 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/14.17, allocations: 9.328 kB / 4.207 GB, free: 28.16 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01233/14.18, allocations: 3.471 MB / 4.211 GB, free: 28.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.864e-05/14.18, allocations: 15.09 kB / 4.211 GB, free: 28.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001914/14.18, allocations: 350.2 kB / 4.211 GB, free: 27.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004905/14.19, allocations: 0.5975 MB / 4.212 GB, free: 27.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002442/14.19, allocations: 3.099 MB / 4.215 GB, free: 25.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005157/14.2, allocations: 326 kB / 4.215 GB, free: 25.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007635/14.2, allocations: 124.4 kB / 4.215 GB, free: 25.38 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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.00255/14.2, allocations: 0.7904 MB / 4.216 GB, free: 25.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007807/14.2, allocations: 224.5 kB / 4.216 GB, free: 25.01 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02152/14.22, allocations: 8.243 MB / 4.224 GB, free: 24.29 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001324/14.22, allocations: 94.31 kB / 4.224 GB, free: 24.29 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/14.22, allocations: 3.062 kB / 4.224 GB, free: 24.29 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01717/14.24, allocations: 7.154 MB / 4.231 GB, free: 23.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03228/14.27, allocations: 13.15 MB / 4.244 GB, free: 21.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.43e-05/14.27, allocations: 5.969 kB / 4.244 GB, free: 21.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003874/14.28, allocations: 485 kB / 4.245 GB, free: 21.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002944/14.28, allocations: 479.9 kB / 4.245 GB, free: 21.68 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006931/14.28, allocations: 81 kB / 4.245 GB, free: 21.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/14.28, allocations: 3.221 MB / 4.248 GB, free: 19.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/14.28, allocations: 13.56 kB / 4.248 GB, free: 19.08 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01925/14.3, allocations: 8.081 MB / 4.256 GB, free: 18.19 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002583/14.3, allocations: 0.7818 MB / 4.257 GB, free: 17.85 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000938/14.3, allocations: 68.36 kB / 4.257 GB, free: 17.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00391/14.31, allocations: 232.8 kB / 4.257 GB, free: 17.83 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008362/14.31, allocations: 196.5 kB / 4.257 GB, free: 17.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003885/14.31, allocations: 90.39 kB / 4.257 GB, free: 17.82 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002752/14.31, allocations: 1.184 MB / 4.259 GB, free: 17.68 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.72e-07/14.31, allocations: 0 / 4.259 GB, free: 17.68 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01435/14.33, allocations: 2.791 MB / 4.261 GB, free: 17.58 MB / 490.7 MB 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: 57 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (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.01622/14.34, allocations: 2.88 MB / 4.264 GB, free: 17.29 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01766/14.36, allocations: 5.834 MB / 4.27 GB, free: 16.94 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/14.36, allocations: 4.906 kB / 4.27 GB, free: 16.94 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007447/14.37, allocations: 2.984 MB / 4.273 GB, free: 16.79 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01089/14.38, allocations: 1.168 MB / 4.274 GB, free: 16.77 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2092/14.59, allocations: 81.98 MB / 4.354 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003552/14.59, allocations: 2.383 MB / 4.356 GB, free: 12.93 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008847/14.6, allocations: 2.521 MB / 4.359 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001465/14.6, allocations: 222.7 kB / 4.359 GB, free: 11.24 MB / 0.5105 GB Notification: Performance of SimCode: time 3.727e-06/14.6, allocations: 0 / 4.359 GB, free: 11.24 MB / 0.5105 GB Notification: Performance of Templates: time 0.6434/15.25, allocations: 93.03 MB / 4.45 GB, free: 65.67 MB / 0.5105 GB