Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001088/0.001089, allocations: 169.8 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.399/1.399, allocations: 170.6 MB / 183.8 MB, free: 11.42 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.001588/0.001588, allocations: 106.8 kB / 223.2 MB, free: 4.051 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.1967/0.1967, allocations: 37.99 MB / 300.4 MB, free: 5.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.49e-05/3.516e-05, allocations: 4 kB / 357 MB, free: 32.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1093, allocations: 48.71 MB / 405.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.787/6.896, allocations: 2.566 GB / 2.963 GB, free: 45.14 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001884/6.897, allocations: 73.72 kB / 2.963 GB, free: 45.11 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.015/9.912, allocations: 0.8797 GB / 3.842 GB, free: 29.15 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.302e-06/9.912, allocations: 3.938 kB / 3.842 GB, free: 29.15 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000156/9.912, allocations: 71.69 kB / 3.842 GB, free: 29.13 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.0103/9.923, allocations: 3.822 MB / 3.846 GB, free: 27.04 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/9.923, allocations: 10.53 kB / 3.846 GB, free: 27.04 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005699/9.928, allocations: 0.8474 MB / 3.847 GB, free: 26.83 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004379/9.933, allocations: 2.085 MB / 3.849 GB, free: 25.88 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/9.933, allocations: 183.1 kB / 3.849 GB, free: 25.81 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003432/9.933, allocations: 200.3 kB / 3.849 GB, free: 25.76 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006044/9.939, allocations: 3.627 MB / 3.853 GB, free: 24.21 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.435e-05/9.939, allocations: 7.719 kB / 3.853 GB, free: 24.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002404/9.94, allocations: 87.97 kB / 3.853 GB, free: 24.15 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001579/9.94, allocations: 162.5 kB / 3.853 GB, free: 24.13 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006103/9.946, allocations: 3.196 MB / 3.856 GB, free: 23.12 MB / 474.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.01566/9.962, allocations: 15.43 MB / 3.871 GB, free: 11.34 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004341/9.966, allocations: 2.703 MB / 3.874 GB, free: 10.04 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00136/9.967, allocations: 1.124 MB / 3.875 GB, free: 9.613 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03177/9.999, allocations: 18.74 MB / 3.893 GB, free: 7.727 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004181/10, allocations: 1.693 MB / 3.895 GB, free: 6.391 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 4.368e-06/10, allocations: 0 / 3.895 GB, free: 6.391 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.2845/10.29, allocations: 7.7 MB / 3.903 GB, free: 45.42 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.95e-05/10.29, allocations: 262.4 kB / 3.903 GB, free: 45.14 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002178/10.29, allocations: 1.337 MB / 3.904 GB, free: 44.98 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004516/10.29, allocations: 64.58 kB / 3.904 GB, free: 44.95 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008109/10.29, allocations: 0.9763 MB / 3.905 GB, free: 44.86 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006713/10.29, allocations: 0.6218 MB / 3.906 GB, free: 44.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/10.29, allocations: 41.12 kB / 3.906 GB, free: 44.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/10.29, allocations: 388 kB / 3.906 GB, free: 44.29 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/10.29, allocations: 1.017 MB / 3.907 GB, free: 44.28 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001825/10.3, allocations: 1.497 MB / 3.909 GB, free: 43.77 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001895/10.3, allocations: 1.276 MB / 3.91 GB, free: 43.69 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.228e-05/10.3, allocations: 3.281 kB / 3.91 GB, free: 43.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.005766/10.3, allocations: 3.086 MB / 3.913 GB, free: 43.42 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001051/10.3, allocations: 5 MB / 3.918 GB, free: 38.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.117e-05/10.3, allocations: 11.91 kB / 3.918 GB, free: 38.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008893/10.31, allocations: 239 kB / 3.918 GB, free: 38.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002597/10.31, allocations: 0.5309 MB / 3.919 GB, free: 38.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/10.31, allocations: 2.433 MB / 3.921 GB, free: 36.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003166/10.31, allocations: 308.8 kB / 3.921 GB, free: 36.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006033/10.31, allocations: 105.5 kB / 3.921 GB, free: 36.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/10.31, allocations: 4.719 kB / 3.921 GB, free: 36.04 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005102/10.32, allocations: 2.833 MB / 3.924 GB, free: 35.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.846e-05/10.32, allocations: 10.44 kB / 3.924 GB, free: 35.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007194/10.32, allocations: 237.8 kB / 3.924 GB, free: 35.87 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002156/10.32, allocations: 0.5186 MB / 3.925 GB, free: 35.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/10.32, allocations: 2.428 MB / 3.927 GB, free: 33.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002563/10.32, allocations: 303.2 kB / 3.927 GB, free: 33.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002339/10.33, allocations: 104 kB / 3.928 GB, free: 33.79 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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 () * 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.0006624/10.33, allocations: 312.7 kB / 3.928 GB, free: 33.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003482/10.33, allocations: 203.9 kB / 3.928 GB, free: 33.51 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008838/10.34, allocations: 7.475 MB / 3.935 GB, free: 32.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.834e-05/10.34, allocations: 88.48 kB / 3.935 GB, free: 32.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/10.34, allocations: 0 / 3.935 GB, free: 32.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006255/10.34, allocations: 6.49 MB / 3.942 GB, free: 31.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01373/10.36, allocations: 12.06 MB / 3.954 GB, free: 30.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/10.36, allocations: 10.25 kB / 3.954 GB, free: 30.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001541/10.36, allocations: 429.2 kB / 3.954 GB, free: 30.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/10.36, allocations: 351.3 kB / 3.954 GB, free: 30.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001602/10.36, allocations: 68.77 kB / 3.954 GB, free: 30.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/10.36, allocations: 2.533 MB / 3.957 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/10.36, allocations: 6.375 kB / 3.957 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007345/10.37, allocations: 7.425 MB / 3.964 GB, free: 26.82 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001534/10.37, allocations: 0.7446 MB / 3.965 GB, free: 26.53 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004614/10.37, allocations: 58.89 kB / 3.965 GB, free: 26.53 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001647/10.37, allocations: 227 kB / 3.965 GB, free: 26.51 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002938/10.37, allocations: 177.5 kB / 3.965 GB, free: 26.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/10.37, allocations: 79.58 kB / 3.965 GB, free: 26.51 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001411/10.37, allocations: 1.122 MB / 3.966 GB, free: 26.35 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/10.37, allocations: 0 / 3.966 GB, free: 26.35 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009085/10.38, allocations: 2.714 MB / 3.969 GB, free: 26.24 MB / 490.7 MB 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: 54 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase) * 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 (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.009779/10.39, allocations: 2.834 MB / 3.972 GB, free: 25.96 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007669/10.4, allocations: 5.006 MB / 3.977 GB, free: 25.61 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/10.4, allocations: 3.844 kB / 3.977 GB, free: 25.61 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003465/10.4, allocations: 2.62 MB / 3.979 GB, free: 25.47 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004759/10.41, allocations: 0.9855 MB / 3.98 GB, free: 25.44 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4666/10.87, allocations: 125.7 MB / 4.103 GB, free: 57.36 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001406/10.88, allocations: 2.29 MB / 4.105 GB, free: 56.59 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004755/10.88, allocations: 2.541 MB / 4.108 GB, free: 56.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005796/10.88, allocations: 184.3 kB / 4.108 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of SimCode: time 8.72e-07/10.88, allocations: 0 / 4.108 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of Templates: time 0.1097/10.99, allocations: 89.88 MB / 4.196 GB, free: 48.49 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1)