Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.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.TestExamplesVariants.InverseParameterization_turbulent,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_InverseParameterization_turbulent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.547/2.547, allocations: 235 MB / 248.1 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.836e-05/4.85e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4142/0.4143, allocations: 54.84 MB / 364.6 MB, free: 5.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.219/8.634, allocations: 2.649 GB / 3.005 GB, free: 112.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/8.634, allocations: 73.12 kB / 3.005 GB, free: 112.5 MB / 490.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 .... Notification: Performance of FrontEnd - DAE generated: time 3.953/12.59, allocations: 0.7436 GB / 3.749 GB, free: 33.58 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.135e-06/12.59, allocations: 0 / 3.749 GB, free: 33.58 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001535/12.59, allocations: 39.05 kB / 3.749 GB, free: 33.57 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.01582/12.6, allocations: 2.724 MB / 3.751 GB, free: 32.27 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/12.6, allocations: 10.12 kB / 3.751 GB, free: 32.27 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007321/12.6, allocations: 170.7 kB / 3.752 GB, free: 32.22 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006847/12.61, allocations: 0.5982 MB / 3.752 GB, free: 32.15 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004154/12.61, allocations: 1.092 MB / 3.753 GB, free: 31.81 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/12.62, allocations: 90.77 kB / 3.753 GB, free: 31.81 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005586/12.62, allocations: 105 kB / 3.753 GB, free: 31.81 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008533/12.62, allocations: 2.243 MB / 3.756 GB, free: 31.46 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.928e-05/12.62, allocations: 10.75 kB / 3.756 GB, free: 31.46 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000351/12.62, allocations: 54.61 kB / 3.756 GB, free: 31.46 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001776/12.62, allocations: 77.56 kB / 3.756 GB, free: 31.46 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008882/12.63, allocations: 2.266 MB / 3.758 GB, free: 31.44 MB / 0.4948 GB 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.02046/12.65, allocations: 8.919 MB / 3.767 GB, free: 26.32 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006149/12.66, allocations: 1.658 MB / 3.768 GB, free: 26.29 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001801/12.66, allocations: 0.6405 MB / 3.769 GB, free: 26.28 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05892/12.72, allocations: 18.84 MB / 3.787 GB, free: 30.53 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.402e-05/12.72, allocations: 52.17 kB / 3.787 GB, free: 30.48 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001912/12.72, allocations: 198.4 kB / 3.787 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=109): time 5.431e-06/12.72, allocations: 0 / 3.787 GB, free: 30.43 MB / 0.5105 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=159): time 0.1192/12.84, allocations: 11.92 MB / 3.799 GB, free: 29.42 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001875/12.84, allocations: 222.7 kB / 3.799 GB, free: 29.17 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00173/12.84, allocations: 0.7423 MB / 3.8 GB, free: 29 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007485/12.85, allocations: 55.64 kB / 3.8 GB, free: 28.97 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004982/12.85, allocations: 0.5873 MB / 3.801 GB, free: 28.62 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008386/12.85, allocations: 0.5333 MB / 3.801 GB, free: 28.27 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003125/12.85, allocations: 40.16 kB / 3.801 GB, free: 28.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002583/12.85, allocations: 371.8 kB / 3.802 GB, free: 27.96 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003444/12.85, allocations: 1.245 MB / 3.803 GB, free: 27.95 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003797/12.85, allocations: 1.703 MB / 3.804 GB, free: 27.43 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00395/12.86, allocations: 1.363 MB / 3.806 GB, free: 27.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-05/12.86, allocations: 8.344 kB / 3.806 GB, free: 27.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=220) (initialization): time 0.01298/12.87, allocations: 4.039 MB / 3.81 GB, free: 27.27 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002331/12.87, allocations: 4.795 MB / 3.814 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.606e-05/12.87, allocations: 13.16 kB / 3.814 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1644/13.04, allocations: 7.953 MB / 3.822 GB, free: 22.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003254/13.04, allocations: 379.5 kB / 3.823 GB, free: 22.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01804/13.06, allocations: 4.644 MB / 3.827 GB, free: 20.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00633/13.07, allocations: 247.6 kB / 3.827 GB, free: 20.94 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007133/13.07, allocations: 128.4 kB / 3.827 GB, free: 20.94 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/13.07, allocations: 5.469 kB / 3.827 GB, free: 20.94 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0144/13.08, allocations: 3.898 MB / 3.831 GB, free: 20.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.52e-05/13.08, allocations: 11.78 kB / 3.831 GB, free: 20.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01311/13.09, allocations: 2.597 MB / 3.834 GB, free: 20.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003829/13.1, allocations: 442.9 kB / 3.834 GB, free: 20.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01573/13.11, allocations: 4.055 MB / 3.838 GB, free: 18.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006066/13.12, allocations: 240.8 kB / 3.838 GB, free: 18.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007408/13.12, allocations: 125.4 kB / 3.839 GB, free: 18.45 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 12 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase,orifice.state_b.phase,orifice.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 164 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 22,5 25} Notification: Performance of prepare postOptimizeDAE: time 0.000975/13.12, allocations: 213.2 kB / 3.839 GB, free: 18.28 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006346/13.12, allocations: 140.7 kB / 3.839 GB, free: 18.21 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03606/13.16, allocations: 8.922 MB / 3.848 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001321/13.16, allocations: 60.62 kB / 3.848 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/13.16, allocations: 0 / 3.848 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.81e-05/13.16, allocations: 13.17 kB / 3.848 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04822/13.21, allocations: 11.88 MB / 3.859 GB, free: 3.133 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-05/13.21, allocations: 3.703 kB / 3.859 GB, free: 3.133 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003218/13.21, allocations: 271.5 kB / 3.86 GB, free: 2.922 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1754/13.39, allocations: 9.479 MB / 3.869 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005912/13.39, allocations: 62.05 kB / 3.869 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01879/13.41, allocations: 5.505 MB / 3.874 GB, free: 8.551 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.707e-06/13.41, allocations: 4 kB / 3.874 GB, free: 8.547 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02716/13.43, allocations: 6.763 MB / 3.881 GB, free: 2.637 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002592/13.44, allocations: 0.6822 MB / 3.882 GB, free: 2.043 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008255/13.44, allocations: 32 kB / 3.882 GB, free: 2.012 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005558/13.44, allocations: 230.2 kB / 3.882 GB, free: 1.84 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007172/13.44, allocations: 132 kB / 3.882 GB, free: 1.766 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004053/13.44, allocations: 79.5 kB / 3.882 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001863/13.45, allocations: 0.7392 MB / 3.883 GB, free: 1.027 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.01e-07/13.45, allocations: 0 / 3.883 GB, free: 1.027 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.5149/13.96, allocations: 2.259 MB / 3.885 GB, free: 63.61 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 22,6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.03959/14, allocations: 9.712 MB / 3.894 GB, free: 61.93 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03123/14.03, allocations: 5.993 MB / 3.9 GB, free: 61.88 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.441e-05/14.03, allocations: 4.984 kB / 3.9 GB, free: 61.88 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01258/14.04, allocations: 2.826 MB / 3.903 GB, free: 61.85 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005343/14.05, allocations: 0.5899 MB / 3.904 GB, free: 61.83 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.346/14.39, allocations: 127.1 MB / 4.028 GB, free: 46.06 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/14.4, allocations: 1.639 MB / 4.029 GB, free: 44.74 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00177/14.4, allocations: 0.8134 MB / 4.03 GB, free: 44.62 MB / 0.5261 GB Notification: Performance of SimCode: time 1.403e-06/14.4, allocations: 0 / 4.03 GB, free: 44.62 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.116/19.51, allocations: 82.08 MB / 4.11 GB, free: 54.07 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent_res.mat does not exist to compare? outputFormat=mat