Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001871/0.00187, allocations: 157.5 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.571/1.571, allocations: 170.7 MB / 178.7 MB, free: 7.023 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001671/0.001671, allocations: 102.6 kB / 218 MB, free: 15.33 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2386/0.2386, allocations: 37.97 MB / 295.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.991e-05/1.99e-05, allocations: 4 kB / 350 MB, free: 32.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3572, allocations: 48.69 MB / 398.7 MB, free: 6.047 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.04/7.397, allocations: 2.545 GB / 2.935 GB, free: 67.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/7.397, allocations: 79.95 kB / 2.935 GB, free: 67.71 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.072/10.47, allocations: 0.834 GB / 3.769 GB, free: 23.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.653e-06/10.47, allocations: 3.469 kB / 3.769 GB, free: 23.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001851/10.47, allocations: 64.61 kB / 3.769 GB, free: 23.48 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01308/10.48, allocations: 3.69 MB / 3.772 GB, free: 21.65 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/10.48, allocations: 10.03 kB / 3.772 GB, free: 21.65 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005692/10.49, allocations: 0.7618 MB / 3.773 GB, free: 21.52 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004872/10.49, allocations: 1.933 MB / 3.775 GB, free: 21.08 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/10.49, allocations: 81.59 kB / 3.775 GB, free: 21.08 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003318/10.49, allocations: 108.1 kB / 3.775 GB, free: 21.08 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003531/10.5, allocations: 2.322 MB / 3.777 GB, free: 21.07 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003669/10.5, allocations: 2.548 MB / 3.78 GB, free: 20.61 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.027e-05/10.5, allocations: 11.91 kB / 3.78 GB, free: 20.61 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002023/10.5, allocations: 10.16 kB / 3.78 GB, free: 20.61 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001681/10.5, allocations: 141 kB / 3.78 GB, free: 20.61 MB / 458.7 MB 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.6098/11.11, allocations: 108.3 MB / 3.886 GB, free: 42.35 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002762/11.11, allocations: 1.407 MB / 3.887 GB, free: 42.32 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/11.12, allocations: 0.8608 MB / 3.888 GB, free: 42.31 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03044/11.15, allocations: 17.54 MB / 3.905 GB, free: 31.33 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00244/11.15, allocations: 1.087 MB / 3.906 GB, free: 31.18 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001602/11.15, allocations: 141.2 kB / 3.906 GB, free: 31.18 MB / 490.7 MB Notification: Performance of pre-optimization done (n=132): time 7.985e-06/11.15, allocations: 0 / 3.906 GB, free: 31.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=144): time 0.01995/11.17, allocations: 7.189 MB / 3.913 GB, free: 29.73 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.832e-05/11.17, allocations: 358.5 kB / 3.914 GB, free: 29.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001882/11.17, allocations: 1.07 MB / 3.915 GB, free: 29.16 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002327/11.17, allocations: 30.92 kB / 3.915 GB, free: 29.12 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008689/11.17, allocations: 0.9409 MB / 3.916 GB, free: 28.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000526/11.17, allocations: 475.8 kB / 3.916 GB, free: 28.56 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/11.17, allocations: 0 / 3.916 GB, free: 28.56 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/11.17, allocations: 377.7 kB / 3.916 GB, free: 28.26 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/11.18, allocations: 0.8907 MB / 3.917 GB, free: 28.26 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/11.18, allocations: 1.282 MB / 3.919 GB, free: 27.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/11.19, allocations: 2.655 MB / 3.921 GB, free: 27.79 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.851e-05/11.19, allocations: 6.938 kB / 3.921 GB, free: 27.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01537/11.2, allocations: 4.355 MB / 3.925 GB, free: 27.54 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001041/11.2, allocations: 4.313 MB / 3.93 GB, free: 23.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.448e-05/11.2, allocations: 14.12 kB / 3.93 GB, free: 23.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002039/11.21, allocations: 0.5299 MB / 3.93 GB, free: 23.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00195/11.21, allocations: 436.5 kB / 3.931 GB, free: 23.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002359/11.21, allocations: 2.939 MB / 3.933 GB, free: 20.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002705/11.21, allocations: 231.2 kB / 3.934 GB, free: 20.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004566/11.21, allocations: 96.02 kB / 3.934 GB, free: 20.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/11.21, allocations: 7.094 kB / 3.934 GB, free: 20.92 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01289/11.23, allocations: 3.806 MB / 3.938 GB, free: 20.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.15e-05/11.23, allocations: 13.55 kB / 3.938 GB, free: 20.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004649/11.23, allocations: 188.3 kB / 3.938 GB, free: 20.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/11.23, allocations: 459.2 kB / 3.938 GB, free: 20.78 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/11.23, allocations: 1.891 MB / 3.94 GB, free: 19.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002247/11.23, allocations: 212 kB / 3.94 GB, free: 19.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002749/11.23, allocations: 96.28 kB / 3.94 GB, free: 19.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,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.000649/11.23, allocations: 229.7 kB / 3.941 GB, free: 19.03 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005361/11.23, allocations: 173.2 kB / 3.941 GB, free: 18.94 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009396/11.24, allocations: 6.308 MB / 3.947 GB, free: 18.41 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-05/11.24, allocations: 63.22 kB / 3.947 GB, free: 18.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-05/11.24, allocations: 2.344 kB / 3.947 GB, free: 18.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006532/11.25, allocations: 5.329 MB / 3.952 GB, free: 17.67 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01291/11.26, allocations: 8.471 MB / 3.96 GB, free: 17.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/11.26, allocations: 0.75 kB / 3.96 GB, free: 17.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/11.26, allocations: 289.2 kB / 3.961 GB, free: 17.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002277/11.27, allocations: 1.493 MB / 3.962 GB, free: 17.08 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001696/11.27, allocations: 40.12 kB / 3.962 GB, free: 17.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002947/11.27, allocations: 3.702 MB / 3.966 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.846e-06/11.27, allocations: 3.328 kB / 3.966 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008632/11.28, allocations: 6.372 MB / 3.972 GB, free: 14.37 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/11.28, allocations: 0.6461 MB / 3.973 GB, free: 14.08 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006635/11.28, allocations: 19.39 kB / 3.973 GB, free: 14.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001777/11.28, allocations: 143.9 kB / 3.973 GB, free: 14.06 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/11.28, allocations: 119.1 kB / 3.973 GB, free: 14.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001478/11.28, allocations: 66.2 kB / 3.973 GB, free: 14.05 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00186/11.28, allocations: 0.9875 MB / 3.974 GB, free: 13.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/11.28, allocations: 0 / 3.974 GB, free: 13.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01333/11.3, allocations: 2.548 MB / 3.976 GB, free: 13.82 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (147): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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.01528/11.31, allocations: 3.042 MB / 3.979 GB, free: 13.38 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008434/11.32, allocations: 4.165 MB / 3.983 GB, free: 13.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/11.32, allocations: 0 / 3.983 GB, free: 13.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003058/11.33, allocations: 1.941 MB / 3.985 GB, free: 12.94 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004917/11.33, allocations: 0.7948 MB / 3.986 GB, free: 12.88 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009375/11.34, allocations: 4.938 MB / 3.991 GB, free: 11.69 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002226/11.34, allocations: 2.086 MB / 3.993 GB, free: 10.89 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005335/11.35, allocations: 2.382 MB / 3.995 GB, free: 10.79 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006702/11.35, allocations: 142.9 kB / 3.995 GB, free: 10.78 MB / 490.7 MB Notification: Performance of SimCode: time 1.403e-06/11.35, allocations: 0 / 3.995 GB, free: 10.78 MB / 490.7 MB Notification: Performance of Templates: time 0.4416/11.79, allocations: 70.69 MB / 4.064 GB, free: 69.11 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)