Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_KC.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_KC,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_overall_KC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.585/2.585, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.128e-05/2.133e-05, allocations: 4 kB / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3729/0.3729, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.176/0.549, allocations: 92.79 MB / 450.9 MB, free: 1.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003507/0.5494, allocations: 95.92 kB / 451 MB, free: 1.836 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4114/0.9608, allocations: 23.26 MB / 474.3 MB, free: 98.13 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.9608, allocations: 1.375 kB / 474.3 MB, free: 98.13 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.864e-05/0.9609, allocations: 9.344 kB / 474.3 MB, free: 98.13 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.001579/0.9625, allocations: 0.6983 MB / 475 MB, free: 97.65 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.9625, allocations: 9.625 kB / 475 MB, free: 97.65 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.9627, allocations: 57.42 kB / 475.1 MB, free: 97.62 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000539/0.9633, allocations: 306.9 kB / 475.4 MB, free: 97.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.611e-05/0.9633, allocations: 17.56 kB / 475.4 MB, free: 97.4 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.9634, allocations: 31.47 kB / 475.4 MB, free: 97.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001374/0.9648, allocations: 0.6751 MB / 476.1 MB, free: 97.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.9661, allocations: 0.6312 MB / 476.7 MB, free: 97.35 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.9661, allocations: 7.422 kB / 476.7 MB, free: 97.35 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.715e-05/0.9662, allocations: 7.547 kB / 476.7 MB, free: 97.35 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.281e-05/0.9663, allocations: 48.11 kB / 476.8 MB, free: 97.35 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003218/0.9695, allocations: 1.371 MB / 478.2 MB, free: 97 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.9706, allocations: 0.5104 MB / 478.7 MB, free: 96.97 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.971, allocations: 162.1 kB / 478.8 MB, free: 96.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.028e-05/0.9711, allocations: 10.5 kB / 478.8 MB, free: 96.96 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.9712, allocations: 38.16 kB / 478.9 MB, free: 96.92 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 4.238e-06/0.9712, allocations: 0 / 478.9 MB, free: 96.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=37): time 0.001079/0.9723, allocations: 409.9 kB / 479.3 MB, free: 96.83 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.619e-05/0.9723, allocations: 55.06 kB / 479.3 MB, free: 96.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003081/0.9726, allocations: 256.2 kB / 479.6 MB, free: 96.62 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.9727, allocations: 25.7 kB / 479.6 MB, free: 96.59 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.9728, allocations: 347.9 kB / 479.9 MB, free: 96.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.973, allocations: 130.7 kB / 480.1 MB, free: 96.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/0.973, allocations: 2.812 kB / 480.1 MB, free: 96.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.369e-05/0.9731, allocations: 337.2 kB / 480.4 MB, free: 95.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004174/0.9735, allocations: 194.9 kB / 480.6 MB, free: 95.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005891/0.9741, allocations: 428.8 kB / 481 MB, free: 95.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005828/0.9747, allocations: 274.2 kB / 481.3 MB, free: 95.46 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.9748, allocations: 3.031 kB / 481.3 MB, free: 95.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001444/0.9762, allocations: 0.625 MB / 481.9 MB, free: 95.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.9763, allocations: 10.28 kB / 481.9 MB, free: 95.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.9763, allocations: 10.59 kB / 481.9 MB, free: 95.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.507e-05/0.9764, allocations: 11.78 kB / 481.9 MB, free: 95.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00209/0.9785, allocations: 254.3 kB / 482.2 MB, free: 95.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00366/0.9821, allocations: 7.329 MB / 489.5 MB, free: 88.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007104/0.9829, allocations: 42.05 kB / 489.6 MB, free: 88.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.841e-05/0.983, allocations: 39.67 kB / 489.6 MB, free: 88.17 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 24 (m_flow_IN_con_4[3].target,m_flow_IN_con_4[3].roughness,m_flow_IN_con_4[2].target,m_flow_IN_con_4[2].roughness,m_flow_IN_con_4[1].target,m_flow_IN_con_4[1].roughness,m_flow_IN_con_3[3].target,m_flow_IN_con_3[3].roughness,m_flow_IN_con_3[2].target,m_flow_IN_con_3[2].roughness,m_flow_IN_con_3[1].target,m_flow_IN_con_3[1].roughness,m_flow_IN_con_2[3].target,m_flow_IN_con_2[3].roughness,m_flow_IN_con_2[2].target,m_flow_IN_con_2[2].roughness,m_flow_IN_con_2[1].target,m_flow_IN_con_2[1].roughness,m_flow_IN_con_1[3].target,m_flow_IN_con_1[3].roughness,m_flow_IN_con_1[2].target,m_flow_IN_con_1[2].roughness,m_flow_IN_con_1[1].target,m_flow_IN_con_1[1].roughness) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 12 {1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002271/0.9832, allocations: 153.2 kB / 489.7 MB, free: 88.04 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009891/0.9842, allocations: 408.4 kB / 490.1 MB, free: 87.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.05e-05/0.9843, allocations: 28.16 kB / 490.2 MB, free: 87.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001524/0.9859, allocations: 0.569 MB / 490.7 MB, free: 87.79 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.9859, allocations: 3.938 kB / 490.7 MB, free: 87.79 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.9859, allocations: 0 / 490.7 MB, free: 87.79 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.9859, allocations: 3.656 kB / 490.7 MB, free: 87.79 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007801/0.9867, allocations: 405.1 kB / 491.1 MB, free: 87.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.9868, allocations: 0 / 491.1 MB, free: 87.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001892/0.9887, allocations: 214.6 kB / 491.3 MB, free: 87.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.137e-05/0.9887, allocations: 3.469 kB / 491.4 MB, free: 87.56 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.562e-05/0.9888, allocations: 7.703 kB / 491.4 MB, free: 87.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003494/0.9923, allocations: 7.324 MB / 498.7 MB, free: 80.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.9923, allocations: 0 / 498.7 MB, free: 80.43 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.9934, allocations: 0.518 MB / 499.2 MB, free: 80.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.344e-05/0.9935, allocations: 103.3 kB / 499.3 MB, free: 80.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.335e-05/0.9936, allocations: 6.938 kB / 499.3 MB, free: 80.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004435/0.994, allocations: 16.06 kB / 499.3 MB, free: 80.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.9942, allocations: 27.39 kB / 499.4 MB, free: 80.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.121e-05/0.9942, allocations: 15.84 kB / 499.4 MB, free: 80.07 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001937/0.9944, allocations: 177 kB / 499.5 MB, free: 79.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.9945, allocations: 4 kB / 499.5 MB, free: 79.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001085/0.9956, allocations: 198.6 kB / 499.7 MB, free: 79.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 12 {1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001829/0.9974, allocations: 1.22 MB / 0.4892 GB, free: 78.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002358/0.9998, allocations: 0.5681 MB / 0.4898 GB, free: 78.15 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.9998, allocations: 0 / 0.4898 GB, free: 78.15 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001616/1.001, allocations: 324.6 kB / 0.4901 GB, free: 77.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004649/1.002, allocations: 21.22 kB / 0.4901 GB, free: 77.89 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/1.004, allocations: 0.8666 MB / 0.4909 GB, free: 77.12 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/1.005, allocations: 0.9069 MB / 0.4918 GB, free: 76.28 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002996/1.005, allocations: 156.7 kB / 0.492 GB, free: 76.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.252e-06/1.005, allocations: 0 / 0.492 GB, free: 76.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.685/4.69, allocations: 32.44 MB / 0.5237 GB, free: 43.99 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_KC_res.mat does not exist to compare? outputFormat=mat