Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.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.TestComponents.Fittings.TestWallFriction,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.453/2.453, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.882e-05/4.893e-05, allocations: 4 kB / 309.8 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5246/0.5247, allocations: 54.85 MB / 364.6 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8307/1.355, allocations: 329.8 MB / 0.6781 GB, free: 2.949 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/1.356, allocations: 82.52 kB / 0.6782 GB, free: 2.906 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 2.001/3.357, allocations: 332.4 MB / 1.003 GB, free: 87.82 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.044e-06/3.357, allocations: 0 / 1.003 GB, free: 87.82 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001614/3.357, allocations: 36.8 kB / 1.003 GB, free: 87.81 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: 254 * Number of variables: 254 Notification: Performance of Generate backend data structure: time 0.006171/3.363, allocations: 1.782 MB / 1.005 GB, free: 86.71 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/3.364, allocations: 14.06 kB / 1.005 GB, free: 86.71 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004816/3.364, allocations: 152.5 kB / 1.005 GB, free: 86.61 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001148/3.365, allocations: 182.5 kB / 1.005 GB, free: 86.53 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003979/3.369, allocations: 1.124 MB / 1.006 GB, free: 85.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/3.369, allocations: 72.39 kB / 1.006 GB, free: 85.91 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003124/3.37, allocations: 89.94 kB / 1.006 GB, free: 85.88 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003561/3.373, allocations: 1.455 MB / 1.008 GB, free: 85.12 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.867e-05/3.373, allocations: 0 / 1.008 GB, free: 85.12 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002457/3.374, allocations: 42.47 kB / 1.008 GB, free: 85.09 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/3.374, allocations: 53.73 kB / 1.008 GB, free: 85.09 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00337/3.377, allocations: 1.299 MB / 1.009 GB, free: 84.61 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01251/3.39, allocations: 6.68 MB / 1.015 GB, free: 79.66 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/3.391, allocations: 497.7 kB / 1.016 GB, free: 79.45 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006459/3.392, allocations: 297.4 kB / 1.016 GB, free: 79.32 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03044/3.422, allocations: 17.2 MB / 1.033 GB, free: 62.03 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006179/3.423, allocations: 281 kB / 1.033 GB, free: 61.84 MB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 3.597e-06/3.423, allocations: 0 / 1.033 GB, free: 61.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=42): time 0.001682/3.425, allocations: 0.5289 MB / 1.034 GB, free: 61.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.608e-05/3.425, allocations: 262.5 kB / 1.034 GB, free: 61.24 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002057/3.427, allocations: 1 MB / 1.035 GB, free: 60.72 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001738/3.427, allocations: 36.86 kB / 1.035 GB, free: 60.68 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006341/3.428, allocations: 0.7704 MB / 1.036 GB, free: 59.98 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002432/3.428, allocations: 151.3 kB / 1.036 GB, free: 59.86 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.152e-05/3.428, allocations: 27.41 kB / 1.036 GB, free: 59.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001125/3.428, allocations: 356.8 kB / 1.036 GB, free: 59.49 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007257/3.429, allocations: 262.9 kB / 1.037 GB, free: 59.39 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/3.43, allocations: 0.9522 MB / 1.037 GB, free: 58.33 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/3.431, allocations: 468 kB / 1.038 GB, free: 58.11 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.665e-05/3.431, allocations: 8.312 kB / 1.038 GB, free: 58.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003112/3.434, allocations: 1.217 MB / 1.039 GB, free: 57.52 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002076/3.436, allocations: 9.094 MB / 1.048 GB, free: 47.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.734e-05/3.436, allocations: 21.69 kB / 1.048 GB, free: 47.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.709e-05/3.437, allocations: 37.31 kB / 1.048 GB, free: 47.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003968/3.441, allocations: 426.4 kB / 1.048 GB, free: 47.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008899/3.441, allocations: 1.276 MB / 1.05 GB, free: 46.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002205/3.444, allocations: 191.5 kB / 1.05 GB, free: 46.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002832/3.444, allocations: 81 kB / 1.05 GB, free: 46.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/3.444, allocations: 6.812 kB / 1.05 GB, free: 46.31 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002922/3.447, allocations: 1.121 MB / 1.051 GB, free: 45.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.352e-05/3.447, allocations: 24 kB / 1.051 GB, free: 45.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.065e-05/3.447, allocations: 32 kB / 1.051 GB, free: 45.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001927/3.449, allocations: 319.5 kB / 1.051 GB, free: 45.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003934/3.449, allocations: 0.6366 MB / 1.052 GB, free: 44.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/3.451, allocations: 143.1 kB / 1.052 GB, free: 44.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001887/3.451, allocations: 79.98 kB / 1.052 GB, free: 44.19 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004725/3.452, allocations: 231.8 kB / 1.052 GB, free: 43.95 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004042/3.452, allocations: 126.5 kB / 1.053 GB, free: 43.82 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00383/3.456, allocations: 1.197 MB / 1.054 GB, free: 42.62 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.278e-05/3.456, allocations: 15.98 kB / 1.054 GB, free: 42.61 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/3.456, allocations: 3.938 kB / 1.054 GB, free: 42.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/3.456, allocations: 0 / 1.054 GB, free: 42.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004167/3.46, allocations: 1.774 MB / 1.056 GB, free: 40.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/3.46, allocations: 0 / 1.056 GB, free: 40.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003072/3.463, allocations: 247.7 kB / 1.056 GB, free: 40.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.826e-05/3.464, allocations: 4 kB / 1.056 GB, free: 40.52 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/3.464, allocations: 19.98 kB / 1.056 GB, free: 40.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006527/3.464, allocations: 1.223 MB / 1.057 GB, free: 39.23 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/3.464, allocations: 11.92 kB / 1.057 GB, free: 39.22 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/3.466, allocations: 0.8237 MB / 1.058 GB, free: 38.36 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005318/3.467, allocations: 251.1 kB / 1.058 GB, free: 38.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002719/3.467, allocations: 19.98 kB / 1.058 GB, free: 38.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009473/3.468, allocations: 51.83 kB / 1.058 GB, free: 38.03 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/3.468, allocations: 40.5 kB / 1.058 GB, free: 37.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.442e-05/3.468, allocations: 27.69 kB / 1.058 GB, free: 37.96 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001559/3.47, allocations: 0.7859 MB / 1.059 GB, free: 37.18 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.31e-07/3.47, allocations: 0 / 1.059 GB, free: 37.18 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005857/3.476, allocations: 1.345 MB / 1.06 GB, free: 35.83 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006862/3.483, allocations: 2.639 MB / 1.063 GB, free: 33.26 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007307/3.49, allocations: 1.683 MB / 1.064 GB, free: 31.56 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/3.49, allocations: 8 kB / 1.064 GB, free: 31.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004833/3.495, allocations: 0.5657 MB / 1.065 GB, free: 30.98 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003681/3.499, allocations: 404 kB / 1.065 GB, free: 30.59 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008997/3.508, allocations: 2.651 MB / 1.068 GB, free: 27.91 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000697/3.509, allocations: 1.194 MB / 1.069 GB, free: 26.69 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001082/3.51, allocations: 0.5265 MB / 1.07 GB, free: 26.16 MB / 490.7 MB Notification: Performance of SimCode: time 1.182e-06/3.51, allocations: 0 / 1.07 GB, free: 26.16 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.245/7.754, allocations: 44.66 MB / 1.113 GB, free: 74.86 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat does not exist to compare? outputFormat=mat