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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.51/2.51, allocations: 235 MB / 248.1 MB, free: 14.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.726e-05/4.749e-05, allocations: 4 kB / 309.8 MB, free: 1.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4243/0.4244, allocations: 54.85 MB / 364.7 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1891/0.6135, allocations: 93.46 MB / 458.1 MB, free: 3.023 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003861/0.6139, allocations: 95.94 kB / 458.2 MB, free: 2.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1277/0.7416, allocations: 23.5 MB / 481.7 MB, free: 11.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.7417, allocations: 3.938 kB / 481.7 MB, free: 11.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.132e-05/0.7417, allocations: 8 kB / 481.7 MB, free: 11.25 MB / 410.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.001607/0.7433, allocations: 0.6934 MB / 482.4 MB, free: 10.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.7434, allocations: 11.97 kB / 482.4 MB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001985/0.7436, allocations: 106.5 kB / 482.5 MB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001529/0.7438, allocations: 63.3 kB / 482.6 MB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006386/0.7444, allocations: 306.3 kB / 482.9 MB, free: 9.984 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.78e-05/0.7445, allocations: 41.3 kB / 482.9 MB, free: 9.945 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.7446, allocations: 52 kB / 483 MB, free: 9.895 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.7464, allocations: 0.7169 MB / 483.7 MB, free: 9.168 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.7465, allocations: 0 / 483.7 MB, free: 9.168 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.547e-05/0.7466, allocations: 31.95 kB / 483.7 MB, free: 9.137 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.434e-05/0.7467, allocations: 41.3 kB / 483.8 MB, free: 9.098 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.7485, allocations: 0.7663 MB / 484.5 MB, free: 8.332 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003886/0.7524, allocations: 1.528 MB / 486.1 MB, free: 6.746 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.7536, allocations: 432.5 kB / 486.5 MB, free: 6.316 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004117/0.7541, allocations: 149.1 kB / 486.6 MB, free: 6.168 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.213e-05/0.7541, allocations: 20.14 kB / 486.7 MB, free: 6.148 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.7542, allocations: 30.8 kB / 486.7 MB, free: 6.109 MB / 410.7 MB Notification: Performance of pre-optimization done (n=28): time 3.567e-06/0.7542, allocations: 0 / 486.7 MB, free: 6.109 MB / 410.7 MB Notification: Performance of matching and sorting (n=28): time 0.001174/0.7554, allocations: 377.9 kB / 487.1 MB, free: 5.734 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.7554, allocations: 59.41 kB / 487.1 MB, free: 5.664 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009739/0.7564, allocations: 0.5152 MB / 487.6 MB, free: 5.141 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.87e-05/0.7565, allocations: 29.81 kB / 487.7 MB, free: 5.105 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002544/0.7568, allocations: 317.9 kB / 488 MB, free: 4.789 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.7569, allocations: 102.6 kB / 488.1 MB, free: 4.688 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.757, allocations: 8 kB / 488.1 MB, free: 4.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.7571, allocations: 334.8 kB / 488.4 MB, free: 4.344 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004944/0.7576, allocations: 173 kB / 488.6 MB, free: 4.176 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000679/0.7583, allocations: 413 kB / 489 MB, free: 3.656 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006498/0.759, allocations: 255.6 kB / 489.2 MB, free: 3.406 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.759, allocations: 0 / 489.2 MB, free: 3.406 MB / 410.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001707/0.7608, allocations: 0.6219 MB / 489.8 MB, free: 2.777 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/0.7608, allocations: 8 kB / 489.9 MB, free: 2.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.981e-05/0.7609, allocations: 11.98 kB / 489.9 MB, free: 2.758 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.21e-05/0.7609, allocations: 16 kB / 489.9 MB, free: 2.742 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/0.763, allocations: 240.3 kB / 490.1 MB, free: 2.508 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005212/0.7683, allocations: 7.313 MB / 497.4 MB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008427/0.7692, allocations: 75.27 kB / 497.5 MB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.738e-05/0.7693, allocations: 32.27 kB / 497.5 MB, free: 10.81 MB / 426.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 (64): * Single equations (assignments): 52 * 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.0002529/0.7695, allocations: 171.8 kB / 497.7 MB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.7697, allocations: 47.39 kB / 497.7 MB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.7714, allocations: 0.5251 MB / 498.3 MB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.7715, allocations: 4 kB / 498.3 MB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.7715, allocations: 0 / 498.3 MB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.7715, allocations: 0 / 498.3 MB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009675/0.7725, allocations: 437.2 kB / 498.7 MB, free: 9.574 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.7725, allocations: 0 / 498.7 MB, free: 9.574 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001807/0.7743, allocations: 207.7 kB / 498.9 MB, free: 9.371 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.226e-05/0.7744, allocations: 8 kB / 498.9 MB, free: 9.363 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.15e-05/0.7745, allocations: 7.984 kB / 498.9 MB, free: 9.355 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005677/0.7801, allocations: 7.294 MB / 0.4943 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.7802, allocations: 4.062 kB / 0.4944 GB, free: 1.777 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.7814, allocations: 483.8 kB / 0.4948 GB, free: 1.289 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002344/0.7817, allocations: 128.5 kB / 0.4949 GB, free: 1.145 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.7818, allocations: 4 kB / 0.4949 GB, free: 1.141 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004683/0.7823, allocations: 15.98 kB / 0.495 GB, free: 1.125 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.7824, allocations: 23.95 kB / 0.495 GB, free: 1.102 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.176e-05/0.7825, allocations: 15.98 kB / 0.495 GB, free: 1.086 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007503/0.7832, allocations: 401.5 kB / 0.4954 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7833, allocations: 3.938 kB / 0.4954 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001072/0.7843, allocations: 191.8 kB / 0.4956 GB, free: 0.5039 MB / 426.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 (28): * Single equations (assignments): 16 * 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.002202/0.7866, allocations: 1.181 MB / 0.4967 GB, free: 15.29 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002567/0.7892, allocations: 0.5327 MB / 0.4972 GB, free: 14.76 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.7892, allocations: 0 / 0.4972 GB, free: 14.76 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/0.791, allocations: 299.6 kB / 0.4975 GB, free: 14.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008526/0.7919, allocations: 106 kB / 0.4976 GB, free: 14.37 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0029/0.7948, allocations: 0.9006 MB / 0.4985 GB, free: 13.42 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006549/0.7955, allocations: 0.913 MB / 0.4994 GB, free: 12.48 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004231/0.796, allocations: 155.4 kB / 0.4995 GB, free: 12.33 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/0.796, allocations: 0 / 0.4995 GB, free: 12.33 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.914/4.71, allocations: 34.01 MB / 0.5328 GB, free: 146.8 MB / 458.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