Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,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.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar") Notification: Performance of loadModel(ModelicaTest): time 2.238/2.238, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.756e-05/1.778e-05, allocations: 0 / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2901, allocations: 54.85 MB / 358 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.437/6.727, allocations: 2.648 GB / 2.998 GB, free: 139.9 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/6.728, allocations: 76.89 kB / 2.998 GB, free: 139.9 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.267/9.994, allocations: 0.737 GB / 3.735 GB, free: 41.44 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.396e-06/9.994, allocations: 2.078 kB / 3.735 GB, free: 41.44 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001568/9.995, allocations: 38.97 kB / 3.735 GB, free: 41.44 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.0123/10.01, allocations: 2.715 MB / 3.738 GB, free: 40.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/10.01, allocations: 9.875 kB / 3.738 GB, free: 40.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006174/10.01, allocations: 0.6007 MB / 3.738 GB, free: 40.23 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003516/10.02, allocations: 1.088 MB / 3.739 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/10.02, allocations: 48.75 kB / 3.739 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004589/10.02, allocations: 61.94 kB / 3.739 GB, free: 39.89 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004282/10.02, allocations: 1.741 MB / 3.741 GB, free: 39.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003743/10.03, allocations: 1.545 MB / 3.743 GB, free: 39.54 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.277e-05/10.03, allocations: 11.28 kB / 3.743 GB, free: 39.54 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002147/10.03, allocations: 5.031 kB / 3.743 GB, free: 39.54 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001482/10.03, allocations: 81.02 kB / 3.743 GB, free: 39.54 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.367/10.39, allocations: 136.7 MB / 3.876 GB, free: 17.01 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00277/10.4, allocations: 1.054 MB / 3.877 GB, free: 16.54 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/10.4, allocations: 0.5365 MB / 3.878 GB, free: 16.26 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03727/10.43, allocations: 17.42 MB / 3.895 GB, free: 15.32 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.327e-05/10.43, allocations: 47.5 kB / 3.895 GB, free: 15.28 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001332/10.44, allocations: 185.7 kB / 3.895 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=91): time 5.714e-06/10.44, allocations: 0 / 3.895 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.07292/10.51, allocations: 9.735 MB / 3.905 GB, free: 9.598 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/10.51, allocations: 222.1 kB / 3.905 GB, free: 9.332 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001505/10.51, allocations: 0.7447 MB / 3.905 GB, free: 8.828 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003849/10.51, allocations: 29.7 kB / 3.906 GB, free: 8.793 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000522/10.51, allocations: 0.6526 MB / 3.906 GB, free: 8.336 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006672/10.51, allocations: 434.6 kB / 3.907 GB, free: 7.996 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/10.51, allocations: 0 / 3.907 GB, free: 7.996 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002248/10.51, allocations: 373 kB / 3.907 GB, free: 7.668 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002679/10.52, allocations: 1.267 MB / 3.908 GB, free: 7.07 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003165/10.52, allocations: 1.698 MB / 3.91 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008439/10.53, allocations: 1.892 MB / 3.912 GB, free: 4.98 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.928e-05/10.53, allocations: 6.062 kB / 3.912 GB, free: 4.977 MB / 0.5573 GB Notification: Performance of matching and sorting (n=208) (initialization): time 0.01595/10.54, allocations: 4.608 MB / 3.916 GB, free: 2.625 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.3278/10.87, allocations: 4.794 MB / 3.921 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.263e-05/10.87, allocations: 12.88 kB / 3.921 GB, free: 100.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01736/10.89, allocations: 3.962 MB / 3.925 GB, free: 100.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/10.89, allocations: 324 kB / 3.925 GB, free: 100.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/10.91, allocations: 5.757 MB / 3.931 GB, free: 99.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004559/10.91, allocations: 276.3 kB / 3.931 GB, free: 99.09 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005403/10.91, allocations: 123.4 kB / 3.931 GB, free: 99.09 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/10.91, allocations: 5.938 kB / 3.931 GB, free: 99.09 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01315/10.92, allocations: 2.9 MB / 3.934 GB, free: 99.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.713e-05/10.92, allocations: 11.88 kB / 3.934 GB, free: 99.06 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003011/10.93, allocations: 0.579 MB / 3.934 GB, free: 99.05 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002838/10.93, allocations: 448.5 kB / 3.935 GB, free: 99.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003212/10.93, allocations: 1.79 MB / 3.937 GB, free: 98.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002406/10.94, allocations: 181 kB / 3.937 GB, free: 98.01 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003221/10.94, allocations: 98.11 kB / 3.937 GB, free: 98.01 MB / 0.5573 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.000826/10.94, allocations: 162.4 kB / 3.937 GB, free: 97.91 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005441/10.94, allocations: 132 kB / 3.937 GB, free: 97.9 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01747/10.96, allocations: 6.674 MB / 3.944 GB, free: 97.67 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.571e-05/10.96, allocations: 33.88 kB / 3.944 GB, free: 97.67 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.778e-06/10.96, allocations: 0 / 3.944 GB, free: 97.67 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.207e-05/10.96, allocations: 12.38 kB / 3.944 GB, free: 97.67 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02072/10.98, allocations: 8.988 MB / 3.953 GB, free: 97.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/10.98, allocations: 3.969 kB / 3.953 GB, free: 97.12 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009412/10.98, allocations: 147.8 kB / 3.953 GB, free: 97.12 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01367/10.99, allocations: 5.245 MB / 3.958 GB, free: 97.03 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004238/10.99, allocations: 39.77 kB / 3.958 GB, free: 97.03 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01584/11.01, allocations: 6.894 MB / 3.965 GB, free: 95.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.121e-06/11.01, allocations: 3.406 kB / 3.965 GB, free: 95.91 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01498/11.02, allocations: 5.651 MB / 3.97 GB, free: 95.39 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001653/11.02, allocations: 0.6204 MB / 3.971 GB, free: 95.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005459/11.02, allocations: 5.984 kB / 3.971 GB, free: 95.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00348/11.03, allocations: 202.3 kB / 3.971 GB, free: 95.2 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003291/11.03, allocations: 86.98 kB / 3.971 GB, free: 95.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002876/11.03, allocations: 72.12 kB / 3.971 GB, free: 95.2 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001441/11.03, allocations: 0.7795 MB / 3.972 GB, free: 95.09 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.058e-06/11.03, allocations: 0 / 3.972 GB, free: 95.09 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009056/11.04, allocations: 2.065 MB / 3.974 GB, free: 95.09 MB / 0.5573 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.01056/11.05, allocations: 2.497 MB / 3.976 GB, free: 94.88 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01554/11.07, allocations: 4.785 MB / 3.981 GB, free: 94.83 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.001e-06/11.07, allocations: 3.531 kB / 3.981 GB, free: 94.83 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007488/11.07, allocations: 2.172 MB / 3.983 GB, free: 94.79 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003413/11.08, allocations: 493.4 kB / 3.984 GB, free: 94.78 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007344/11.08, allocations: 3.443 MB / 3.987 GB, free: 94.14 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/11.08, allocations: 1.451 MB / 3.988 GB, free: 93.42 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000652/11.09, allocations: 118.9 kB / 3.988 GB, free: 93.41 MB / 0.5573 GB Notification: Performance of SimCode: time 2.376e-06/11.09, allocations: 1.469 kB / 3.988 GB, free: 93.41 MB / 0.5573 GB Notification: Performance of Templates: time 0.1051/11.19, allocations: 68.49 MB / 4.055 GB, free: 89.22 MB / 0.5573 GB