Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002309/0.002309, allocations: 181.9 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.767/1.767, allocations: 194.3 MB / 207.5 MB, free: 3.469 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002045/0.002045, allocations: 108.6 kB / 252.6 MB, free: 4.832 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2375/0.2375, allocations: 39.94 MB / 337.5 MB, free: 480 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.478e-05/4.48e-05, allocations: 4 kB / 400.3 MB, free: 69.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1418, allocations: 54.87 MB / 455.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.711/7.853, allocations: 2.656 GB / 3.101 GB, free: 77.62 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/7.854, allocations: 75.95 kB / 3.101 GB, free: 77.55 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.676/11.53, allocations: 0.8625 GB / 3.963 GB, free: 35.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.665e-06/11.53, allocations: 1.156 kB / 3.963 GB, free: 35.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003736/11.53, allocations: 60.3 kB / 3.963 GB, free: 35.19 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.02594/11.56, allocations: 3.821 MB / 3.967 GB, free: 33.52 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 8.095e-05/11.56, allocations: 16.69 kB / 3.967 GB, free: 33.52 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01029/11.57, allocations: 0.7762 MB / 3.968 GB, free: 33.39 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/11.58, allocations: 1.954 MB / 3.97 GB, free: 32.96 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005041/11.58, allocations: 165.8 kB / 3.97 GB, free: 32.95 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001417/11.58, allocations: 179.6 kB / 3.97 GB, free: 32.95 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01707/11.6, allocations: 3.274 MB / 3.973 GB, free: 32.49 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002282/11.6, allocations: 5.406 kB / 3.973 GB, free: 32.49 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001177/11.6, allocations: 83.72 kB / 3.974 GB, free: 32.49 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004635/11.6, allocations: 146.9 kB / 3.974 GB, free: 32.48 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01274/11.61, allocations: 2.903 MB / 3.976 GB, free: 32.47 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.0287/11.64, allocations: 14.06 MB / 3.99 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004983/11.65, allocations: 1.951 MB / 3.992 GB, free: 23.94 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001711/11.65, allocations: 0.9543 MB / 3.993 GB, free: 23.93 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03724/11.68, allocations: 18.96 MB / 4.012 GB, free: 28.09 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005626/11.69, allocations: 1.559 MB / 4.013 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00239/11.69, allocations: 160.8 kB / 4.013 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=146): time 1.434e-05/11.69, allocations: 0 / 4.013 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158): time 0.0209/11.71, allocations: 6.744 MB / 4.02 GB, free: 26.96 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001769/11.71, allocations: 256.6 kB / 4.02 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003753/11.72, allocations: 1.329 MB / 4.021 GB, free: 26.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004095/11.72, allocations: 56.3 kB / 4.021 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001489/11.72, allocations: 0.9034 MB / 4.022 GB, free: 26.09 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009671/11.72, allocations: 0.5304 MB / 4.023 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000291/11.72, allocations: 35.84 kB / 4.023 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003416/11.72, allocations: 380.1 kB / 4.023 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00213/11.72, allocations: 0.9233 MB / 4.024 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002655/11.73, allocations: 1.326 MB / 4.025 GB, free: 25.01 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002189/11.73, allocations: 1.151 MB / 4.027 GB, free: 24.93 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/11.73, allocations: 0 / 4.027 GB, free: 24.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.005717/11.73, allocations: 2.92 MB / 4.029 GB, free: 24.65 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002156/11.74, allocations: 4.369 MB / 4.034 GB, free: 20.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.302e-05/11.74, allocations: 10.34 kB / 4.034 GB, free: 20.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002651/11.74, allocations: 0.5922 MB / 4.034 GB, free: 20.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001918/11.74, allocations: 441.1 kB / 4.035 GB, free: 20.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/11.74, allocations: 2.822 MB / 4.037 GB, free: 17.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002921/11.75, allocations: 241.4 kB / 4.038 GB, free: 17.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002308/11.75, allocations: 89.14 kB / 4.038 GB, free: 17.93 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/11.75, allocations: 3.625 kB / 4.038 GB, free: 17.93 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00427/11.75, allocations: 2.528 MB / 4.04 GB, free: 17.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.063e-05/11.75, allocations: 10.97 kB / 4.04 GB, free: 17.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006349/11.75, allocations: 195.2 kB / 4.04 GB, free: 17.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/11.75, allocations: 457.4 kB / 4.041 GB, free: 17.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001582/11.76, allocations: 1.876 MB / 4.043 GB, free: 16.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002895/11.76, allocations: 235.4 kB / 4.043 GB, free: 16.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002123/11.76, allocations: 95.92 kB / 4.043 GB, free: 16.2 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 () * 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.0007484/11.76, allocations: 288.2 kB / 4.043 GB, free: 16.02 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003799/11.76, allocations: 197 kB / 4.043 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008262/11.77, allocations: 7.338 MB / 4.051 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.506e-05/11.77, allocations: 79.86 kB / 4.051 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/11.77, allocations: 2.906 kB / 4.051 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006472/11.77, allocations: 6.431 MB / 4.057 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/11.79, allocations: 10.21 MB / 4.067 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/11.79, allocations: 0 / 4.067 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001289/11.79, allocations: 329.6 kB / 4.067 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003124/11.79, allocations: 1.593 MB / 4.069 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001958/11.79, allocations: 60.59 kB / 4.069 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002776/11.79, allocations: 3.474 MB / 4.072 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/11.79, allocations: 2 kB / 4.072 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008485/11.8, allocations: 6.947 MB / 4.079 GB, free: 10.87 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001979/11.81, allocations: 0.7056 MB / 4.08 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003946/11.81, allocations: 46.47 kB / 4.08 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/11.81, allocations: 190.2 kB / 4.08 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002637/11.81, allocations: 132.4 kB / 4.08 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/11.81, allocations: 67.73 kB / 4.08 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001695/11.81, allocations: 1.125 MB / 4.081 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.3e-07/11.81, allocations: 0 / 4.081 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01217/11.82, allocations: 2.695 MB / 4.084 GB, free: 9.961 MB / 0.5261 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) * 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.01464/11.84, allocations: 2.866 MB / 4.087 GB, free: 9.312 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008278/11.84, allocations: 4.659 MB / 4.091 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/11.84, allocations: 3.906 kB / 4.091 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002961/11.85, allocations: 2.22 MB / 4.093 GB, free: 6.512 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005028/11.85, allocations: 0.8993 MB / 4.094 GB, free: 6.324 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6181/12.47, allocations: 127.9 MB / 4.219 GB, free: 56.13 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001503/12.47, allocations: 2.175 MB / 4.221 GB, free: 55.33 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.004941/12.48, allocations: 2.349 MB / 4.224 GB, free: 55.23 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004821/12.48, allocations: 147.6 kB / 4.224 GB, free: 55.23 MB / 0.5417 GB Notification: Performance of SimCode: time 2.916e-06/12.48, allocations: 0 / 4.224 GB, free: 55.23 MB / 0.5417 GB Notification: Performance of Templates: time 0.1244/12.6, allocations: 87.37 MB / 4.309 GB, free: 24.03 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)