Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005331/0.0005334, allocations: 8 kB / 233.3 MB, free: 0.8398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08784/0.08842, allocations: 38.76 MB / 272.1 MB, free: 9.996 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.1/11.19, allocations: 3.665 GB / 3.931 GB, free: 64.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/11.19, allocations: 77.41 kB / 3.931 GB, free: 64.85 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.025/17.22, allocations: 0.9658 GB / 4.897 GB, free: 24.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.757e-06/17.22, allocations: 1.625 kB / 4.897 GB, free: 24.05 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008503/17.22, allocations: 160.8 kB / 4.897 GB, free: 24.04 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.06802/17.29, allocations: 10.51 MB / 4.907 GB, free: 20.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/17.29, allocations: 7.031 kB / 4.907 GB, free: 20.05 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007734/17.29, allocations: 1.043 MB / 4.908 GB, free: 19.97 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009881/17.3, allocations: 0.862 MB / 4.909 GB, free: 19.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02813/17.33, allocations: 5.722 MB / 4.914 GB, free: 18.79 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001092/17.33, allocations: 0.5279 MB / 4.915 GB, free: 18.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006079/17.34, allocations: 0.7268 MB / 4.916 GB, free: 18.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05282/17.39, allocations: 14.26 MB / 4.93 GB, free: 18.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006481/17.39, allocations: 31 kB / 4.93 GB, free: 18.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005707/17.4, allocations: 291.4 kB / 4.93 GB, free: 18.06 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001185/17.4, allocations: 0.706 MB / 4.931 GB, free: 18.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05358/17.45, allocations: 16.94 MB / 4.947 GB, free: 17.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.144/17.6, allocations: 43.34 MB / 4.989 GB, free: 8.105 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03306/17.63, allocations: 11.08 MB / 5 GB, free: 4.223 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005603/17.64, allocations: 4.183 MB / 5.004 GB, free: 15.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/17.64, allocations: 152.7 kB / 5.005 GB, free: 15.77 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009961/17.65, allocations: 0.8833 MB / 5.005 GB, free: 15.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=926): time 3.517e-05/17.65, allocations: 0 / 5.005 GB, free: 15.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=1188): time 1.003/18.65, allocations: 102.3 MB / 5.105 GB, free: 33.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/18.65, allocations: 174.7 kB / 5.105 GB, free: 33.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009491/18.66, allocations: 3.306 MB / 5.109 GB, free: 33.47 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.005301/18.66, allocations: 243.4 kB / 5.109 GB, free: 33.44 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002382/18.67, allocations: 2.14 MB / 5.111 GB, free: 32.65 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.008554/18.67, allocations: 4.135 MB / 5.115 GB, free: 30.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004578/18.68, allocations: 227.2 kB / 5.115 GB, free: 30.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001381/18.68, allocations: 0.7727 MB / 5.116 GB, free: 29.99 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03734/18.72, allocations: 10.44 MB / 5.126 GB, free: 29.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03918/18.76, allocations: 11.81 MB / 5.138 GB, free: 28.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04004/18.8, allocations: 11.51 MB / 5.149 GB, free: 28.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-05/18.8, allocations: 9.406 kB / 5.149 GB, free: 28.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=1441) (initialization): time 0.1326/18.93, allocations: 33.4 MB / 5.182 GB, free: 9.727 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002559/18.93, allocations: 9.972 MB / 5.191 GB, free: 15 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001741/18.93, allocations: 24 kB / 5.191 GB, free: 14.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.9284/19.86, allocations: 86.62 MB / 5.276 GB, free: 43.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009132/19.87, allocations: 1.084 MB / 5.277 GB, free: 43.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.135/20.01, allocations: 36.95 MB / 5.313 GB, free: 37.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02634/20.03, allocations: 1.842 MB / 5.315 GB, free: 36.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005224/20.04, allocations: 0.6013 MB / 5.315 GB, free: 35.93 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/20.04, allocations: 0 / 5.315 GB, free: 35.93 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1251/20.16, allocations: 32.11 MB / 5.347 GB, free: 19.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001667/20.16, allocations: 25.53 kB / 5.347 GB, free: 19.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.9363/21.1, allocations: 66.47 MB / 5.412 GB, free: 40.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01471/21.11, allocations: 1.139 MB / 5.413 GB, free: 40.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1569/21.27, allocations: 35.03 MB / 5.447 GB, free: 39.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02381/21.29, allocations: 1.811 MB / 5.449 GB, free: 39.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005015/21.3, allocations: 0.5897 MB / 5.449 GB, free: 39.79 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.01408/21.31, allocations: 2.605 MB / 5.452 GB, free: 39.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005743/21.32, allocations: 0.6527 MB / 5.453 GB, free: 39.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1177/21.44, allocations: 30.76 MB / 5.483 GB, free: 38.74 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002071/21.44, allocations: 123.6 kB / 5.483 GB, free: 38.74 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.399e-05/21.44, allocations: 8.453 kB / 5.483 GB, free: 38.74 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.08955/21.53, allocations: 24.3 MB / 5.506 GB, free: 27.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1787/21.71, allocations: 45.81 MB / 5.551 GB, free: 11.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001659/21.71, allocations: 0 / 5.551 GB, free: 11.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03593/21.74, allocations: 3.419 MB / 5.555 GB, free: 9.188 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.4702/22.21, allocations: 12.61 MB / 5.567 GB, free: 60.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004952/22.22, allocations: 0.6303 MB / 5.567 GB, free: 60.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06986/22.29, allocations: 44.84 MB / 5.611 GB, free: 31.49 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/22.29, allocations: 0 / 5.611 GB, free: 31.49 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1413/22.43, allocations: 38.55 MB / 5.649 GB, free: 30.31 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003312/22.43, allocations: 0.8015 MB / 5.65 GB, free: 29.87 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006472/22.44, allocations: 488 kB / 5.65 GB, free: 29.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02404/22.46, allocations: 1.485 MB / 5.652 GB, free: 29.84 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005379/22.47, allocations: 0.8017 MB / 5.652 GB, free: 29.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005112/22.47, allocations: 0.5691 MB / 5.653 GB, free: 29.83 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006721/22.48, allocations: 2.505 MB / 5.655 GB, free: 29.68 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.82e-07/22.48, allocations: 3.938 kB / 5.655 GB, free: 29.68 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.04073/22.52, allocations: 7.04 MB / 5.662 GB, free: 29.68 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.1589/22.68, allocations: 43.29 MB / 5.705 GB, free: 17.36 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.5368/23.22, allocations: 38.56 MB / 5.742 GB, free: 57.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.73e-05/23.22, allocations: 8.344 kB / 5.742 GB, free: 57.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.05817/23.27, allocations: 14.15 MB / 5.756 GB, free: 56.44 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02913/23.3, allocations: 3.077 MB / 5.759 GB, free: 56.36 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1481/23.45, allocations: 63.6 MB / 5.821 GB, free: 22.05 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01266/23.46, allocations: 5.286 MB / 5.826 GB, free: 21.11 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0162/23.48, allocations: 3.716 MB / 5.83 GB, free: 21.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.453e-06/23.48, allocations: 4 kB / 5.83 GB, free: 21.09 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.43/35.91, allocations: 0.8478 GB / 6.678 GB, free: 101.6 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat does not exist to compare? outputFormat=mat