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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.327/2.327, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.128e-05/2.114e-05, allocations: 0 / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3546, allocations: 54.85 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.018/8.373, allocations: 2.648 GB / 2.998 GB, free: 106.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/8.373, allocations: 84.2 kB / 2.998 GB, free: 106.6 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.967/12.34, allocations: 0.737 GB / 3.735 GB, free: 38.02 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.813e-06/12.34, allocations: 1.203 kB / 3.735 GB, free: 38.02 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001393/12.34, allocations: 35.12 kB / 3.735 GB, free: 38.02 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.01654/12.36, allocations: 2.725 MB / 3.738 GB, free: 36.71 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/12.36, allocations: 7.562 kB / 3.738 GB, free: 36.71 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009667/12.37, allocations: 0.5958 MB / 3.738 GB, free: 36.63 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005486/12.37, allocations: 1.097 MB / 3.739 GB, free: 36.3 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/12.37, allocations: 49.7 kB / 3.739 GB, free: 36.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004585/12.37, allocations: 64.31 kB / 3.74 GB, free: 36.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006179/12.38, allocations: 1.737 MB / 3.741 GB, free: 36.29 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005393/12.38, allocations: 1.544 MB / 3.743 GB, free: 35.95 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.845e-05/12.38, allocations: 7.219 kB / 3.743 GB, free: 35.95 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003009/12.38, allocations: 3.531 kB / 3.743 GB, free: 35.95 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002329/12.39, allocations: 79.7 kB / 3.743 GB, free: 35.95 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.9936/13.38, allocations: 136.7 MB / 3.876 GB, free: 83.1 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005565/13.38, allocations: 1.046 MB / 3.877 GB, free: 83.07 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002055/13.39, allocations: 0.5315 MB / 3.878 GB, free: 83.06 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05836/13.44, allocations: 17.42 MB / 3.895 GB, free: 72.19 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.634e-05/13.45, allocations: 42.12 kB / 3.895 GB, free: 72.15 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001937/13.45, allocations: 175.7 kB / 3.895 GB, free: 72.15 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=91): time 6.402e-06/13.45, allocations: 0 / 3.895 GB, free: 72.15 MB / 0.5417 GB Notification: Performance of matching and sorting (n=129): time 0.1389/13.59, allocations: 9.756 MB / 3.905 GB, free: 71.66 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/13.59, allocations: 221.3 kB / 3.905 GB, free: 71.41 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001928/13.59, allocations: 0.7421 MB / 3.906 GB, free: 71.26 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006109/13.59, allocations: 25.7 kB / 3.906 GB, free: 71.23 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000659/13.59, allocations: 0.653 MB / 3.906 GB, free: 70.89 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001017/13.59, allocations: 432.7 kB / 3.907 GB, free: 70.67 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004883/13.59, allocations: 3.125 kB / 3.907 GB, free: 70.67 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001879/13.59, allocations: 370.8 kB / 3.907 GB, free: 70.36 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005044/13.6, allocations: 1.264 MB / 3.908 GB, free: 70.36 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00483/13.6, allocations: 1.708 MB / 3.91 GB, free: 69.87 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01615/13.62, allocations: 1.895 MB / 3.912 GB, free: 69.85 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.54e-05/13.62, allocations: 3.938 kB / 3.912 GB, free: 69.85 MB / 0.5417 GB Notification: Performance of matching and sorting (n=208) (initialization): time 0.03233/13.65, allocations: 4.602 MB / 3.916 GB, free: 69.74 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001627/13.65, allocations: 4.795 MB / 3.921 GB, free: 64.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.843e-05/13.65, allocations: 10.81 kB / 3.921 GB, free: 64.75 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03589/13.69, allocations: 3.957 MB / 3.925 GB, free: 64.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003779/13.69, allocations: 324.8 kB / 3.925 GB, free: 64.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02307/13.71, allocations: 5.747 MB / 3.931 GB, free: 63.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007165/13.72, allocations: 281.7 kB / 3.931 GB, free: 63.65 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006712/13.72, allocations: 124.8 kB / 3.931 GB, free: 63.65 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/13.72, allocations: 5.062 kB / 3.931 GB, free: 63.65 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01887/13.74, allocations: 2.907 MB / 3.934 GB, free: 63.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.364e-05/13.74, allocations: 11.25 kB / 3.934 GB, free: 63.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00428/13.75, allocations: 0.5678 MB / 3.934 GB, free: 63.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003991/13.75, allocations: 456.8 kB / 3.935 GB, free: 63.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00463/13.75, allocations: 1.79 MB / 3.937 GB, free: 62.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003517/13.76, allocations: 179.5 kB / 3.937 GB, free: 62.54 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003064/13.76, allocations: 98.98 kB / 3.937 GB, free: 62.54 MB / 0.5417 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.orifice.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate in design flow direction" type: Real $DER.pipe1.flowModel.states[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy" type: Real [2] $DER.pipe1.flowModel.mus_act[1]:DUMMY_DER(fixed = false ) "Actual viscosity per segment" type: Real [1] $DER.pump.m_flow:DUMMY_DER(fixed = false ) "Mass flow rate (total)" type: Real $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real 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,pump.heatTransfer.states[1].phase,source.medium.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 (154): * Single equations (assignments): 152 * 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 {5 21,6 24} Notification: Performance of prepare postOptimizeDAE: time 0.001058/13.76, allocations: 168.2 kB / 3.937 GB, free: 62.43 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01703/13.78, allocations: 4.116 MB / 3.941 GB, free: 62.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007683/13.78, allocations: 134.5 kB / 3.941 GB, free: 62.23 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02085/13.8, allocations: 6.672 MB / 3.948 GB, free: 61.91 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.266e-05/13.8, allocations: 36.97 kB / 3.948 GB, free: 61.91 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/13.8, allocations: 0 / 3.948 GB, free: 61.91 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.441e-05/13.8, allocations: 8.25 kB / 3.948 GB, free: 61.91 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02557/13.82, allocations: 9.004 MB / 3.957 GB, free: 61.33 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-05/13.82, allocations: 3.719 kB / 3.957 GB, free: 61.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/13.83, allocations: 147.2 kB / 3.957 GB, free: 61.33 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01794/13.84, allocations: 5.24 MB / 3.962 GB, free: 61.23 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006286/13.84, allocations: 36.73 kB / 3.962 GB, free: 61.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02182/13.87, allocations: 6.903 MB / 3.969 GB, free: 60.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.478e-06/13.87, allocations: 1.969 kB / 3.969 GB, free: 60.11 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01777/13.88, allocations: 5.65 MB / 3.974 GB, free: 59.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/13.89, allocations: 0.6226 MB / 3.975 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005155/13.89, allocations: 3.75 kB / 3.975 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005115/13.89, allocations: 192.4 kB / 3.975 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003228/13.89, allocations: 97.5 kB / 3.975 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002853/13.89, allocations: 71.14 kB / 3.975 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001507/13.89, allocations: 0.781 MB / 3.976 GB, free: 59.28 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.31e-07/13.89, allocations: 0 / 3.976 GB, free: 59.28 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01021/13.9, allocations: 2.058 MB / 3.978 GB, free: 59.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 15 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse21.phase,$cse21.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {5 21,6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.02961/13.93, allocations: 8.31 MB / 3.986 GB, free: 57.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0211/13.95, allocations: 4.784 MB / 3.991 GB, free: 57.64 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/13.95, allocations: 0 / 3.991 GB, free: 57.64 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01084/13.97, allocations: 2.175 MB / 3.993 GB, free: 57.61 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004949/13.97, allocations: 482.6 kB / 3.993 GB, free: 57.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/13.99, allocations: 4.256 MB / 3.997 GB, free: 56.82 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/13.99, allocations: 1.45 MB / 3.999 GB, free: 56.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001448/13.99, allocations: 0.6581 MB / 3.999 GB, free: 56.01 MB / 0.5417 GB Notification: Performance of SimCode: time 7.92e-07/13.99, allocations: 0 / 3.999 GB, free: 56.01 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.22/19.21, allocations: 76.04 MB / 4.074 GB, free: 84.38 MB / 0.5417 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