Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00393/0.00393, allocations: 349.7 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.665/3.665, allocations: 341.5 MB / 358.2 MB, free: 12.65 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.003596/0.003596, allocations: 225.6 kB / 397.9 MB, free: 4.984 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.4926/0.4926, allocations: 76.08 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007351/0.0007355, allocations: 12 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1084, allocations: 48.7 MB / 0.6067 GB, free: 4.645 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.15/8.259, allocations: 2.545 GB / 3.152 GB, free: 85.63 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/8.259, allocations: 84.23 kB / 3.152 GB, free: 85.63 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098/12.36, allocations: 0.7445 GB / 3.897 GB, free: 24.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.176e-06/12.36, allocations: 3.594 kB / 3.897 GB, free: 24.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003228/12.36, allocations: 70.48 kB / 3.897 GB, free: 24.18 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: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.02135/12.38, allocations: 4.119 MB / 3.901 GB, free: 22.09 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/12.38, allocations: 7.312 kB / 3.901 GB, free: 22.09 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008699/12.39, allocations: 0.809 MB / 3.902 GB, free: 21.95 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02614/12.41, allocations: 8.204 MB / 3.91 GB, free: 21.42 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003218/12.41, allocations: 180.5 kB / 3.91 GB, free: 21.41 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001113/12.41, allocations: 193.7 kB / 3.91 GB, free: 21.41 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01335/12.43, allocations: 3.721 MB / 3.914 GB, free: 20.86 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.048e-05/12.43, allocations: 12.64 kB / 3.914 GB, free: 20.86 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004638/12.43, allocations: 86.55 kB / 3.914 GB, free: 20.86 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003084/12.43, allocations: 167.8 kB / 3.914 GB, free: 20.86 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01363/12.44, allocations: 3.532 MB / 3.917 GB, free: 20.82 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.03141/12.47, allocations: 14.71 MB / 3.932 GB, free: 12.13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008317/12.48, allocations: 2.203 MB / 3.934 GB, free: 12.09 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003464/12.49, allocations: 1.143 MB / 3.935 GB, free: 12.08 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05944/12.55, allocations: 18.84 MB / 3.953 GB, free: 15.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006862/12.55, allocations: 1.663 MB / 3.955 GB, free: 15.57 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001868/12.55, allocations: 191.8 kB / 3.955 GB, free: 15.48 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 6.913e-06/12.55, allocations: 3.969 kB / 3.955 GB, free: 15.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.04204/12.6, allocations: 9.074 MB / 3.964 GB, free: 12.99 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002479/12.6, allocations: 416.9 kB / 3.964 GB, free: 12.51 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003331/12.6, allocations: 1.688 MB / 3.966 GB, free: 11.89 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006048/12.6, allocations: 61.55 kB / 3.966 GB, free: 11.84 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/12.6, allocations: 0.9878 MB / 3.967 GB, free: 11.07 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009241/12.6, allocations: 0.577 MB / 3.968 GB, free: 10.56 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002426/12.6, allocations: 44 kB / 3.968 GB, free: 10.52 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000208/12.6, allocations: 383.4 kB / 3.968 GB, free: 10.16 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003514/12.61, allocations: 1.152 MB / 3.969 GB, free: 9.207 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004142/12.61, allocations: 1.634 MB / 3.971 GB, free: 7.602 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004106/12.62, allocations: 1.4 MB / 3.972 GB, free: 6.355 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.495e-05/12.62, allocations: 4 kB / 3.972 GB, free: 6.352 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01216/12.63, allocations: 3.533 MB / 3.976 GB, free: 3.242 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004717/12.63, allocations: 491.4 kB / 3.976 GB, free: 2.602 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-05/12.63, allocations: 19.52 kB / 3.976 GB, free: 2.586 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008765/12.64, allocations: 0.9857 MB / 3.977 GB, free: 1.867 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004129/12.64, allocations: 474.9 kB / 3.977 GB, free: 1.473 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004492/12.65, allocations: 3.163 MB / 3.98 GB, free: 14.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004245/12.65, allocations: 235.8 kB / 3.981 GB, free: 14.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006484/12.65, allocations: 107.3 kB / 3.981 GB, free: 14.15 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/12.65, allocations: 4 kB / 3.981 GB, free: 14.15 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01178/12.66, allocations: 3.203 MB / 3.984 GB, free: 11.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.846e-05/12.66, allocations: 15.84 kB / 3.984 GB, free: 11.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002298/12.66, allocations: 370.4 kB / 3.984 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004226/12.67, allocations: 493.3 kB / 3.985 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005984/12.68, allocations: 4.06 MB / 3.989 GB, free: 6.652 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003898/12.68, allocations: 239 kB / 3.989 GB, free: 6.465 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003922/12.68, allocations: 101.5 kB / 3.989 GB, free: 6.375 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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 (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002241/12.68, allocations: 0.7697 MB / 3.99 GB, free: 5.664 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007471/12.68, allocations: 205.5 kB / 3.99 GB, free: 5.461 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4117/13.09, allocations: 7.859 MB / 3.998 GB, free: 52 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001328/13.09, allocations: 82.8 kB / 3.998 GB, free: 52 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/13.09, allocations: 3.156 kB / 3.998 GB, free: 52 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01483/13.11, allocations: 6.889 MB / 4.005 GB, free: 51.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02509/13.13, allocations: 10.89 MB / 4.015 GB, free: 50.48 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.248e-05/13.13, allocations: 1 kB / 4.015 GB, free: 50.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002992/13.14, allocations: 348.8 kB / 4.015 GB, free: 50.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008587/13.15, allocations: 2.139 MB / 4.018 GB, free: 50.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006125/13.15, allocations: 66.2 kB / 4.018 GB, free: 50.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004971/13.15, allocations: 4.101 MB / 4.022 GB, free: 48.32 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/13.15, allocations: 0.5625 kB / 4.022 GB, free: 48.32 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01855/13.17, allocations: 7.968 MB / 4.029 GB, free: 47.83 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002355/13.17, allocations: 0.7413 MB / 4.03 GB, free: 47.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008467/13.17, allocations: 59.86 kB / 4.03 GB, free: 47.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003114/13.18, allocations: 193 kB / 4.03 GB, free: 47.69 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004943/13.18, allocations: 141.1 kB / 4.031 GB, free: 47.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002562/13.18, allocations: 70.02 kB / 4.031 GB, free: 47.69 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002871/13.18, allocations: 1.245 MB / 4.032 GB, free: 47.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.91e-07/13.18, allocations: 0 / 4.032 GB, free: 47.55 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01351/13.19, allocations: 2.693 MB / 4.034 GB, free: 47.55 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01544/13.21, allocations: 2.68 MB / 4.037 GB, free: 47.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01745/13.23, allocations: 5.466 MB / 4.042 GB, free: 46.84 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.024e-06/13.23, allocations: 0.7812 kB / 4.042 GB, free: 46.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006036/13.23, allocations: 2.377 MB / 4.045 GB, free: 46.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009039/13.24, allocations: 0.91 MB / 4.046 GB, free: 46.66 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.203/13.45, allocations: 81.06 MB / 4.125 GB, free: 36.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002904/13.45, allocations: 2.293 MB / 4.127 GB, free: 35.93 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007062/13.46, allocations: 2.196 MB / 4.129 GB, free: 35.86 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/13.46, allocations: 177.9 kB / 4.129 GB, free: 35.84 MB / 490.7 MB Notification: Performance of SimCode: time 1.283e-06/13.46, allocations: 0 / 4.129 GB, free: 35.84 MB / 490.7 MB Notification: Performance of Templates: time 0.6149/14.07, allocations: 86.62 MB / 4.214 GB, free: 51.38 MB / 490.7 MB