Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.059/2.059, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003611, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.103, allocations: 44.5 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.21/11.31, allocations: 3.671 GB / 3.972 GB, free: 105.9 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/11.31, allocations: 79.72 kB / 3.972 GB, free: 105.9 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.583/16.9, allocations: 0.9761 GB / 4.948 GB, free: 6.926 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.677e-06/16.9, allocations: 0 / 4.948 GB, free: 6.926 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007307/16.9, allocations: 166.3 kB / 4.948 GB, free: 6.766 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.06852/16.97, allocations: 10.5 MB / 4.958 GB, free: 12.24 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.11e-05/16.97, allocations: 12.03 kB / 4.958 GB, free: 12.23 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00819/16.97, allocations: 1.053 MB / 4.96 GB, free: 11.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009672/16.98, allocations: 0.8696 MB / 4.96 GB, free: 10.29 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0286/17.01, allocations: 5.725 MB / 4.966 GB, free: 4.504 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001125/17.01, allocations: 0.5322 MB / 4.966 GB, free: 3.969 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005929/17.02, allocations: 0.722 MB / 4.967 GB, free: 3.246 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4821/17.5, allocations: 14.25 MB / 4.981 GB, free: 25.41 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006451/17.5, allocations: 27.19 kB / 4.981 GB, free: 25.41 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007197/17.51, allocations: 287.6 kB / 4.981 GB, free: 25.41 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002298/17.51, allocations: 0.7074 MB / 4.982 GB, free: 25.39 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08469/17.6, allocations: 16.95 MB / 4.999 GB, free: 25.33 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.177/17.77, allocations: 48.78 MB / 5.046 GB, free: 26.86 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03291/17.81, allocations: 11.07 MB / 5.057 GB, free: 26.76 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006392/17.81, allocations: 4.184 MB / 5.061 GB, free: 22.53 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/17.81, allocations: 150.4 kB / 5.061 GB, free: 22.48 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009373/17.82, allocations: 0.8891 MB / 5.062 GB, free: 22.29 MB / 490.7 MB Notification: Performance of pre-optimization done (n=926): time 4.37e-05/17.82, allocations: 1.219 kB / 5.062 GB, free: 22.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=1188): time 1.011/18.83, allocations: 100.4 MB / 5.16 GB, free: 51.72 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001815/18.83, allocations: 178.8 kB / 5.16 GB, free: 51.64 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009304/18.84, allocations: 3.301 MB / 5.164 GB, free: 51.43 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.004782/18.85, allocations: 243 kB / 5.164 GB, free: 51.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002675/18.85, allocations: 2.145 MB / 5.166 GB, free: 51.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.008755/18.86, allocations: 4.135 MB / 5.17 GB, free: 48.75 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004632/18.86, allocations: 225.8 kB / 5.17 GB, free: 48.75 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001492/18.87, allocations: 0.7721 MB / 5.171 GB, free: 48.41 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.038/18.9, allocations: 10.44 MB / 5.181 GB, free: 48.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04041/18.94, allocations: 11.81 MB / 5.193 GB, free: 47.38 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04062/18.99, allocations: 11.51 MB / 5.204 GB, free: 47.25 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.464e-05/18.99, allocations: 7.688 kB / 5.204 GB, free: 47.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1441) (initialization): time 0.1312/19.12, allocations: 33.4 MB / 5.237 GB, free: 46.68 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00217/19.12, allocations: 9.972 MB / 5.246 GB, free: 36.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000142/19.12, allocations: 26.25 kB / 5.246 GB, free: 36.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.5193/19.64, allocations: 87.13 MB / 5.331 GB, free: 160 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01491/19.65, allocations: 1.414 MB / 5.333 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5787/20.23, allocations: 38.81 MB / 5.371 GB, free: 66.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02665/20.26, allocations: 1.843 MB / 5.373 GB, free: 66.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005421/20.26, allocations: 0.5997 MB / 5.373 GB, free: 66.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/20.26, allocations: 4.188 kB / 5.373 GB, free: 66.25 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1268/20.39, allocations: 32.12 MB / 5.404 GB, free: 65.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001623/20.39, allocations: 29.59 kB / 5.404 GB, free: 65.93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4518/20.84, allocations: 65.6 MB / 5.469 GB, free: 60.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009572/20.85, allocations: 1.131 MB / 5.47 GB, free: 60.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1208/20.97, allocations: 35.03 MB / 5.504 GB, free: 37.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02406/21, allocations: 1.812 MB / 5.506 GB, free: 36.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004943/21, allocations: 0.5824 MB / 5.506 GB, free: 35.58 MB / 0.5105 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.01405/21.02, allocations: 2.603 MB / 5.509 GB, free: 33.47 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005585/21.02, allocations: 0.6567 MB / 5.509 GB, free: 33.13 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5644/21.59, allocations: 32.01 MB / 5.541 GB, free: 64.02 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002238/21.59, allocations: 124.4 kB / 5.541 GB, free: 64.02 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.724e-05/21.59, allocations: 2.891 kB / 5.541 GB, free: 64.02 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1025/21.69, allocations: 24.3 MB / 5.564 GB, free: 63.29 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1734/21.86, allocations: 44.53 MB / 5.608 GB, free: 61.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000184/21.86, allocations: 0 / 5.608 GB, free: 61.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03464/21.9, allocations: 3.409 MB / 5.611 GB, free: 61.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08119/21.98, allocations: 12.56 MB / 5.624 GB, free: 61.65 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005244/21.99, allocations: 0.6318 MB / 5.624 GB, free: 61.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07031/22.06, allocations: 44.83 MB / 5.668 GB, free: 30.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/22.06, allocations: 3.125 kB / 5.668 GB, free: 30.84 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1399/22.2, allocations: 38.56 MB / 5.706 GB, free: 17.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003207/22.2, allocations: 0.8036 MB / 5.706 GB, free: 16.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006448/22.21, allocations: 486.2 kB / 5.707 GB, free: 16.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02433/22.23, allocations: 1.478 MB / 5.708 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00538/22.23, allocations: 0.8001 MB / 5.709 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005146/22.24, allocations: 0.5649 MB / 5.71 GB, free: 14.35 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006734/22.25, allocations: 2.506 MB / 5.712 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.71e-07/22.25, allocations: 9.562 kB / 5.712 GB, free: 12.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.04076/22.29, allocations: 7.058 MB / 5.719 GB, free: 5.883 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.705/22.99, allocations: 44.53 MB / 5.762 GB, free: 62.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.1466/23.14, allocations: 38.51 MB / 5.8 GB, free: 61.47 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.919e-05/23.14, allocations: 9.031 kB / 5.8 GB, free: 61.47 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.05882/23.2, allocations: 14.15 MB / 5.814 GB, free: 60.84 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02807/23.23, allocations: 3.07 MB / 5.817 GB, free: 60.75 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1558/23.38, allocations: 63.57 MB / 5.879 GB, free: 23.44 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01621/23.4, allocations: 5.283 MB / 5.884 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01647/23.42, allocations: 3.718 MB / 5.888 GB, free: 19.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.272e-06/23.42, allocations: 0 / 5.888 GB, free: 19.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.78/36.2, allocations: 0.8478 GB / 6.736 GB, free: 91.84 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat does not exist to compare? outputFormat=mat