Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,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.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002795/0.002794, allocations: 362.2 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.852/3.852, allocations: 388.9 MB / 405.6 MB, free: 9.59 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.003573/0.003573, allocations: 239.3 kB / 451 MB, free: 145 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.7597/0.7597, allocations: 80.03 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007266/0.0007267, allocations: 15.98 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1271, allocations: 54.86 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.316/8.443, allocations: 2.656 GB / 3.337 GB, free: 104.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/8.443, allocations: 84.66 kB / 3.337 GB, free: 104.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.45/12.89, allocations: 0.8209 GB / 4.158 GB, free: 37.18 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.076e-06/12.89, allocations: 6.391 kB / 4.158 GB, free: 37.18 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002741/12.89, allocations: 61.3 kB / 4.158 GB, free: 37.17 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01894/12.91, allocations: 4.086 MB / 4.162 GB, free: 35.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/12.91, allocations: 10.12 kB / 4.162 GB, free: 35.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008185/12.92, allocations: 0.7823 MB / 4.162 GB, free: 35.08 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0386/12.96, allocations: 13.39 MB / 4.175 GB, free: 34.53 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003203/12.96, allocations: 163.7 kB / 4.176 GB, free: 34.52 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009822/12.96, allocations: 181.1 kB / 4.176 GB, free: 34.52 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01178/12.97, allocations: 3.313 MB / 4.179 GB, free: 34.05 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.211e-05/12.97, allocations: 2.438 kB / 4.179 GB, free: 34.05 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004033/12.97, allocations: 81.62 kB / 4.179 GB, free: 34.05 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002958/12.97, allocations: 147.8 kB / 4.179 GB, free: 34.05 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01178/12.99, allocations: 3.017 MB / 4.182 GB, free: 34.04 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.02896/13.01, allocations: 14.03 MB / 4.196 GB, free: 25.51 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/13.03, allocations: 2.023 MB / 4.198 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004861/13.03, allocations: 1.046 MB / 4.199 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1097/13.14, allocations: 18.9 MB / 4.217 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01354/13.15, allocations: 1.55 MB / 4.219 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001936/13.16, allocations: 169.5 kB / 4.219 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=146): time 1.184e-05/13.16, allocations: 0 / 4.219 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of matching and sorting (n=158): time 0.04943/13.2, allocations: 8.036 MB / 4.227 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001683/13.21, allocations: 268.3 kB / 4.227 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003181/13.21, allocations: 1.512 MB / 4.229 GB, free: 11.48 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005379/13.21, allocations: 58.83 kB / 4.229 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001129/13.21, allocations: 0.8991 MB / 4.23 GB, free: 11.08 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009435/13.21, allocations: 0.5291 MB / 4.23 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/13.21, allocations: 32.84 kB / 4.23 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002338/13.21, allocations: 377.2 kB / 4.23 GB, free: 10.44 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003318/13.21, allocations: 1.018 MB / 4.231 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003826/13.22, allocations: 1.431 MB / 4.233 GB, free: 9.578 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003861/13.22, allocations: 1.241 MB / 4.234 GB, free: 9.055 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.678e-05/13.22, allocations: 4.25 kB / 4.234 GB, free: 9.055 MB / 0.5105 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01134/13.23, allocations: 3.123 MB / 4.237 GB, free: 7.855 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003764/13.23, allocations: 475.8 kB / 4.238 GB, free: 7.262 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.203e-05/13.23, allocations: 11.53 kB / 4.238 GB, free: 7.262 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005111/13.24, allocations: 0.6153 MB / 4.238 GB, free: 7.129 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003638/13.24, allocations: 438.2 kB / 4.239 GB, free: 7.082 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003854/13.25, allocations: 2.832 MB / 4.241 GB, free: 20.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003899/13.25, allocations: 236.2 kB / 4.242 GB, free: 20.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006466/13.25, allocations: 92.67 kB / 4.242 GB, free: 20.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/13.25, allocations: 6.031 kB / 4.242 GB, free: 20.64 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009134/13.26, allocations: 2.732 MB / 4.244 GB, free: 19.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-05/13.26, allocations: 13.88 kB / 4.244 GB, free: 19.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/13.26, allocations: 211.6 kB / 4.245 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003816/13.27, allocations: 459 kB / 4.245 GB, free: 19.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/13.27, allocations: 1.874 MB / 4.247 GB, free: 17.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003541/13.27, allocations: 233.2 kB / 4.247 GB, free: 17.74 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004401/13.27, allocations: 94.56 kB / 4.247 GB, free: 17.72 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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_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,pipe3.state_b.phase,pipe2.state_b.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 (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.001927/13.27, allocations: 0.7158 MB / 4.248 GB, free: 17.25 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005828/13.27, allocations: 191.5 kB / 4.248 GB, free: 17.15 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01739/13.29, allocations: 7.441 MB / 4.255 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001513/13.29, allocations: 79.55 kB / 4.255 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/13.29, allocations: 0 / 4.255 GB, free: 12.01 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02017/13.31, allocations: 6.516 MB / 4.262 GB, free: 6.027 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03319/13.35, allocations: 10.32 MB / 4.272 GB, free: 13.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.057e-05/13.35, allocations: 7.938 kB / 4.272 GB, free: 13.15 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003865/13.35, allocations: 329 kB / 4.272 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007475/13.36, allocations: 1.373 MB / 4.273 GB, free: 11.72 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005744/13.36, allocations: 58.78 kB / 4.274 GB, free: 11.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005827/13.36, allocations: 3.469 MB / 4.277 GB, free: 8.312 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/13.36, allocations: 0 / 4.277 GB, free: 8.312 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02848/13.39, allocations: 7.243 MB / 4.284 GB, free: 1.797 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003355/13.4, allocations: 0.7031 MB / 4.285 GB, free: 1.164 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001375/13.4, allocations: 47.28 kB / 4.285 GB, free: 1.121 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005007/13.4, allocations: 187.4 kB / 4.285 GB, free: 0.9766 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000899/13.4, allocations: 128.6 kB / 4.285 GB, free: 0.9023 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004843/13.4, allocations: 69.94 kB / 4.285 GB, free: 0.8438 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.4912/13.9, allocations: 1.131 MB / 4.286 GB, free: 67.13 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.41e-07/13.9, allocations: 2.688 kB / 4.286 GB, free: 67.13 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01329/13.91, allocations: 2.572 MB / 4.289 GB, free: 67.13 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 55 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * 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 (164): * Single equations (assignments): 138 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01588/13.92, allocations: 2.707 MB / 4.291 GB, free: 67.01 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01386/13.94, allocations: 4.846 MB / 4.296 GB, free: 66.71 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/13.94, allocations: 2.219 kB / 4.296 GB, free: 66.71 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005762/13.94, allocations: 2.309 MB / 4.298 GB, free: 66.56 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008905/13.95, allocations: 0.9331 MB / 4.299 GB, free: 66.54 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2161/14.17, allocations: 81 MB / 4.378 GB, free: 59.85 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002554/14.17, allocations: 2.181 MB / 4.38 GB, free: 59.04 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006865/14.18, allocations: 2.169 MB / 4.383 GB, free: 58.97 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/14.18, allocations: 166.5 kB / 4.383 GB, free: 58.96 MB / 0.5417 GB Notification: Performance of SimCode: time 1.262e-06/14.18, allocations: 0 / 4.383 GB, free: 58.96 MB / 0.5417 GB Notification: Performance of Templates: time 0.1788/14.36, allocations: 82.74 MB / 4.464 GB, free: 25.07 MB / 0.5417 GB