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.TestCases.PressureLoss.SeveralTestCases.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.TestCases.PressureLoss.SeveralTestCases,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_TestCases_PressureLoss_SeveralTestCases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.332/2.332, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004741/0.0004742, allocations: 19.98 kB / 314.5 MB, free: 9.445 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3426, allocations: 54.85 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.118/1.461, allocations: 333.4 MB / 0.6863 GB, free: 128.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002901/1.461, allocations: 98.42 kB / 0.6864 GB, free: 128.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084/3.545, allocations: 449.7 MB / 1.126 GB, free: 56.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.625e-06/3.545, allocations: 1.812 kB / 1.126 GB, free: 56.4 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001372/3.545, allocations: 49.97 kB / 1.126 GB, free: 56.39 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 338 * Number of variables: 338 Notification: Performance of Generate backend data structure: time 0.006306/3.552, allocations: 2.118 MB / 1.128 GB, free: 55.31 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/3.552, allocations: 10.75 kB / 1.128 GB, free: 55.31 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006617/3.552, allocations: 209 kB / 1.128 GB, free: 55.27 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001453/3.554, allocations: 235.6 kB / 1.128 GB, free: 55.18 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00324/3.557, allocations: 1.168 MB / 1.129 GB, free: 54.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.704e-05/3.557, allocations: 98.69 kB / 1.129 GB, free: 54.79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002353/3.558, allocations: 129.8 kB / 1.129 GB, free: 54.79 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004367/3.562, allocations: 1.906 MB / 1.131 GB, free: 54.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.8e-05/3.562, allocations: 11.08 kB / 1.131 GB, free: 54.24 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002859/3.562, allocations: 67.97 kB / 1.131 GB, free: 54.24 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.358e-05/3.562, allocations: 34.09 kB / 1.131 GB, free: 54.24 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00387/3.566, allocations: 1.592 MB / 1.133 GB, free: 54.19 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01207/3.578, allocations: 9.148 MB / 1.142 GB, free: 48.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002746/3.581, allocations: 1.037 MB / 1.143 GB, free: 47.67 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008948/3.59, allocations: 6.557 MB / 1.149 GB, free: 41.37 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/3.59, allocations: 40.28 kB / 1.149 GB, free: 41.32 MB / 490.7 MB Notification: Performance of pre-optimization done (n=41): time 3.257e-06/3.59, allocations: 0 / 1.149 GB, free: 41.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=41): time 0.003023/3.593, allocations: 0.6984 MB / 1.15 GB, free: 41.08 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/3.593, allocations: 374.1 kB / 1.15 GB, free: 40.64 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001873/3.595, allocations: 1.089 MB / 1.151 GB, free: 40.19 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/3.595, allocations: 36.14 kB / 1.151 GB, free: 40.15 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006738/3.596, allocations: 0.989 MB / 1.152 GB, free: 39.32 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/3.596, allocations: 173.6 kB / 1.153 GB, free: 39.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-05/3.596, allocations: 32.03 kB / 1.153 GB, free: 39.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/3.596, allocations: 367.6 kB / 1.153 GB, free: 38.84 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007568/3.597, allocations: 297.5 kB / 1.153 GB, free: 38.75 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/3.599, allocations: 1.354 MB / 1.155 GB, free: 37.21 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/3.6, allocations: 0.5235 MB / 1.155 GB, free: 37.01 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.139e-05/3.6, allocations: 15.64 kB / 1.155 GB, free: 37.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003421/3.603, allocations: 1.528 MB / 1.157 GB, free: 36.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/3.603, allocations: 21.12 kB / 1.157 GB, free: 36.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.714e-05/3.603, allocations: 36.5 kB / 1.157 GB, free: 36.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.005e-05/3.603, allocations: 52.41 kB / 1.157 GB, free: 36.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007218/3.611, allocations: 0.6932 MB / 1.157 GB, free: 36.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/3.612, allocations: 1.903 MB / 1.159 GB, free: 34.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002607/3.615, allocations: 267.4 kB / 1.16 GB, free: 34.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002141/3.615, allocations: 115 kB / 1.16 GB, free: 34.41 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 163 * 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 (203): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009456/3.616, allocations: 393.2 kB / 1.16 GB, free: 34.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000329/3.616, allocations: 141.8 kB / 1.16 GB, free: 34.05 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004011/3.62, allocations: 1.288 MB / 1.161 GB, free: 33.56 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.042e-05/3.621, allocations: 15.66 kB / 1.161 GB, free: 33.55 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/3.621, allocations: 0 / 1.161 GB, free: 33.55 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/3.621, allocations: 3.797 kB / 1.161 GB, free: 33.55 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/3.623, allocations: 0.9881 MB / 1.162 GB, free: 33.06 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/3.623, allocations: 3.516 kB / 1.162 GB, free: 33.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/3.624, allocations: 196.2 kB / 1.163 GB, free: 33.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004885/3.625, allocations: 56.94 kB / 1.163 GB, free: 33.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.794e-05/3.625, allocations: 19.22 kB / 1.163 GB, free: 33.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009653/3.626, allocations: 1.758 MB / 1.164 GB, free: 31.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/3.626, allocations: 0 / 1.164 GB, free: 31.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001972/3.628, allocations: 0.8021 MB / 1.165 GB, free: 30.89 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005323/3.628, allocations: 269.4 kB / 1.165 GB, free: 30.67 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003237/3.629, allocations: 11.84 kB / 1.165 GB, free: 30.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/3.63, allocations: 58.23 kB / 1.165 GB, free: 30.65 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/3.63, allocations: 46.61 kB / 1.166 GB, free: 30.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-05/3.63, allocations: 33.77 kB / 1.166 GB, free: 30.64 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001567/3.632, allocations: 0.8471 MB / 1.166 GB, free: 30.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.12e-07/3.632, allocations: 0 / 1.166 GB, free: 30.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003878/3.636, allocations: 0.7943 MB / 1.167 GB, free: 30.07 MB / 490.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 (67): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.005064/3.641, allocations: 2.375 MB / 1.169 GB, free: 28.8 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00704/3.648, allocations: 1.158 MB / 1.171 GB, free: 28.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/3.648, allocations: 0 / 1.171 GB, free: 28.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/3.649, allocations: 373 kB / 1.171 GB, free: 28.41 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004343/3.654, allocations: 0.5406 MB / 1.171 GB, free: 28.27 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02516/3.679, allocations: 33.17 MB / 1.204 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009025/3.68, allocations: 1.271 MB / 1.205 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/3.681, allocations: 0.6164 MB / 1.206 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of SimCode: time 1.112e-06/3.681, allocations: 0 / 1.206 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.862/7.543, allocations: 54.12 MB / 1.259 GB, free: 77.95 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.TestCases.PressureLoss.SeveralTestCases_res.mat does not exist to compare? outputFormat=mat