Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002793/0.002793, allocations: 359.6 kB / 15.95 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.98/3.98, allocations: 388.9 MB / 405.6 MB, free: 10.31 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.005132/0.005131, allocations: 227.9 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5013/0.5013, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006651/0.0006654, allocations: 8 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1196, allocations: 54.87 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.288/8.408, allocations: 2.66 GB / 3.34 GB, free: 107 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/8.408, allocations: 89.36 kB / 3.34 GB, free: 107 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.575/12.98, allocations: 0.8547 GB / 4.195 GB, free: 35.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.348e-06/12.98, allocations: 0 / 4.195 GB, free: 35.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002999/12.98, allocations: 68.78 kB / 4.195 GB, free: 35.19 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01967/13, allocations: 4.299 MB / 4.199 GB, free: 33.04 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/13, allocations: 7.5 kB / 4.199 GB, free: 33.04 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009156/13.01, allocations: 0.8748 MB / 4.2 GB, free: 32.9 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03825/13.05, allocations: 13.51 MB / 4.213 GB, free: 31.69 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003441/13.05, allocations: 188.9 kB / 4.214 GB, free: 31.62 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001082/13.05, allocations: 198.4 kB / 4.214 GB, free: 31.56 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/13.07, allocations: 3.702 MB / 4.217 GB, free: 30.05 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-05/13.07, allocations: 7.781 kB / 4.217 GB, free: 30.04 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004827/13.07, allocations: 84.3 kB / 4.217 GB, free: 29.99 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003422/13.07, allocations: 166.4 kB / 4.218 GB, free: 29.96 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01355/13.08, allocations: 3.436 MB / 4.221 GB, free: 28.94 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.03159/13.11, allocations: 15.39 MB / 4.236 GB, free: 17.23 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00901/13.12, allocations: 2.262 MB / 4.238 GB, free: 16.54 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003564/13.12, allocations: 1.135 MB / 4.239 GB, free: 16.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05652/13.18, allocations: 18.9 MB / 4.258 GB, free: 1.523 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007179/13.19, allocations: 1.695 MB / 4.259 GB, free: 240 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=163): time 5.561e-06/13.19, allocations: 4 kB / 4.259 GB, free: 236 kB / 0.5105 GB Notification: Performance of matching and sorting (n=179): time 0.04946/13.24, allocations: 9.13 MB / 4.268 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001762/13.24, allocations: 256.6 kB / 4.269 GB, free: 9.039 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00413/13.24, allocations: 1.627 MB / 4.27 GB, free: 7.676 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006379/13.24, allocations: 57.7 kB / 4.27 GB, free: 7.613 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001562/13.24, allocations: 0.9928 MB / 4.271 GB, free: 6.688 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001265/13.25, allocations: 0.5982 MB / 4.272 GB, free: 6.094 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003043/13.25, allocations: 44 kB / 4.272 GB, free: 6.051 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000274/13.25, allocations: 386 kB / 4.272 GB, free: 5.668 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004314/13.25, allocations: 1.136 MB / 4.273 GB, free: 4.527 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005212/13.26, allocations: 1.602 MB / 4.275 GB, free: 2.734 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004966/13.26, allocations: 1.368 MB / 4.276 GB, free: 1.355 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-05/13.26, allocations: 4 kB / 4.276 GB, free: 1.352 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.4798/13.74, allocations: 3.282 MB / 4.279 GB, free: 50.13 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003185/13.74, allocations: 0.5172 MB / 4.28 GB, free: 49.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.496e-05/13.74, allocations: 13.75 kB / 4.28 GB, free: 49.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/13.74, allocations: 251.2 kB / 4.28 GB, free: 49.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004362/13.75, allocations: 0.5159 MB / 4.281 GB, free: 49.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/13.75, allocations: 2.438 MB / 4.283 GB, free: 47.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004331/13.75, allocations: 263.2 kB / 4.283 GB, free: 47.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008167/13.75, allocations: 108.7 kB / 4.283 GB, free: 47.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/13.75, allocations: 4.031 kB / 4.283 GB, free: 47.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01106/13.77, allocations: 3.013 MB / 4.286 GB, free: 47.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-05/13.77, allocations: 13.19 kB / 4.286 GB, free: 47.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/13.77, allocations: 253.1 kB / 4.287 GB, free: 47.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004457/13.77, allocations: 0.5105 MB / 4.287 GB, free: 47.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001908/13.77, allocations: 2.435 MB / 4.29 GB, free: 45.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004008/13.78, allocations: 271.2 kB / 4.29 GB, free: 45.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006492/13.78, allocations: 104.7 kB / 4.29 GB, free: 45.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (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_b.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002431/13.78, allocations: 0.7542 MB / 4.291 GB, free: 44.95 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007159/13.78, allocations: 213 kB / 4.291 GB, free: 44.95 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01849/13.8, allocations: 7.619 MB / 4.298 GB, free: 44.41 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001599/13.8, allocations: 85.16 kB / 4.298 GB, free: 44.41 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/13.8, allocations: 3.656 kB / 4.298 GB, free: 44.41 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01477/13.81, allocations: 6.648 MB / 4.305 GB, free: 43.51 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02514/13.84, allocations: 10.84 MB / 4.315 GB, free: 42.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.989e-05/13.84, allocations: 5.25 kB / 4.315 GB, free: 42.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003403/13.84, allocations: 407.4 kB / 4.316 GB, free: 42.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002305/13.85, allocations: 366 kB / 4.316 GB, free: 42.81 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005682/13.85, allocations: 62.89 kB / 4.316 GB, free: 42.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001707/13.85, allocations: 2.524 MB / 4.319 GB, free: 40.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/13.85, allocations: 0.75 kB / 4.319 GB, free: 40.73 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01803/13.87, allocations: 7.148 MB / 4.326 GB, free: 40.08 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002467/13.87, allocations: 0.7441 MB / 4.326 GB, free: 39.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009118/13.87, allocations: 51.03 kB / 4.326 GB, free: 39.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003515/13.87, allocations: 218.7 kB / 4.327 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006603/13.87, allocations: 145.9 kB / 4.327 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000293/13.87, allocations: 72.48 kB / 4.327 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002842/13.88, allocations: 1.207 MB / 4.328 GB, free: 39.66 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.21e-07/13.88, allocations: 2.625 kB / 4.328 GB, free: 39.66 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01364/13.89, allocations: 2.745 MB / 4.331 GB, free: 39.66 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,splitter.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 (200): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01594/13.91, allocations: 2.825 MB / 4.333 GB, free: 39.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01558/13.92, allocations: 5.322 MB / 4.339 GB, free: 39.15 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/13.92, allocations: 0 / 4.339 GB, free: 39.15 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005864/13.93, allocations: 2.474 MB / 4.341 GB, free: 39.01 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009356/13.94, allocations: 0.997 MB / 4.342 GB, free: 38.99 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2024/14.14, allocations: 81.64 MB / 4.422 GB, free: 29.23 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00271/14.14, allocations: 2.285 MB / 4.424 GB, free: 28.33 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007869/14.15, allocations: 2.438 MB / 4.426 GB, free: 28.21 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/14.15, allocations: 190.6 kB / 4.427 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of SimCode: time 1.192e-06/14.15, allocations: 0 / 4.427 GB, free: 28.2 MB / 0.5261 GB Notification: Performance of Templates: time 0.7196/14.87, allocations: 86.2 MB / 4.511 GB, free: 63.73 MB / 0.5417 GB