Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|eps_m_flow_turbulent|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|orifice.port_b.m_flow|orifice.port_b.p|orifice.port_b.h_outflow|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|p_set.y|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent") Notification: Performance of loadModel(ModelicaTest): time 1.984/1.984, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.587e-05/1.594e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.264, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.19/6.454, allocations: 2.538 GB / 2.85 GB, free: 94.54 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/6.454, allocations: 76.86 kB / 2.85 GB, free: 94.54 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.123/9.577, allocations: 0.718 GB / 3.568 GB, free: 35.63 MB / 458.7 MB Notification: Performance of FrontEnd: time 5.124e-06/9.577, allocations: 0 / 3.568 GB, free: 35.63 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000131/9.578, allocations: 37.73 kB / 3.568 GB, free: 35.62 MB / 458.7 MB 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.01089/9.588, allocations: 2.612 MB / 3.571 GB, free: 34.31 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/9.589, allocations: 9 kB / 3.571 GB, free: 34.31 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00598/9.595, allocations: 0.5862 MB / 3.571 GB, free: 34.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003322/9.598, allocations: 1.084 MB / 3.572 GB, free: 33.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/9.598, allocations: 46.56 kB / 3.572 GB, free: 33.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003624/9.598, allocations: 59.56 kB / 3.572 GB, free: 33.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00439/9.603, allocations: 1.746 MB / 3.574 GB, free: 33.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0038/9.607, allocations: 1.549 MB / 3.576 GB, free: 33.55 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.498e-05/9.607, allocations: 6.188 kB / 3.576 GB, free: 33.55 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002185/9.607, allocations: 1.844 kB / 3.576 GB, free: 33.55 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001356/9.607, allocations: 94.16 kB / 3.576 GB, free: 33.54 MB / 458.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.6558/10.26, allocations: 136.6 MB / 3.709 GB, free: 21.09 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003011/10.27, allocations: 1.047 MB / 3.71 GB, free: 21.05 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001162/10.27, allocations: 0.531 MB / 3.711 GB, free: 21.04 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03994/10.31, allocations: 17.42 MB / 3.728 GB, free: 25.59 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/10.31, allocations: 47.03 kB / 3.728 GB, free: 25.55 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001406/10.31, allocations: 177.6 kB / 3.728 GB, free: 25.55 MB / 490.7 MB Notification: Performance of pre-optimization done (n=91): time 6.347e-06/10.31, allocations: 0 / 3.728 GB, free: 25.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=129): time 0.07629/10.39, allocations: 9.752 MB / 3.737 GB, free: 24.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001647/10.39, allocations: 228.1 kB / 3.738 GB, free: 24.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/10.39, allocations: 0.741 MB / 3.738 GB, free: 24.55 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005036/10.39, allocations: 25.7 kB / 3.738 GB, free: 24.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005271/10.39, allocations: 0.6543 MB / 3.739 GB, free: 24.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008303/10.39, allocations: 433.8 kB / 3.739 GB, free: 23.96 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003501/10.39, allocations: 3.812 kB / 3.739 GB, free: 23.96 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002508/10.39, allocations: 368.8 kB / 3.74 GB, free: 23.65 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002838/10.39, allocations: 1.265 MB / 3.741 GB, free: 23.65 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003098/10.4, allocations: 1.705 MB / 3.743 GB, free: 23.15 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008639/10.4, allocations: 1.896 MB / 3.745 GB, free: 23.11 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.281e-05/10.4, allocations: 2.469 kB / 3.745 GB, free: 23.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.01686/10.42, allocations: 4.606 MB / 3.749 GB, free: 22.97 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002303/10.42, allocations: 4.789 MB / 3.754 GB, free: 17.94 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.448e-05/10.42, allocations: 17.91 kB / 3.754 GB, free: 17.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01636/10.44, allocations: 3.956 MB / 3.758 GB, free: 17.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/10.44, allocations: 328.7 kB / 3.758 GB, free: 17.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01685/10.46, allocations: 5.748 MB / 3.764 GB, free: 16.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004793/10.46, allocations: 275.9 kB / 3.764 GB, free: 16.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006797/10.46, allocations: 122.3 kB / 3.764 GB, free: 16.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/10.46, allocations: 7.328 kB / 3.764 GB, free: 16.73 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01509/10.48, allocations: 2.905 MB / 3.767 GB, free: 16.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.276e-05/10.48, allocations: 14.91 kB / 3.767 GB, free: 16.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003146/10.48, allocations: 0.5648 MB / 3.767 GB, free: 16.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002969/10.49, allocations: 459 kB / 3.768 GB, free: 16.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004157/10.49, allocations: 1.79 MB / 3.77 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002892/10.49, allocations: 175.4 kB / 3.77 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003893/10.49, allocations: 99.69 kB / 3.77 GB, free: 15.54 MB / 490.7 MB 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.0009271/10.49, allocations: 164.3 kB / 3.77 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005517/10.49, allocations: 128.2 kB / 3.77 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01812/10.51, allocations: 6.688 MB / 3.777 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.463e-05/10.51, allocations: 36.48 kB / 3.777 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/10.51, allocations: 0 / 3.777 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.621e-05/10.51, allocations: 10.83 kB / 3.777 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02195/10.53, allocations: 8.985 MB / 3.785 GB, free: 14.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.49e-05/10.53, allocations: 3.656 kB / 3.785 GB, free: 14.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009183/10.54, allocations: 142.8 kB / 3.786 GB, free: 14.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01378/10.55, allocations: 5.237 MB / 3.791 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004598/10.55, allocations: 43.31 kB / 3.791 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01677/10.57, allocations: 6.904 MB / 3.797 GB, free: 11.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.865e-06/10.57, allocations: 4 kB / 3.797 GB, free: 11.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01526/10.58, allocations: 5.643 MB / 3.803 GB, free: 8.445 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00177/10.58, allocations: 0.6297 MB / 3.804 GB, free: 8.066 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005293/10.58, allocations: 0 / 3.804 GB, free: 8.066 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003537/10.59, allocations: 195.8 kB / 3.804 GB, free: 7.926 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003834/10.59, allocations: 100.6 kB / 3.804 GB, free: 7.883 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003014/10.59, allocations: 71.55 kB / 3.804 GB, free: 7.848 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001384/10.59, allocations: 0.783 MB / 3.805 GB, free: 7.371 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.91e-07/10.59, allocations: 0 / 3.805 GB, free: 7.371 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008465/10.6, allocations: 2.048 MB / 3.807 GB, free: 5.633 MB / 490.7 MB 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.01076/10.61, allocations: 2.48 MB / 3.809 GB, free: 3.918 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01536/10.63, allocations: 4.782 MB / 3.814 GB, free: 1.426 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.407e-06/10.63, allocations: 1.688 kB / 3.814 GB, free: 1.426 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008035/10.63, allocations: 2.174 MB / 3.816 GB, free: 356 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003493/10.64, allocations: 487.1 kB / 3.816 GB, free: 88 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00873/10.65, allocations: 3.469 MB / 3.82 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001465/10.65, allocations: 1.45 MB / 3.821 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006845/10.65, allocations: 128.1 kB / 3.821 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of SimCode: time 1.84e-06/10.65, allocations: 0 / 3.821 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of Templates: time 0.4104/11.06, allocations: 68.28 MB / 3.888 GB, free: 71.43 MB / 0.4948 GB