Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004158/0.004157, allocations: 361 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.919/3.919, allocations: 388.9 MB / 405.6 MB, free: 9.637 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.003489/0.003488, allocations: 233.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.5147/0.5147, allocations: 80.03 MB / 0.5627 GB, free: 19.75 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006654/0.0006656, allocations: 16 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09727/0.09798, allocations: 54.86 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.31/8.408, allocations: 2.677 GB / 3.357 GB, free: 113.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/8.409, allocations: 83.62 kB / 3.357 GB, free: 113.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639/13.05, allocations: 0.8588 GB / 4.216 GB, free: 35.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.815e-06/13.05, allocations: 0 / 4.216 GB, free: 35.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003423/13.05, allocations: 65.42 kB / 4.216 GB, free: 35.79 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.02005/13.07, allocations: 4.225 MB / 4.22 GB, free: 33.46 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/13.07, allocations: 6.219 kB / 4.22 GB, free: 33.46 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009502/13.08, allocations: 0.8811 MB / 4.221 GB, free: 33.25 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03876/13.12, allocations: 13.53 MB / 4.234 GB, free: 29.21 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002966/13.12, allocations: 180.1 kB / 4.234 GB, free: 29.14 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009451/13.12, allocations: 209.9 kB / 4.235 GB, free: 29.08 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/13.13, allocations: 3.665 MB / 4.238 GB, free: 27.55 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-05/13.13, allocations: 14.62 kB / 4.238 GB, free: 27.55 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004109/13.13, allocations: 90.34 kB / 4.238 GB, free: 27.49 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003161/13.13, allocations: 166.3 kB / 4.238 GB, free: 27.47 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01321/13.15, allocations: 3.341 MB / 4.242 GB, free: 26.48 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.02771/13.17, allocations: 15.44 MB / 4.257 GB, free: 11.54 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/13.18, allocations: 2.78 MB / 4.26 GB, free: 8.652 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006355/13.19, allocations: 1.247 MB / 4.261 GB, free: 7.406 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1073/13.3, allocations: 18.71 MB / 4.279 GB, free: 2.398 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007763/13.3, allocations: 1.729 MB / 4.281 GB, free: 0.6523 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=173): time 6.052e-06/13.31, allocations: 0 / 4.281 GB, free: 0.6523 MB / 0.5261 GB Notification: Performance of matching and sorting (n=189): time 0.6162/13.92, allocations: 9.013 MB / 4.29 GB, free: 51.36 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/13.92, allocations: 264 kB / 4.29 GB, free: 51.08 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003211/13.92, allocations: 1.525 MB / 4.291 GB, free: 50.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006533/13.93, allocations: 63.36 kB / 4.291 GB, free: 50.87 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001077/13.93, allocations: 0.9768 MB / 4.292 GB, free: 50.56 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001161/13.93, allocations: 0.6387 MB / 4.293 GB, free: 50.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/13.93, allocations: 38.84 kB / 4.293 GB, free: 50.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001699/13.93, allocations: 392.6 kB / 4.293 GB, free: 49.94 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003911/13.93, allocations: 1.136 MB / 4.294 GB, free: 49.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004858/13.94, allocations: 1.634 MB / 4.296 GB, free: 49.43 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004758/13.94, allocations: 1.383 MB / 4.297 GB, free: 49.35 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.6e-05/13.94, allocations: 5.562 kB / 4.297 GB, free: 49.35 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01221/13.95, allocations: 3.309 MB / 4.301 GB, free: 49.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004156/13.95, allocations: 0.5113 MB / 4.301 GB, free: 48.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.08e-05/13.95, allocations: 11.22 kB / 4.301 GB, free: 48.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001498/13.96, allocations: 247.2 kB / 4.301 GB, free: 48.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004634/13.96, allocations: 0.5345 MB / 4.302 GB, free: 48.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/13.96, allocations: 2.437 MB / 4.304 GB, free: 46.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004838/13.97, allocations: 299.4 kB / 4.305 GB, free: 46.37 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006637/13.97, allocations: 112.3 kB / 4.305 GB, free: 46.37 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/13.97, allocations: 6.594 kB / 4.305 GB, free: 46.37 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01097/13.98, allocations: 3.038 MB / 4.308 GB, free: 46.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.217e-05/13.98, allocations: 15.06 kB / 4.308 GB, free: 46.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/13.98, allocations: 253.3 kB / 4.308 GB, free: 46.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004549/13.99, allocations: 0.5193 MB / 4.308 GB, free: 46.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/13.99, allocations: 2.439 MB / 4.311 GB, free: 44.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004616/13.99, allocations: 308.6 kB / 4.311 GB, free: 44.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007763/13.99, allocations: 103.1 kB / 4.311 GB, free: 44.11 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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.002476/14, allocations: 0.7677 MB / 4.312 GB, free: 43.86 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007753/14, allocations: 207 kB / 4.312 GB, free: 43.75 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01906/14.01, allocations: 7.556 MB / 4.319 GB, free: 43.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/14.02, allocations: 84.23 kB / 4.32 GB, free: 43.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/14.02, allocations: 2.125 kB / 4.32 GB, free: 43.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01418/14.03, allocations: 6.574 MB / 4.326 GB, free: 42.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03019/14.06, allocations: 12.19 MB / 4.338 GB, free: 40.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.016e-05/14.06, allocations: 6.156 kB / 4.338 GB, free: 40.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003432/14.06, allocations: 428.3 kB / 4.338 GB, free: 40.65 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002418/14.07, allocations: 374.4 kB / 4.339 GB, free: 40.61 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006888/14.07, allocations: 72.06 kB / 4.339 GB, free: 40.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001783/14.07, allocations: 2.534 MB / 4.341 GB, free: 38.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/14.07, allocations: 12.55 kB / 4.341 GB, free: 38.53 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01747/14.09, allocations: 7.391 MB / 4.348 GB, free: 37.66 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002482/14.09, allocations: 0.7443 MB / 4.349 GB, free: 37.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009499/14.09, allocations: 61.94 kB / 4.349 GB, free: 37.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003696/14.09, allocations: 220.6 kB / 4.349 GB, free: 37.32 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007895/14.09, allocations: 176.6 kB / 4.35 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003009/14.09, allocations: 81.45 kB / 4.35 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002692/14.1, allocations: 1.131 MB / 4.351 GB, free: 37.17 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.182e-06/14.1, allocations: 0 / 4.351 GB, free: 37.17 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01322/14.11, allocations: 2.648 MB / 4.353 GB, free: 37.07 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.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 (212): * Single equations (assignments): 183 * 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.01516/14.13, allocations: 2.72 MB / 4.356 GB, free: 36.79 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01619/14.14, allocations: 5.374 MB / 4.361 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/14.14, allocations: 0 / 4.361 GB, free: 36.45 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006836/14.15, allocations: 2.753 MB / 4.364 GB, free: 36.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01041/14.16, allocations: 1.017 MB / 4.365 GB, free: 36.27 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2157/14.37, allocations: 81.86 MB / 4.445 GB, free: 19.98 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002497/14.38, allocations: 2.289 MB / 4.447 GB, free: 18.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007606/14.38, allocations: 2.369 MB / 4.449 GB, free: 16.79 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001403/14.39, allocations: 196.9 kB / 4.45 GB, free: 16.6 MB / 0.5261 GB Notification: Performance of SimCode: time 2.955e-06/14.39, allocations: 4 kB / 4.45 GB, free: 16.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.6263/15.01, allocations: 85.96 MB / 4.534 GB, free: 62.22 MB / 0.5417 GB