Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.BranchingDynamicPipes.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.214/2.214, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.0003678, allocations: 12 kB / 264.1 MB, free: 3.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3063, allocations: 44.5 MB / 308.5 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.52/11.83, allocations: 3.671 GB / 3.972 GB, free: 20.63 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/11.83, allocations: 78.03 kB / 3.972 GB, free: 20.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.939/17.77, allocations: 0.9761 GB / 4.948 GB, free: 19.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.487e-06/17.77, allocations: 0 / 4.948 GB, free: 19.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006377/17.77, allocations: 162 kB / 4.948 GB, free: 19.38 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: 2025 * Number of variables: 2025 Notification: Performance of Generate backend data structure: time 0.0857/17.85, allocations: 10.51 MB / 4.959 GB, free: 14.72 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.357e-05/17.85, allocations: 8.031 kB / 4.959 GB, free: 14.71 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009687/17.86, allocations: 1.044 MB / 4.96 GB, free: 14.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01196/17.88, allocations: 0.8714 MB / 4.96 GB, free: 13.44 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03748/17.91, allocations: 5.732 MB / 4.966 GB, free: 9.758 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00137/17.91, allocations: 0.5261 MB / 4.966 GB, free: 9.246 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007663/17.92, allocations: 0.7272 MB / 4.967 GB, free: 8.539 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07213/17.99, allocations: 14.26 MB / 4.981 GB, free: 10.52 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006927/17.99, allocations: 19.81 kB / 4.981 GB, free: 10.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006959/18, allocations: 283 kB / 4.981 GB, free: 10.23 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001787/18, allocations: 0.7098 MB / 4.982 GB, free: 9.523 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.514/18.52, allocations: 16.94 MB / 4.999 GB, free: 32.4 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.155/18.67, allocations: 48.78 MB / 5.046 GB, free: 17.96 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03437/18.71, allocations: 11.07 MB / 5.057 GB, free: 17.86 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006679/18.71, allocations: 4.177 MB / 5.061 GB, free: 29.63 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003088/18.71, allocations: 152.8 kB / 5.061 GB, free: 29.58 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00995/18.72, allocations: 0.8881 MB / 5.062 GB, free: 29.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=926): time 5.648e-05/18.72, allocations: 2.062 kB / 5.062 GB, free: 29.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=1188): time 0.585/19.31, allocations: 99.98 MB / 5.16 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003725/19.31, allocations: 176.7 kB / 5.16 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009808/19.32, allocations: 3.302 MB / 5.163 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.004718/19.32, allocations: 241.7 kB / 5.163 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003146/19.33, allocations: 2.316 MB / 5.166 GB, free: 9.996 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.009364/19.34, allocations: 4.133 MB / 5.17 GB, free: 6.285 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004497/19.34, allocations: 228 kB / 5.17 GB, free: 6.062 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001455/19.34, allocations: 0.7659 MB / 5.171 GB, free: 5.426 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.06005/19.4, allocations: 11.65 MB / 5.182 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4691/19.87, allocations: 11.81 MB / 5.194 GB, free: 63.98 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04078/19.91, allocations: 11.51 MB / 5.205 GB, free: 63.85 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.385e-05/19.91, allocations: 7.516 kB / 5.205 GB, free: 63.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1441) (initialization): time 0.1417/20.06, allocations: 33.61 MB / 5.238 GB, free: 63.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002447/20.06, allocations: 10.95 MB / 5.248 GB, free: 52.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/20.06, allocations: 23.41 kB / 5.248 GB, free: 52.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6113/20.67, allocations: 87.13 MB / 5.334 GB, free: 20.63 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009309/20.68, allocations: 1.081 MB / 5.335 GB, free: 19.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5855/21.26, allocations: 39.79 MB / 5.373 GB, free: 58.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02746/21.29, allocations: 1.841 MB / 5.375 GB, free: 58.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005633/21.3, allocations: 0.6055 MB / 5.376 GB, free: 58.63 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/21.3, allocations: 4.594 kB / 5.376 GB, free: 58.63 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1296/21.43, allocations: 32.11 MB / 5.407 GB, free: 58.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001598/21.43, allocations: 25.75 kB / 5.407 GB, free: 58.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4931/21.92, allocations: 79.31 MB / 5.485 GB, free: 46.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009806/21.93, allocations: 1.129 MB / 5.486 GB, free: 45.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1225/22.05, allocations: 34.8 MB / 5.52 GB, free: 27.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02737/22.08, allocations: 1.812 MB / 5.522 GB, free: 26.26 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005202/22.09, allocations: 0.5876 MB / 5.522 GB, free: 25.76 MB / 0.4948 GB 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.01413/22.1, allocations: 2.598 MB / 5.525 GB, free: 23.65 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006096/22.11, allocations: 0.655 MB / 5.525 GB, free: 23.31 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1641/22.27, allocations: 30.81 MB / 5.555 GB, free: 14.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001011/22.27, allocations: 190.7 kB / 5.556 GB, free: 14.89 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.996e-05/22.27, allocations: 3.094 kB / 5.556 GB, free: 14.89 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.5433/22.81, allocations: 24.3 MB / 5.579 GB, free: 77.09 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1607/22.98, allocations: 44.52 MB / 5.623 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001866/22.98, allocations: 0 / 5.623 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03583/23.01, allocations: 3.419 MB / 5.626 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08444/23.1, allocations: 12.56 MB / 5.638 GB, free: 75.46 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00509/23.1, allocations: 0.6347 MB / 5.639 GB, free: 75.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07227/23.17, allocations: 44.82 MB / 5.683 GB, free: 44.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/23.17, allocations: 3.094 kB / 5.683 GB, free: 44.45 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1437/23.32, allocations: 38.56 MB / 5.72 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003313/23.32, allocations: 0.8037 MB / 5.721 GB, free: 23.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006519/23.33, allocations: 485.9 kB / 5.722 GB, free: 23.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02466/23.35, allocations: 1.485 MB / 5.723 GB, free: 22.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00516/23.36, allocations: 0.8028 MB / 5.724 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005019/23.36, allocations: 0.5653 MB / 5.724 GB, free: 21.36 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006752/23.37, allocations: 2.511 MB / 5.727 GB, free: 19.29 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.62e-07/23.37, allocations: 0 / 5.727 GB, free: 19.29 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.03947/23.41, allocations: 7.063 MB / 5.734 GB, free: 12.9 MB / 0.5105 GB 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.6432/24.05, allocations: 45.54 MB / 5.778 GB, free: 68.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.1485/24.2, allocations: 38.5 MB / 5.816 GB, free: 67.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.748e-05/24.2, allocations: 7.875 kB / 5.816 GB, free: 67.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0581/24.26, allocations: 14.15 MB / 5.83 GB, free: 66.82 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0297/24.29, allocations: 3.075 MB / 5.833 GB, free: 66.73 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1463/24.43, allocations: 63.1 MB / 5.894 GB, free: 31.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01336/24.45, allocations: 5.282 MB / 5.899 GB, free: 29.96 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.03319/24.48, allocations: 4.994 MB / 5.904 GB, free: 29.44 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01559/24.5, allocations: 3.651 MB / 5.908 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of SimCode: time 1.203e-06/24.5, allocations: 0 / 5.908 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.401/26.9, allocations: 491.7 MB / 6.388 GB, free: 94.21 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/26.9, allocations: 241.6 kB / 6.388 GB, free: 93.89 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.76/51.65, allocations: 4 kB / 6.388 GB, free: 93.88 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat does not exist to compare? outputFormat=mat