Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes.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) 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(Modelica.Fluid.Examples.BranchingDynamicPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes") translateModel(Modelica.Fluid.Examples.BranchingDynamicPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007277/0.007277, allocations: 165.6 kB / 15.11 MB, free: 5.973 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.309/1.309, allocations: 170.8 MB / 186.6 MB, free: 1.035 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.001658/0.001658, allocations: 106 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003362/0.0003362, allocations: 12 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2287, allocations: 38.76 MB / 312.9 MB, free: 38.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.144/9.372, allocations: 3.665 GB / 3.97 GB, free: 49.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/9.373, allocations: 77.91 kB / 3.971 GB, free: 49.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.618/13.99, allocations: 0.9658 GB / 4.936 GB, free: 22.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.645e-06/13.99, allocations: 1.469 kB / 4.936 GB, free: 22.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001217/13.99, allocations: 165.3 kB / 4.937 GB, free: 22.71 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2025 * Number of variables: 2025 Notification: Performance of Generate backend data structure: time 0.05221/14.04, allocations: 10.5 MB / 4.947 GB, free: 18.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/14.04, allocations: 6.469 kB / 4.947 GB, free: 18.69 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008604/14.05, allocations: 0.8556 MB / 4.948 GB, free: 18.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02152/14.07, allocations: 5.727 MB / 4.953 GB, free: 17.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009592/14.08, allocations: 0.5293 MB / 4.954 GB, free: 17.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006413/14.08, allocations: 0.7285 MB / 4.954 GB, free: 17.47 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04436/14.13, allocations: 14.25 MB / 4.968 GB, free: 16.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005073/14.13, allocations: 26.95 kB / 4.968 GB, free: 16.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005983/14.13, allocations: 286.5 kB / 4.969 GB, free: 16.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009668/14.13, allocations: 0.7058 MB / 4.969 GB, free: 16.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03863/14.17, allocations: 16.95 MB / 4.986 GB, free: 16.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1133/14.29, allocations: 43.35 MB / 5.028 GB, free: 5.465 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02007/14.31, allocations: 11.07 MB / 5.039 GB, free: 1.582 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004706/14.31, allocations: 4.192 MB / 5.043 GB, free: 13.24 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002531/14.31, allocations: 148.4 kB / 5.043 GB, free: 13.12 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008705/14.32, allocations: 0.8776 MB / 5.044 GB, free: 12.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=926): time 3.332e-05/14.32, allocations: 0 / 5.044 GB, free: 12.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=1188): time 0.7456/15.07, allocations: 102.1 MB / 5.144 GB, free: 44.03 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001728/15.07, allocations: 173.6 kB / 5.144 GB, free: 43.96 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006635/15.07, allocations: 3.3 MB / 5.147 GB, free: 43.72 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00396/15.08, allocations: 241.2 kB / 5.148 GB, free: 43.69 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001995/15.08, allocations: 2.321 MB / 5.15 GB, free: 42.96 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006778/15.08, allocations: 4.132 MB / 5.154 GB, free: 40.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003714/15.09, allocations: 224.6 kB / 5.154 GB, free: 40.73 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001153/15.09, allocations: 0.7647 MB / 5.155 GB, free: 40.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02152/15.11, allocations: 10.44 MB / 5.165 GB, free: 40.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0249/15.14, allocations: 11.8 MB / 5.177 GB, free: 39.36 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02877/15.17, allocations: 11.52 MB / 5.188 GB, free: 39.23 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001276/15.17, allocations: 7.875 kB / 5.188 GB, free: 39.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=1441) (initialization): time 0.1005/15.27, allocations: 33.6 MB / 5.221 GB, free: 29.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002286/15.27, allocations: 10.95 MB / 5.231 GB, free: 18.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/15.27, allocations: 28.59 kB / 5.231 GB, free: 18.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.6079/15.88, allocations: 86.79 MB / 5.316 GB, free: 40.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005453/15.88, allocations: 1.083 MB / 5.317 GB, free: 40.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08944/15.97, allocations: 36.94 MB / 5.353 GB, free: 40.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01863/15.99, allocations: 1.847 MB / 5.355 GB, free: 40.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004892/15.99, allocations: 0.5991 MB / 5.356 GB, free: 40.01 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/15.99, allocations: 6.625 kB / 5.356 GB, free: 40.01 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.08286/16.08, allocations: 32.12 MB / 5.387 GB, free: 25.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001487/16.08, allocations: 27.69 kB / 5.387 GB, free: 25.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.627/16.7, allocations: 79.72 MB / 5.465 GB, free: 37.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006883/16.71, allocations: 1.139 MB / 5.466 GB, free: 37.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08529/16.8, allocations: 34.79 MB / 5.5 GB, free: 36.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0169/16.81, allocations: 1.812 MB / 5.502 GB, free: 36.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004904/16.82, allocations: 0.5891 MB / 5.502 GB, free: 36.59 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 114 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (604): * Single equations (assignments): 603 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {75 763} Notification: Performance of prepare postOptimizeDAE: time 0.01298/16.83, allocations: 2.601 MB / 5.505 GB, free: 36.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004991/16.84, allocations: 0.6511 MB / 5.505 GB, free: 36.41 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07886/16.92, allocations: 30.78 MB / 5.536 GB, free: 35.55 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001825/16.92, allocations: 125.8 kB / 5.536 GB, free: 35.55 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.563e-05/16.92, allocations: 2.062 kB / 5.536 GB, free: 35.55 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05944/16.98, allocations: 24.3 MB / 5.559 GB, free: 20.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4088/17.38, allocations: 44.9 MB / 5.603 GB, free: 52.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001153/17.38, allocations: 0 / 5.603 GB, free: 52.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01969/17.4, allocations: 3.41 MB / 5.607 GB, free: 52.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04595/17.45, allocations: 12.56 MB / 5.619 GB, free: 52.61 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005412/17.46, allocations: 0.6334 MB / 5.619 GB, free: 52.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0427/17.5, allocations: 44.84 MB / 5.663 GB, free: 23.23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/17.5, allocations: 0 / 5.663 GB, free: 23.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09605/17.59, allocations: 38.56 MB / 5.701 GB, free: 22.05 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003428/17.6, allocations: 0.8039 MB / 5.702 GB, free: 21.61 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006334/17.6, allocations: 482.1 kB / 5.702 GB, free: 21.61 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01614/17.62, allocations: 1.48 MB / 5.704 GB, free: 21.59 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00464/17.63, allocations: 0.8083 MB / 5.704 GB, free: 21.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004958/17.63, allocations: 0.5658 MB / 5.705 GB, free: 21.57 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005537/17.64, allocations: 2.51 MB / 5.707 GB, free: 21.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.8e-07/17.64, allocations: 0 / 5.707 GB, free: 21.43 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0379/17.67, allocations: 7.039 MB / 5.714 GB, free: 21.43 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 82 (pipe1.mediums[1].p,pipe1.mediums[1].Xi[1],pipe1.mediums[1].T,pipe1.mediums[2].p,pipe1.mediums[2].Xi[1],pipe1.mediums[2].T,pipe1.mediums[3].p,pipe1.mediums[3].Xi[1],pipe1.mediums[3].T,pipe1.mediums[4].p,pipe1.mediums[4].Xi[1],pipe1.mediums[4].T,pipe1.mediums[5].p,pipe1.mediums[5].Xi[1],pipe1.mediums[5].T,pipe1.flowModel.m_flows[1],pipe1.flowModel.m_flows[2],pipe1.flowModel.m_flows[3],pipe1.flowModel.m_flows[4],pipe1.flowModel.m_flows[5],pipe1.flowModel.m_flows[6],pipe2.mediums[1].p,pipe2.mediums[1].Xi[1],pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].Xi[1],pipe2.mediums[2].T,pipe2.mediums[3].p,pipe2.mediums[3].Xi[1],pipe2.mediums[3].T,pipe2.mediums[4].p,pipe2.mediums[4].Xi[1],pipe2.mediums[4].T,pipe2.mediums[5].p,pipe2.mediums[5].Xi[1],pipe2.mediums[5].T,pipe2.flowModel.m_flows[1],pipe2.flowModel.m_flows[2],pipe2.flowModel.m_flows[3],pipe2.flowModel.m_flows[4],pipe3.mediums[1].p,pipe3.mediums[1].Xi[1],pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].Xi[1],pipe3.mediums[2].T,pipe3.mediums[3].p,pipe3.mediums[3].Xi[1],pipe3.mediums[3].T,pipe3.mediums[4].p,pipe3.mediums[4].Xi[1],pipe3.mediums[4].T,pipe3.mediums[5].p,pipe3.mediums[5].Xi[1],pipe3.mediums[5].T,pipe3.flowModel.m_flows[1],pipe3.flowModel.m_flows[2],pipe3.flowModel.m_flows[3],pipe3.flowModel.m_flows[4],pipe3.flowModel.m_flows[5],pipe3.flowModel.m_flows[6],pipe4.mediums[1].p,pipe4.mediums[1].Xi[1],pipe4.mediums[1].T,pipe4.mediums[2].p,pipe4.mediums[2].Xi[1],pipe4.mediums[2].T,pipe4.mediums[3].p,pipe4.mediums[3].Xi[1],pipe4.mediums[3].T,pipe4.mediums[4].p,pipe4.mediums[4].Xi[1],pipe4.mediums[4].T,pipe4.mediums[5].p,pipe4.mediums[5].Xi[1],pipe4.mediums[5].T,pipe4.flowModel.m_flows[1],pipe4.flowModel.m_flows[2],pipe4.flowModel.m_flows[3],pipe4.flowModel.m_flows[4],pipe4.flowModel.m_flows[5],pipe4.flowModel.m_flows[6]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1169): * Single equations (assignments): 1122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 22 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 22 {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 20 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02128/17.7, allocations: 3.992 MB / 5.718 GB, free: 21.18 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.1072/17.8, allocations: 38.5 MB / 5.756 GB, free: 12.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.298e-05/17.8, allocations: 11.44 kB / 5.756 GB, free: 12.42 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0406/17.84, allocations: 14.14 MB / 5.77 GB, free: 1.121 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.335/18.18, allocations: 3.073 MB / 5.773 GB, free: 57.64 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07815/18.26, allocations: 35.94 MB / 5.808 GB, free: 47.46 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008131/18.26, allocations: 5.284 MB / 5.813 GB, free: 46.51 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.02294/18.29, allocations: 4.991 MB / 5.818 GB, free: 45.99 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006324/18.29, allocations: 0.8017 MB / 5.818 GB, free: 45.98 MB / 474.7 MB Notification: Performance of SimCode: time 1.022e-06/18.29, allocations: 0 / 5.818 GB, free: 45.98 MB / 474.7 MB Notification: Performance of Templates: time 1.657/19.95, allocations: 417.2 MB / 6.226 GB, free: 70.66 MB / 0.4949 GB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe 2>&1)