Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.InverseParameterization.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) Running command: translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.3 MB / 179.2 MB, free: 8.168 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.898e-05/1.914e-05, allocations: 4 kB / 222.5 MB, free: 8.789 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07164/0.07169, allocations: 38.77 MB / 261.3 MB, free: 1.934 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.184/6.256, allocations: 2.529 GB / 2.784 GB, free: 74.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/6.256, allocations: 75.38 kB / 2.785 GB, free: 74.03 MB / 346.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.117/9.374, allocations: 0.7178 GB / 3.502 GB, free: 21.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.156e-06/9.374, allocations: 0 / 3.502 GB, free: 21.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001282/9.374, allocations: 47.98 kB / 3.502 GB, free: 21.3 MB / 378.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.01095/9.385, allocations: 2.607 MB / 3.505 GB, free: 20 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/9.385, allocations: 7.094 kB / 3.505 GB, free: 20 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005915/9.391, allocations: 0.59 MB / 3.506 GB, free: 19.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003087/9.394, allocations: 1.09 MB / 3.507 GB, free: 19.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.679e-05/9.394, allocations: 41.47 kB / 3.507 GB, free: 19.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002589/9.394, allocations: 64.94 kB / 3.507 GB, free: 19.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003972/9.398, allocations: 1.739 MB / 3.508 GB, free: 19.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003426/9.402, allocations: 1.542 MB / 3.51 GB, free: 19.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.025e-05/9.402, allocations: 5.219 kB / 3.51 GB, free: 19.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001906/9.402, allocations: 4.188 kB / 3.51 GB, free: 19.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001251/9.402, allocations: 90.64 kB / 3.51 GB, free: 19.23 MB / 378.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.6111/10.01, allocations: 136.7 MB / 3.644 GB, free: 11.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002755/10.02, allocations: 1.053 MB / 3.645 GB, free: 11.08 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/10.02, allocations: 0.5282 MB / 3.645 GB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03991/10.06, allocations: 17.42 MB / 3.662 GB, free: 15.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/10.06, allocations: 45.41 kB / 3.662 GB, free: 15.59 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001343/10.06, allocations: 175.8 kB / 3.662 GB, free: 15.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=91): time 5.522e-06/10.06, allocations: 0 / 3.662 GB, free: 15.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=129): time 0.07535/10.13, allocations: 9.747 MB / 3.672 GB, free: 14.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/10.13, allocations: 227.6 kB / 3.672 GB, free: 14.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001346/10.14, allocations: 0.7452 MB / 3.673 GB, free: 14.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004011/10.14, allocations: 25.7 kB / 3.673 GB, free: 14.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004231/10.14, allocations: 0.6546 MB / 3.673 GB, free: 14.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005383/10.14, allocations: 432.9 kB / 3.674 GB, free: 13.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/10.14, allocations: 0 / 3.674 GB, free: 13.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002164/10.14, allocations: 376.8 kB / 3.674 GB, free: 13.67 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002581/10.14, allocations: 1.264 MB / 3.675 GB, free: 13.67 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003029/10.14, allocations: 1.705 MB / 3.677 GB, free: 13.17 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00938/10.15, allocations: 1.892 MB / 3.679 GB, free: 13.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.98e-05/10.15, allocations: 3.906 kB / 3.679 GB, free: 13.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.01677/10.17, allocations: 4.607 MB / 3.683 GB, free: 12.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002261/10.17, allocations: 4.795 MB / 3.688 GB, free: 7.961 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.68e-05/10.17, allocations: 10.31 kB / 3.688 GB, free: 7.961 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01755/10.19, allocations: 3.969 MB / 3.692 GB, free: 7.855 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/10.19, allocations: 329.1 kB / 3.692 GB, free: 7.645 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01562/10.21, allocations: 5.748 MB / 3.698 GB, free: 4.438 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004487/10.21, allocations: 269 kB / 3.698 GB, free: 4.246 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005061/10.21, allocations: 123.2 kB / 3.698 GB, free: 4.176 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/10.21, allocations: 4 kB / 3.698 GB, free: 4.172 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01676/10.23, allocations: 2.907 MB / 3.701 GB, free: 2.652 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-05/10.23, allocations: 12 kB / 3.701 GB, free: 2.641 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003878/10.23, allocations: 0.5719 MB / 3.702 GB, free: 2.332 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002567/10.23, allocations: 457.5 kB / 3.702 GB, free: 2.008 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003527/10.24, allocations: 1.788 MB / 3.704 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002395/10.24, allocations: 180.5 kB / 3.704 GB, free: 484 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002874/10.24, allocations: 102.9 kB / 3.704 GB, free: 416 kB / 426.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.0008577/10.24, allocations: 157 kB / 3.704 GB, free: 292 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005523/10.24, allocations: 129.8 kB / 3.704 GB, free: 164 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02014/10.26, allocations: 6.717 MB / 3.711 GB, free: 12.96 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.635e-05/10.26, allocations: 38.19 kB / 3.711 GB, free: 12.94 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.451e-06/10.26, allocations: 0 / 3.711 GB, free: 12.94 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.077e-05/10.26, allocations: 8.203 kB / 3.711 GB, free: 12.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02185/10.28, allocations: 8.989 MB / 3.72 GB, free: 8.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/10.28, allocations: 4.906 kB / 3.72 GB, free: 8.746 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009242/10.29, allocations: 152.6 kB / 3.72 GB, free: 8.637 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01399/10.3, allocations: 5.241 MB / 3.725 GB, free: 5.488 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003997/10.3, allocations: 43.36 kB / 3.725 GB, free: 5.473 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01664/10.32, allocations: 6.901 MB / 3.732 GB, free: 1.73 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-06/10.32, allocations: 0 / 3.732 GB, free: 1.73 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2687/10.59, allocations: 5.648 MB / 3.737 GB, free: 83.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/10.59, allocations: 0.6188 MB / 3.738 GB, free: 83.73 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005119/10.59, allocations: 3.188 kB / 3.738 GB, free: 83.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003581/10.59, allocations: 203.8 kB / 3.738 GB, free: 83.73 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003899/10.59, allocations: 91.61 kB / 3.738 GB, free: 83.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003193/10.59, allocations: 72.17 kB / 3.738 GB, free: 83.73 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001553/10.59, allocations: 0.7813 MB / 3.739 GB, free: 83.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 1e-06/10.59, allocations: 2.062 kB / 3.739 GB, free: 83.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009393/10.6, allocations: 2.049 MB / 3.741 GB, free: 83.62 MB / 442.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.01083/10.61, allocations: 2.474 MB / 3.744 GB, free: 83.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01705/10.63, allocations: 4.779 MB / 3.748 GB, free: 83.41 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.777e-06/10.63, allocations: 3.375 kB / 3.748 GB, free: 83.41 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008686/10.64, allocations: 2.176 MB / 3.75 GB, free: 83.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003729/10.64, allocations: 495.2 kB / 3.751 GB, free: 83.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007489/10.65, allocations: 3.452 MB / 3.754 GB, free: 82.74 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/10.65, allocations: 1.444 MB / 3.756 GB, free: 82.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006192/10.65, allocations: 126.4 kB / 3.756 GB, free: 82.01 MB / 442.7 MB Notification: Performance of SimCode: time 1.671e-06/10.65, allocations: 2.906 kB / 3.756 GB, free: 82.01 MB / 442.7 MB Notification: Performance of Templates: time 0.1025/10.76, allocations: 68.28 MB / 3.822 GB, free: 77.89 MB / 442.7 MB