Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0011/0.0011, 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.27/1.27, allocations: 170.6 MB / 183.8 MB, free: 11.48 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.001637/0.001637, allocations: 103.5 kB / 223.2 MB, free: 4.109 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.1607/0.1607, allocations: 38.01 MB / 300.4 MB, free: 5.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.261e-05/3.263e-05, allocations: 0 / 357 MB, free: 32.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1015, allocations: 48.7 MB / 405.7 MB, free: 15.64 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.7/6.802, allocations: 2.562 GB / 2.958 GB, free: 125.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/6.802, allocations: 76.28 kB / 2.958 GB, free: 125.8 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.91/9.712, allocations: 0.7789 GB / 3.737 GB, free: 18.93 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.753e-06/9.712, allocations: 4 kB / 3.737 GB, free: 18.93 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001658/9.712, allocations: 56.53 kB / 3.737 GB, free: 18.91 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: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.01241/9.725, allocations: 3.535 MB / 3.741 GB, free: 16.94 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/9.725, allocations: 14.03 kB / 3.741 GB, free: 16.94 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005721/9.731, allocations: 0.7526 MB / 3.741 GB, free: 16.75 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004885/9.735, allocations: 1.977 MB / 3.743 GB, free: 15.69 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/9.736, allocations: 160.4 kB / 3.744 GB, free: 15.55 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004425/9.736, allocations: 185.3 kB / 3.744 GB, free: 15.38 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006385/9.742, allocations: 3.312 MB / 3.747 GB, free: 12.55 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.797e-05/9.743, allocations: 7.938 kB / 3.747 GB, free: 12.54 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003399/9.743, allocations: 76.98 kB / 3.747 GB, free: 12.48 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001568/9.743, allocations: 144.5 kB / 3.747 GB, free: 12.36 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005476/9.749, allocations: 3.051 MB / 3.75 GB, free: 9.742 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.01434/9.763, allocations: 13.64 MB / 3.763 GB, free: 11.73 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004097/9.767, allocations: 1.96 MB / 3.765 GB, free: 9.762 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/9.768, allocations: 1.015 MB / 3.766 GB, free: 8.746 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3362/10.1, allocations: 18.85 MB / 3.785 GB, free: 30.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004573/10.11, allocations: 1.593 MB / 3.786 GB, free: 30.59 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001278/10.11, allocations: 169.5 kB / 3.786 GB, free: 30.59 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 4.939e-06/10.11, allocations: 0 / 3.786 GB, free: 30.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.01836/10.13, allocations: 6.859 MB / 3.793 GB, free: 29.81 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.343e-05/10.13, allocations: 254.2 kB / 3.793 GB, free: 29.53 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0018/10.13, allocations: 1.259 MB / 3.795 GB, free: 29.36 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002117/10.13, allocations: 58.05 kB / 3.795 GB, free: 29.33 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006447/10.13, allocations: 0.8763 MB / 3.796 GB, free: 29.05 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004692/10.13, allocations: 0.5446 MB / 3.796 GB, free: 28.78 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/10.13, allocations: 34.94 kB / 3.796 GB, free: 28.78 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/10.13, allocations: 384.4 kB / 3.796 GB, free: 28.47 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/10.13, allocations: 0.9079 MB / 3.797 GB, free: 28.47 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/10.14, allocations: 1.347 MB / 3.799 GB, free: 28.04 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001442/10.14, allocations: 1.155 MB / 3.8 GB, free: 27.95 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/10.14, allocations: 2.75 kB / 3.8 GB, free: 27.95 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005043/10.14, allocations: 2.933 MB / 3.803 GB, free: 27.68 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009717/10.14, allocations: 4.36 MB / 3.807 GB, free: 23.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/10.14, allocations: 9.562 kB / 3.807 GB, free: 23.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002235/10.15, allocations: 0.5271 MB / 3.807 GB, free: 23.04 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001849/10.15, allocations: 457.3 kB / 3.808 GB, free: 23.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/10.15, allocations: 2.691 MB / 3.811 GB, free: 20.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002735/10.15, allocations: 259 kB / 3.811 GB, free: 20.96 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003524/10.15, allocations: 97.62 kB / 3.811 GB, free: 20.96 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/10.15, allocations: 7.828 kB / 3.811 GB, free: 20.96 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004143/10.16, allocations: 2.566 MB / 3.813 GB, free: 20.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.311e-05/10.16, allocations: 11.25 kB / 3.813 GB, free: 20.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005531/10.16, allocations: 202.8 kB / 3.814 GB, free: 20.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/10.16, allocations: 468.2 kB / 3.814 GB, free: 20.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009069/10.16, allocations: 1.875 MB / 3.816 GB, free: 19.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002319/10.16, allocations: 253.6 kB / 3.816 GB, free: 19.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002589/10.16, allocations: 94.61 kB / 3.816 GB, free: 19.24 MB / 474.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 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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 () * 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.0006034/10.16, allocations: 298.3 kB / 3.816 GB, free: 19.06 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000557/10.16, allocations: 185.2 kB / 3.817 GB, free: 18.97 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009074/10.17, allocations: 7.364 MB / 3.824 GB, free: 18.29 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.533e-05/10.17, allocations: 78.78 kB / 3.824 GB, free: 18.29 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/10.17, allocations: 0 / 3.824 GB, free: 18.29 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006182/10.18, allocations: 6.433 MB / 3.83 GB, free: 17.34 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01482/10.19, allocations: 11.06 MB / 3.841 GB, free: 16.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/10.19, allocations: 6.734 kB / 3.841 GB, free: 16.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/10.19, allocations: 362.3 kB / 3.841 GB, free: 16.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002429/10.2, allocations: 1.275 MB / 3.843 GB, free: 16.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000199/10.2, allocations: 62.17 kB / 3.843 GB, free: 16.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002032/10.2, allocations: 3.19 MB / 3.846 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/10.2, allocations: 7.875 kB / 3.846 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008664/10.21, allocations: 7.153 MB / 3.853 GB, free: 12.79 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/10.21, allocations: 0.6995 MB / 3.853 GB, free: 12.47 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006794/10.21, allocations: 55.02 kB / 3.854 GB, free: 12.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001908/10.21, allocations: 185.7 kB / 3.854 GB, free: 12.46 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002921/10.21, allocations: 148.2 kB / 3.854 GB, free: 12.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/10.21, allocations: 75.34 kB / 3.854 GB, free: 12.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001889/10.21, allocations: 1.064 MB / 3.855 GB, free: 12.29 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.4e-07/10.21, allocations: 0 / 3.855 GB, free: 12.29 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009802/10.22, allocations: 2.536 MB / 3.857 GB, free: 12.18 MB / 474.7 MB 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: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.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.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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) * 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 (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.01126/10.24, allocations: 2.659 MB / 3.86 GB, free: 11.91 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007458/10.24, allocations: 4.528 MB / 3.864 GB, free: 11.58 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/10.24, allocations: 5.344 kB / 3.864 GB, free: 11.58 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003354/10.25, allocations: 2.379 MB / 3.867 GB, free: 11.44 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00542/10.25, allocations: 0.8381 MB / 3.868 GB, free: 11.41 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5058/10.76, allocations: 125.3 MB / 3.99 GB, free: 65.26 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001547/10.76, allocations: 2.171 MB / 3.992 GB, free: 64.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004711/10.76, allocations: 2.424 MB / 3.994 GB, free: 64.46 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005625/10.76, allocations: 157.3 kB / 3.995 GB, free: 64.46 MB / 0.4948 GB Notification: Performance of SimCode: time 3.456e-06/10.76, allocations: 0 / 3.995 GB, free: 64.46 MB / 0.4948 GB Notification: Performance of Templates: time 0.1119/10.88, allocations: 83.75 MB / 4.076 GB, free: 57.57 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1)