Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.84/1.84, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008915/0.0008915, allocations: 12 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4276/0.4285, allocations: 48.7 MB / 331.4 MB, free: 6.543 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/0.5682, allocations: 75.88 MB / 407.2 MB, free: 2.547 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/0.5686, allocations: 83.94 kB / 407.3 MB, free: 2.465 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02399/0.5926, allocations: 5.279 MB / 412.6 MB, free: 13.19 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5927, allocations: 0 / 412.6 MB, free: 13.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.5927, allocations: 4 kB / 412.6 MB, free: 13.19 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006151/0.5933, allocations: 426.9 kB / 413 MB, free: 12.72 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.5934, allocations: 8.031 kB / 413 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.879e-05/0.5934, allocations: 34.56 kB / 413.1 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.915e-05/0.5935, allocations: 3.906 kB / 413.1 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001656/0.5937, allocations: 186.9 kB / 413.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.5937, allocations: 4 kB / 413.3 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.5937, allocations: 11.92 kB / 413.3 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001781/0.5939, allocations: 61.67 kB / 413.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.5939, allocations: 0 / 413.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.594, allocations: 0 / 413.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.594, allocations: 0 / 413.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001413/0.5941, allocations: 59.97 kB / 413.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002651/0.5944, allocations: 189.6 kB / 413.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.5945, allocations: 54.55 kB / 413.6 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.17e-05/0.5946, allocations: 32.16 kB / 413.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.5947, allocations: 38.56 kB / 413.7 MB, free: 11.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.5947, allocations: 0 / 413.7 MB, free: 11.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.03296/0.6277, allocations: 1.322 MB / 415 MB, free: 10.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.6278, allocations: 51.41 kB / 415.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.6279, allocations: 121.2 kB / 415.2 MB, free: 10.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/0.628, allocations: 29.7 kB / 415.2 MB, free: 10.35 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.498e-05/0.6281, allocations: 154.8 kB / 415.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.412e-05/0.6282, allocations: 43.39 kB / 415.4 MB, free: 10.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.526e-05/0.6282, allocations: 0 / 415.4 MB, free: 10.15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.6284, allocations: 318.8 kB / 415.7 MB, free: 9.832 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005509/0.6289, allocations: 95.95 kB / 415.8 MB, free: 9.738 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005342/0.6295, allocations: 91.94 kB / 415.9 MB, free: 9.648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006297/0.6301, allocations: 87.97 kB / 416 MB, free: 9.562 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.6301, allocations: 4 kB / 416 MB, free: 9.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.001318/0.6315, allocations: 241.5 kB / 416.2 MB, free: 9.316 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.6315, allocations: 11.98 kB / 416.2 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.6315, allocations: 0 / 416.2 MB, free: 9.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.6316, allocations: 4 kB / 416.2 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005712/0.6322, allocations: 35.97 kB / 416.3 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.6322, allocations: 0 / 416.3 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004005/0.6326, allocations: 11.98 kB / 416.3 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.397e-05/0.6326, allocations: 8 kB / 416.3 MB, free: 9.246 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (12): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001619/0.6328, allocations: 129.7 kB / 416.4 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.602e-05/0.6329, allocations: 11.89 kB / 416.4 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.6344, allocations: 286.6 kB / 416.7 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.6344, allocations: 3.938 kB / 416.7 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.6345, allocations: 8 kB / 416.7 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.6345, allocations: 0 / 416.7 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003103/0.6376, allocations: 0.6699 MB / 417.4 MB, free: 8.074 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.6376, allocations: 4 kB / 417.4 MB, free: 8.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005176/0.6382, allocations: 44 kB / 417.4 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/0.6382, allocations: 0 / 417.4 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.6382, allocations: 7.984 kB / 417.5 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.003e-05/0.6382, allocations: 8.047 kB / 417.5 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.6383, allocations: 3.938 kB / 417.5 MB, free: 8.008 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.6397, allocations: 391 kB / 417.8 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.6399, allocations: 105 kB / 418 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.433e-05/0.6399, allocations: 4 kB / 418 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/0.6404, allocations: 19.92 kB / 418 MB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.014e-05/0.6404, allocations: 7.984 kB / 418 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.219e-05/0.6404, allocations: 8 kB / 418 MB, free: 7.422 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.953e-05/0.6406, allocations: 95.27 kB / 418.1 MB, free: 7.328 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.6406, allocations: 0 / 418.1 MB, free: 7.328 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008597/0.6414, allocations: 179.8 kB / 418.3 MB, free: 7.152 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (12): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002807/0.6443, allocations: 1.278 MB / 419.5 MB, free: 5.824 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.6456, allocations: 211.8 kB / 419.7 MB, free: 5.617 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.6456, allocations: 0 / 419.7 MB, free: 5.617 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005756/0.6462, allocations: 107.9 kB / 419.8 MB, free: 5.512 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.6465, allocations: 20.12 kB / 419.9 MB, free: 5.492 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.6498, allocations: 0.5278 MB / 420.4 MB, free: 4.906 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.6502, allocations: 0.7004 MB / 421.1 MB, free: 4.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002534/0.6505, allocations: 31.42 kB / 421.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of SimCode: time 1.693e-06/0.6505, allocations: 0 / 421.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.54/3.19, allocations: 4.754 MB / 425.9 MB, free: 15.38 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat does not exist to compare? outputFormat=mat