Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.BranchingPipes3,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.BranchingPipes3") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004161/0.004168, allocations: 347.2 kB / 15.93 MB, free: 6.219 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.496/3.496, allocations: 341.5 MB / 358.2 MB, free: 12.54 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.003573/0.003573, allocations: 222.1 kB / 397.9 MB, free: 4.887 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.4575/0.4575, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004836/0.000484, allocations: 12 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08724/0.08775, allocations: 48.71 MB / 0.6067 GB, free: 4.641 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.904/7.992, allocations: 2.563 GB / 3.169 GB, free: 95.95 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/7.992, allocations: 80.33 kB / 3.17 GB, free: 95.95 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.102/12.09, allocations: 0.8104 GB / 3.98 GB, free: 6.953 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.086e-06/12.09, allocations: 0 / 3.98 GB, free: 6.953 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003152/12.1, allocations: 59.12 kB / 3.98 GB, free: 6.898 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01955/12.11, allocations: 3.887 MB / 3.984 GB, free: 2.973 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.056e-05/12.11, allocations: 15.97 kB / 3.984 GB, free: 2.957 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008522/12.12, allocations: 0.7694 MB / 3.985 GB, free: 2.188 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4238/12.55, allocations: 13.15 MB / 3.997 GB, free: 27.12 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003208/12.55, allocations: 164 kB / 3.998 GB, free: 27.12 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009616/12.55, allocations: 185.6 kB / 3.998 GB, free: 27.12 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01166/12.56, allocations: 3.264 MB / 4.001 GB, free: 26.64 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.524e-05/12.56, allocations: 10.38 kB / 4.001 GB, free: 26.64 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000401/12.56, allocations: 83.12 kB / 4.001 GB, free: 26.63 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003296/12.56, allocations: 150 kB / 4.001 GB, free: 26.63 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/12.57, allocations: 2.932 MB / 4.004 GB, free: 26.61 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.027/12.6, allocations: 13.84 MB / 4.018 GB, free: 18.25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008337/12.61, allocations: 2.037 MB / 4.019 GB, free: 18.22 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003215/12.61, allocations: 1.107 MB / 4.021 GB, free: 18.21 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05662/12.67, allocations: 18.8 MB / 4.039 GB, free: 22.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006025/12.67, allocations: 1.579 MB / 4.04 GB, free: 22.28 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001709/12.68, allocations: 166 kB / 4.041 GB, free: 22.24 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 5.511e-06/12.68, allocations: 0 / 4.041 GB, free: 22.24 MB / 490.7 MB Notification: Performance of matching and sorting (n=163): time 0.03517/12.71, allocations: 8.167 MB / 4.049 GB, free: 21.25 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001873/12.71, allocations: 258.7 kB / 4.049 GB, free: 20.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002885/12.71, allocations: 1.431 MB / 4.05 GB, free: 20.79 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005433/12.72, allocations: 59.41 kB / 4.05 GB, free: 20.76 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009571/12.72, allocations: 0.8951 MB / 4.051 GB, free: 20.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008091/12.72, allocations: 0.5449 MB / 4.052 GB, free: 20.15 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001915/12.72, allocations: 36.78 kB / 4.052 GB, free: 20.15 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002167/12.72, allocations: 384.7 kB / 4.052 GB, free: 19.84 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004551/12.72, allocations: 1.007 MB / 4.053 GB, free: 19.84 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007063/12.73, allocations: 1.448 MB / 4.055 GB, free: 19.41 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006491/12.74, allocations: 1.25 MB / 4.056 GB, free: 19.32 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-05/12.74, allocations: 3.688 kB / 4.056 GB, free: 19.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01801/12.75, allocations: 3.13 MB / 4.059 GB, free: 19.06 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004964/12.75, allocations: 474 kB / 4.059 GB, free: 18.53 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.405e-05/12.75, allocations: 13.42 kB / 4.059 GB, free: 18.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006406/12.76, allocations: 0.5368 MB / 4.06 GB, free: 18.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005492/12.77, allocations: 456.3 kB / 4.06 GB, free: 18.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00442/12.77, allocations: 2.705 MB / 4.063 GB, free: 16.42 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006526/12.78, allocations: 263.8 kB / 4.063 GB, free: 16.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009897/12.78, allocations: 94.88 kB / 4.063 GB, free: 16.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/12.78, allocations: 6.844 kB / 4.063 GB, free: 16.41 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01511/12.79, allocations: 2.768 MB / 4.066 GB, free: 16.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.899e-05/12.79, allocations: 10.94 kB / 4.066 GB, free: 16.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001773/12.8, allocations: 208.4 kB / 4.066 GB, free: 16.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006/12.8, allocations: 467.5 kB / 4.067 GB, free: 16.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002597/12.8, allocations: 1.882 MB / 4.068 GB, free: 14.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006084/12.81, allocations: 260.6 kB / 4.069 GB, free: 14.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009098/12.81, allocations: 93.11 kB / 4.069 GB, free: 14.68 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 (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.003308/12.82, allocations: 0.7121 MB / 4.069 GB, free: 14.42 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009457/12.82, allocations: 196.4 kB / 4.07 GB, free: 14.32 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02046/12.84, allocations: 7.448 MB / 4.077 GB, free: 13.58 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-05/12.84, allocations: 86.92 kB / 4.077 GB, free: 13.58 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/12.84, allocations: 5.094 kB / 4.077 GB, free: 13.58 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01357/12.85, allocations: 6.525 MB / 4.083 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02767/12.88, allocations: 11.21 MB / 4.094 GB, free: 11.51 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.897e-05/12.88, allocations: 3.688 kB / 4.094 GB, free: 11.51 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002807/12.88, allocations: 359.7 kB / 4.095 GB, free: 11.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004226/12.89, allocations: 1.181 MB / 4.096 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005353/12.89, allocations: 65.39 kB / 4.096 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003418/12.89, allocations: 3.194 MB / 4.099 GB, free: 9.355 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.236e-06/12.89, allocations: 7.969 kB / 4.099 GB, free: 9.355 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/12.9, allocations: 7.159 MB / 4.106 GB, free: 8.516 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002191/12.91, allocations: 0.6944 MB / 4.107 GB, free: 8.199 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007002/12.91, allocations: 51.38 kB / 4.107 GB, free: 8.199 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002818/12.91, allocations: 190.8 kB / 4.107 GB, free: 8.188 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004653/12.91, allocations: 150.7 kB / 4.107 GB, free: 8.184 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/12.91, allocations: 75.06 kB / 4.107 GB, free: 8.184 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002413/12.91, allocations: 1.073 MB / 4.108 GB, free: 8.039 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.91e-07/12.91, allocations: 0 / 4.108 GB, free: 8.039 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01221/12.93, allocations: 2.458 MB / 4.111 GB, free: 7.945 MB / 490.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,$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 (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.01442/12.94, allocations: 2.596 MB / 4.113 GB, free: 7.59 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01319/12.95, allocations: 4.746 MB / 4.118 GB, free: 7.23 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/12.95, allocations: 3.031 kB / 4.118 GB, free: 7.23 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005765/12.96, allocations: 2.461 MB / 4.12 GB, free: 6.781 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008776/12.97, allocations: 0.9433 MB / 4.121 GB, free: 6.559 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6419/13.61, allocations: 82.97 MB / 4.202 GB, free: 53.63 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002592/13.61, allocations: 2.175 MB / 4.204 GB, free: 52.87 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007184/13.62, allocations: 2.254 MB / 4.206 GB, free: 52.85 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/13.62, allocations: 175.7 kB / 4.207 GB, free: 52.85 MB / 0.4948 GB Notification: Performance of SimCode: time 1.533e-06/13.62, allocations: 0 / 4.207 GB, free: 52.85 MB / 0.4948 GB Notification: Performance of Templates: time 0.1847/13.81, allocations: 81.28 MB / 4.286 GB, free: 48.46 MB / 0.4948 GB