Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.InverseParameterization.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadModel(Modelica): time 1.026/1.026, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.789e-05/1.803e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04601/0.04604, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.285/3.331, allocations: 1.434 GB / 1.604 GB, free: 26.54 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/3.331, allocations: 69.95 kB / 1.604 GB, free: 26.54 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Interfaces.mo:725:9-730:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Interfaces.mo:335:3-337: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 2.998/6.329, allocations: 0.6566 GB / 2.26 GB, free: 2.527 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.074e-06/6.329, allocations: 0 / 2.26 GB, free: 2.527 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001054/6.33, allocations: 35.83 kB / 2.26 GB, free: 2.496 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.009946/6.34, allocations: 2.513 MB / 2.263 GB, free: 15.94 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/6.34, allocations: 8.031 kB / 2.263 GB, free: 15.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008151/6.34, allocations: 150.3 kB / 2.263 GB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00329/6.344, allocations: 1.011 MB / 2.264 GB, free: 14.75 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/6.344, allocations: 51.98 kB / 2.264 GB, free: 14.7 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003046/6.344, allocations: 60 kB / 2.264 GB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004584/6.349, allocations: 1.98 MB / 2.266 GB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003807/6.353, allocations: 1.637 MB / 2.267 GB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.77e-05/6.353, allocations: 4 kB / 2.267 GB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002008/6.353, allocations: 4 kB / 2.267 GB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001563/6.353, allocations: 85.83 kB / 2.268 GB, free: 10.81 MB / 282.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.01736/6.37, allocations: 8.873 MB / 2.276 GB, free: 1.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002789/6.373, allocations: 1.112 MB / 2.277 GB, free: 228 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.196/6.569, allocations: 0.6262 MB / 2.278 GB, free: 21.86 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5939/7.163, allocations: 134.8 MB / 2.41 GB, free: 54.31 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.12e-05/7.163, allocations: 44.48 kB / 2.41 GB, free: 54.27 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002514/7.166, allocations: 176.7 kB / 2.41 GB, free: 54.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=99): time 1.254e-05/7.166, allocations: 0.6562 kB / 2.41 GB, free: 54.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=147): time 0.06554/7.232, allocations: 9.005 MB / 2.419 GB, free: 53.71 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/7.232, allocations: 220.6 kB / 2.419 GB, free: 53.46 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/7.233, allocations: 0.6441 MB / 2.419 GB, free: 53.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004935/7.233, allocations: 33.67 kB / 2.419 GB, free: 53.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004028/7.234, allocations: 0.5986 MB / 2.42 GB, free: 52.97 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007264/7.235, allocations: 485.5 kB / 2.42 GB, free: 52.69 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002484/7.235, allocations: 0 / 2.42 GB, free: 52.69 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/7.235, allocations: 374.2 kB / 2.421 GB, free: 52.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002459/7.237, allocations: 1.118 MB / 2.422 GB, free: 52.38 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002722/7.24, allocations: 1.555 MB / 2.423 GB, free: 51.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009419/7.25, allocations: 1.848 MB / 2.425 GB, free: 51.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.172e-05/7.25, allocations: 3.531 kB / 2.425 GB, free: 51.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.03736/7.287, allocations: 6.125 MB / 2.431 GB, free: 51.58 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/7.287, allocations: 10.67 kB / 2.431 GB, free: 51.58 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/7.287, allocations: 15.97 kB / 2.431 GB, free: 51.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01815/7.305, allocations: 3.205 MB / 2.434 GB, free: 51.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002174/7.308, allocations: 344.7 kB / 2.435 GB, free: 51.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01538/7.323, allocations: 9.789 MB / 2.444 GB, free: 45.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003166/7.326, allocations: 176.5 kB / 2.444 GB, free: 45.33 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004848/7.327, allocations: 119.4 kB / 2.445 GB, free: 45.33 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: $DER.sink2.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: $DER.sink1.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: $DER.sink.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: $DER.source.ports[1].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [1] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pipe2.flowModel.m_flows[1]:DUMMY_DER(fixed = false ) "mass flow rates between states" type: Real [1] $DER.pipe1.flowModel.rhos_act[1]:DUMMY_DER(fixed = false ) "Actual density 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 $DER.orifice.zeta_nominal:DUMMY_DER(fixed = false ) 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: 11 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,orifice.state_b.phase,orifice.state_a.phase,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 initialization (149): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {5 19,5 31,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006944/7.327, allocations: 177.9 kB / 2.445 GB, free: 45.21 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004464/7.328, allocations: 128.1 kB / 2.445 GB, free: 45.14 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02702/7.355, allocations: 7.979 MB / 2.453 GB, free: 44.63 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.976e-05/7.355, allocations: 56.73 kB / 2.453 GB, free: 44.63 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/7.355, allocations: 0 / 2.453 GB, free: 44.63 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.753e-05/7.355, allocations: 11.64 kB / 2.453 GB, free: 44.63 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0252/7.38, allocations: 10.8 MB / 2.463 GB, free: 43.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.696e-05/7.38, allocations: 0 / 2.463 GB, free: 43.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001589/7.382, allocations: 233 kB / 2.463 GB, free: 43.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01446/7.397, allocations: 4.424 MB / 2.468 GB, free: 43.44 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004522/7.397, allocations: 47.58 kB / 2.468 GB, free: 43.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01687/7.414, allocations: 10.86 MB / 2.478 GB, free: 37.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.018e-06/7.414, allocations: 5.547 kB / 2.478 GB, free: 37.36 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01546/7.429, allocations: 6.04 MB / 2.484 GB, free: 34.01 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001815/7.431, allocations: 0.6259 MB / 2.485 GB, free: 33.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004135/7.432, allocations: 1.688 kB / 2.485 GB, free: 33.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2/7.632, allocations: 155.2 kB / 2.485 GB, free: 68.63 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005859/7.632, allocations: 129.8 kB / 2.485 GB, free: 68.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003671/7.633, allocations: 81.86 kB / 2.485 GB, free: 68.63 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001061/7.634, allocations: 493.2 kB / 2.486 GB, free: 68.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-06/7.634, allocations: 0 / 2.486 GB, free: 68.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00776/7.642, allocations: 1.811 MB / 2.488 GB, free: 68.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 29 ($cse1.phase,$cse1.region,$cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse28.phase,$cse31.phase,$cse36.phase,$cse36.region,$cse39.phase,$cse39.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 (113): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {5 17,1 1,6 42,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01143/7.653, allocations: 2.625 MB / 2.49 GB, free: 68.33 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01077/7.664, allocations: 3.745 MB / 2.494 GB, free: 68.29 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/7.664, allocations: 0.9688 kB / 2.494 GB, free: 68.29 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008749/7.673, allocations: 2.701 MB / 2.496 GB, free: 68.26 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003848/7.677, allocations: 0.5523 MB / 2.497 GB, free: 68.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00803/7.685, allocations: 3.892 MB / 2.501 GB, free: 67.64 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/7.686, allocations: 1.491 MB / 2.502 GB, free: 66.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006839/7.687, allocations: 140.7 kB / 2.502 GB, free: 66.91 MB / 330.7 MB Notification: Performance of SimCode: time 2.463e-06/7.687, allocations: 0 / 2.502 GB, free: 66.91 MB / 330.7 MB Notification: Performance of Templates: time 0.3601/8.047, allocations: 130.6 MB / 2.63 GB, free: 68.62 MB / 330.7 MB