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.PressureLoss.StraightPipe.dp_overall_DPMFLOW.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.PressureLoss.StraightPipe.dp_overall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.2/2.2, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004382/0.0004382, allocations: 12 kB / 314.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.331, allocations: 54.87 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1679/0.499, allocations: 97.51 MB / 466.9 MB, free: 8.953 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003962/0.4994, allocations: 99.94 kB / 467 MB, free: 8.855 MB / 394.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:6086:11-6092:61:writable] Error: Type mismatch in binding roughness = roughness, expected subtype of enumeration(Neglected, Considered)[4], got type enumeration(Neglected, Considered). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:6094:11-6097:69:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:6100:11-6106:59:writable] Error: Type mismatch in binding roughness = roughness, expected subtype of enumeration(Neglected, Considered)[4], got type enumeration(Neglected, Considered). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:6108:11-6111:67:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.4302/0.9296, allocations: 17.82 MB / 484.8 MB, free: 96.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.9297, allocations: 4 kB / 484.8 MB, free: 96.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.9297, allocations: 3.969 kB / 484.8 MB, free: 96.2 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001297/0.931, allocations: 0.6475 MB / 485.5 MB, free: 95.66 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.931, allocations: 7.906 kB / 485.5 MB, free: 95.66 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.078e-05/0.9311, allocations: 72.86 kB / 485.5 MB, free: 95.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.517e-05/0.9312, allocations: 27.53 kB / 485.6 MB, free: 95.58 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002952/0.9315, allocations: 237.4 kB / 485.8 MB, free: 95.37 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.9316, allocations: 24.12 kB / 485.8 MB, free: 95.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.42e-05/0.9317, allocations: 30.61 kB / 485.9 MB, free: 95.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009822/0.9327, allocations: 462.8 kB / 486.3 MB, free: 95.19 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.9327, allocations: 3.188 kB / 486.3 MB, free: 95.19 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.9327, allocations: 11.56 kB / 486.3 MB, free: 95.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.152e-05/0.9328, allocations: 45.33 kB / 486.4 MB, free: 95.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/0.934, allocations: 0.5594 MB / 486.9 MB, free: 95.04 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002497/0.9365, allocations: 1.347 MB / 488.3 MB, free: 94.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008247/0.9374, allocations: 297.2 kB / 488.6 MB, free: 94.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.371e-05/0.9375, allocations: 11.3 kB / 488.6 MB, free: 94.09 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.813e-05/0.9375, allocations: 38.5 kB / 488.6 MB, free: 94.04 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 2.775e-06/0.9375, allocations: 3.844 kB / 488.6 MB, free: 94.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.001107/0.9386, allocations: 342 kB / 489 MB, free: 93.94 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.9387, allocations: 55.25 kB / 489 MB, free: 93.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.9388, allocations: 136.5 kB / 489.1 MB, free: 93.76 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.9388, allocations: 29.7 kB / 489.2 MB, free: 93.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.062e-05/0.9389, allocations: 257.8 kB / 489.4 MB, free: 93.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.979e-05/0.939, allocations: 90.12 kB / 489.5 MB, free: 93.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.303e-05/0.939, allocations: 7.938 kB / 489.5 MB, free: 93.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.319e-05/0.9391, allocations: 322.6 kB / 489.8 MB, free: 93.11 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003048/0.9394, allocations: 95.8 kB / 489.9 MB, free: 93.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003733/0.9398, allocations: 168.1 kB / 490.1 MB, free: 92.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003588/0.9402, allocations: 131.2 kB / 490.2 MB, free: 92.95 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.9402, allocations: 0 / 490.2 MB, free: 92.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008794/0.9411, allocations: 324 kB / 490.5 MB, free: 92.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.9411, allocations: 7.281 kB / 490.5 MB, free: 92.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.9411, allocations: 3.156 kB / 490.5 MB, free: 92.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.9412, allocations: 3.281 kB / 490.5 MB, free: 92.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009579/0.9421, allocations: 137.9 kB / 490.7 MB, free: 92.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000971/0.9431, allocations: 2.372 MB / 493.1 MB, free: 90.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.9435, allocations: 31.44 kB / 493.1 MB, free: 90.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.9435, allocations: 15.08 kB / 493.1 MB, free: 90.44 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (roughness) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002482/0.9438, allocations: 176.3 kB / 493.3 MB, free: 90.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.317e-05/0.9438, allocations: 11.72 kB / 493.3 MB, free: 90.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.9451, allocations: 390.5 kB / 493.7 MB, free: 90.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.321e-06/0.9451, allocations: 3.969 kB / 493.7 MB, free: 90.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.9451, allocations: 3.75 kB / 493.7 MB, free: 90.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.9451, allocations: 0 / 493.7 MB, free: 90.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004595/0.9456, allocations: 336.7 kB / 494 MB, free: 89.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.9456, allocations: 0 / 494 MB, free: 89.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008639/0.9465, allocations: 127.4 kB / 494.1 MB, free: 89.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.271e-06/0.9465, allocations: 0 / 494.1 MB, free: 89.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.9466, allocations: 3.906 kB / 494.1 MB, free: 89.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008898/0.9475, allocations: 2.365 MB / 496.5 MB, free: 87.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.9475, allocations: 0 / 496.5 MB, free: 87.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008165/0.9483, allocations: 385.6 kB / 496.9 MB, free: 87.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.297e-05/0.9484, allocations: 96.47 kB / 497 MB, free: 87.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.381e-05/0.9484, allocations: 7.938 kB / 497 MB, free: 87.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002474/0.9487, allocations: 11.5 kB / 497 MB, free: 87.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.847e-05/0.9488, allocations: 20.47 kB / 497 MB, free: 87.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/0.9488, allocations: 19.94 kB / 497 MB, free: 87.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.39e-05/0.9489, allocations: 96.25 kB / 497.1 MB, free: 87.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-07/0.9489, allocations: 0 / 497.1 MB, free: 87.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001037/0.95, allocations: 270.7 kB / 497.4 MB, free: 86.83 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * 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): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001864/0.9518, allocations: 1.197 MB / 498.6 MB, free: 85.71 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.953, allocations: 285.6 kB / 498.9 MB, free: 85.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.953, allocations: 0 / 498.9 MB, free: 85.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006618/0.9536, allocations: 182.8 kB / 499 MB, free: 85.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.9539, allocations: 15.94 kB / 499.1 MB, free: 85.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003329/0.9573, allocations: 3.225 MB / 0.4905 GB, free: 82.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.9576, allocations: 0.8038 MB / 0.4913 GB, free: 81.41 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002127/0.9578, allocations: 98.02 kB / 0.4914 GB, free: 81.33 MB / 394.7 MB Notification: Performance of SimCode: time 1.032e-06/0.9578, allocations: 0 / 0.4914 GB, free: 81.33 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.85/3.808, allocations: 11.15 MB / 0.5023 GB, free: 70.19 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_overall_DPMFLOW_res.mat does not exist to compare? outputFormat=mat