Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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.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.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004088/0.004095, allocations: 363.5 kB / 15.95 MB, free: 6.203 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.763/3.763, allocations: 388.9 MB / 405.6 MB, free: 9.645 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.003574/0.003574, allocations: 232 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.4978/0.4978, allocations: 80.02 MB / 0.5627 GB, free: 19.76 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004943/0.0004944, allocations: 8 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1022, allocations: 54.87 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.4/8.502, allocations: 2.673 GB / 3.353 GB, free: 113.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003364/8.502, allocations: 83.05 kB / 3.353 GB, free: 113.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.663/13.17, allocations: 0.8262 GB / 4.18 GB, free: 37.67 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.085e-06/13.17, allocations: 0 / 4.18 GB, free: 37.67 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003253/13.17, allocations: 60.48 kB / 4.18 GB, free: 37.66 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.02088/13.19, allocations: 4.014 MB / 4.184 GB, free: 35.64 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/13.19, allocations: 8.812 kB / 4.184 GB, free: 35.64 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00849/13.2, allocations: 0.7863 MB / 4.184 GB, free: 35.52 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03714/13.23, allocations: 13.42 MB / 4.198 GB, free: 34.92 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002985/13.23, allocations: 160.8 kB / 4.198 GB, free: 34.92 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008666/13.23, allocations: 182.9 kB / 4.198 GB, free: 34.92 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01118/13.25, allocations: 3.277 MB / 4.201 GB, free: 34.41 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.352e-05/13.25, allocations: 11.47 kB / 4.201 GB, free: 34.41 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003965/13.25, allocations: 80.42 kB / 4.201 GB, free: 34.41 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002844/13.25, allocations: 147.9 kB / 4.201 GB, free: 34.41 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/13.26, allocations: 2.946 MB / 4.204 GB, free: 34.36 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.02514/13.28, allocations: 13.87 MB / 4.218 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007695/13.29, allocations: 2.024 MB / 4.22 GB, free: 25.22 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003319/13.29, allocations: 1.123 MB / 4.221 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05684/13.35, allocations: 18.83 MB / 4.239 GB, free: 12.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006358/13.36, allocations: 1.593 MB / 4.241 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001779/13.36, allocations: 168.2 kB / 4.241 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.502e-06/13.36, allocations: 0 / 4.241 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.03639/13.4, allocations: 8.183 MB / 4.249 GB, free: 8.398 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001802/13.4, allocations: 260.2 kB / 4.249 GB, free: 8.113 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00287/13.4, allocations: 1.441 MB / 4.251 GB, free: 7.07 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006421/13.4, allocations: 53.7 kB / 4.251 GB, free: 7.012 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009855/13.4, allocations: 0.8962 MB / 4.251 GB, free: 6.191 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000877/13.4, allocations: 0.5578 MB / 4.252 GB, free: 5.688 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/13.4, allocations: 36 kB / 4.252 GB, free: 5.652 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002184/13.4, allocations: 375.5 kB / 4.252 GB, free: 5.301 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003149/13.4, allocations: 1.017 MB / 4.253 GB, free: 4.453 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003702/13.41, allocations: 1.453 MB / 4.255 GB, free: 3.035 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00379/13.41, allocations: 1.26 MB / 4.256 GB, free: 1.906 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/13.41, allocations: 7.953 kB / 4.256 GB, free: 1.898 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01461/13.43, allocations: 3.301 MB / 4.259 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004474/13.43, allocations: 489.4 kB / 4.26 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/13.43, allocations: 8 kB / 4.26 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004677/13.43, allocations: 0.5361 MB / 4.26 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003979/13.44, allocations: 458.8 kB / 4.261 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003274/13.44, allocations: 2.698 MB / 4.263 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004488/13.44, allocations: 263 kB / 4.264 GB, free: 11.37 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006768/13.44, allocations: 98.41 kB / 4.264 GB, free: 11.28 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/13.44, allocations: 4.938 kB / 4.264 GB, free: 11.28 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009627/13.45, allocations: 2.753 MB / 4.266 GB, free: 8.867 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.981e-05/13.45, allocations: 12 kB / 4.266 GB, free: 8.855 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/13.46, allocations: 207 kB / 4.267 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004022/13.46, allocations: 465.9 kB / 4.267 GB, free: 8.301 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001825/13.46, allocations: 1.88 MB / 4.269 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004198/13.47, allocations: 267.7 kB / 4.269 GB, free: 6.215 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000617/13.47, allocations: 99.39 kB / 4.269 GB, free: 6.129 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 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.002182/13.47, allocations: 0.7207 MB / 4.27 GB, free: 5.461 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000683/13.47, allocations: 193.7 kB / 4.27 GB, free: 5.27 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4628/13.93, allocations: 7.467 MB / 4.277 GB, free: 51.01 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001248/13.93, allocations: 83.47 kB / 4.277 GB, free: 51.01 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/13.93, allocations: 0 / 4.277 GB, free: 51.01 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01346/13.95, allocations: 6.514 MB / 4.284 GB, free: 50.11 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02775/13.97, allocations: 11.21 MB / 4.295 GB, free: 49.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.428e-05/13.97, allocations: 3.156 kB / 4.295 GB, free: 49.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00286/13.98, allocations: 357.6 kB / 4.295 GB, free: 49.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004575/13.98, allocations: 1.178 MB / 4.296 GB, free: 49.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005652/13.98, allocations: 67.45 kB / 4.296 GB, free: 49.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003154/13.99, allocations: 3.207 MB / 4.299 GB, free: 46.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/13.99, allocations: 5.688 kB / 4.299 GB, free: 46.98 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/14, allocations: 7.167 MB / 4.306 GB, free: 46.31 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002347/14, allocations: 0.711 MB / 4.307 GB, free: 46.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000909/14.01, allocations: 50.78 kB / 4.307 GB, free: 46.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003233/14.01, allocations: 189.5 kB / 4.307 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006337/14.01, allocations: 152.4 kB / 4.308 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003154/14.01, allocations: 73.83 kB / 4.308 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002554/14.01, allocations: 1.073 MB / 4.309 GB, free: 46.01 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.31e-07/14.01, allocations: 0 / 4.309 GB, free: 46.01 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0124/14.02, allocations: 2.48 MB / 4.311 GB, free: 46.01 MB / 0.5261 GB 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: 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 (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.01472/14.04, allocations: 2.612 MB / 4.314 GB, free: 45.86 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01373/14.05, allocations: 4.861 MB / 4.318 GB, free: 45.55 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.586e-05/14.05, allocations: 3.5 kB / 4.318 GB, free: 45.55 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005983/14.06, allocations: 2.513 MB / 4.321 GB, free: 45.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009411/14.07, allocations: 0.9437 MB / 4.322 GB, free: 45.38 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2137/14.28, allocations: 81.17 MB / 4.401 GB, free: 39.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002987/14.29, allocations: 2.192 MB / 4.403 GB, free: 38.3 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007047/14.29, allocations: 2.264 MB / 4.405 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001162/14.29, allocations: 175 kB / 4.406 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of SimCode: time 1.763e-06/14.29, allocations: 0 / 4.406 GB, free: 38.21 MB / 0.5261 GB Notification: Performance of Templates: time 0.6295/14.92, allocations: 81.79 MB / 4.485 GB, free: 67 MB / 0.5417 GB