Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.InverseParameterization,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_InverseParameterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.152/1.152, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.083e-05/3.095e-05, allocations: 4 kB / 148.2 MB, free: 6.141 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05735/0.05741, allocations: 25.17 MB / 173.4 MB, free: 12.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.455/4.512, allocations: 1.434 GB / 1.604 GB, free: 47.55 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/4.512, allocations: 65.2 kB / 1.604 GB, free: 47.55 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Fluid/Interfaces.mo:725:9-730:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 3.754/8.267, allocations: 0.6565 GB / 2.26 GB, free: 9.039 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.354e-06/8.267, allocations: 0 / 2.26 GB, free: 9.039 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001809/8.267, allocations: 39.91 kB / 2.26 GB, free: 9.004 MB / 282.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.01639/8.283, allocations: 2.514 MB / 2.263 GB, free: 6.453 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/8.283, allocations: 8.031 kB / 2.263 GB, free: 6.445 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008989/8.284, allocations: 150.3 kB / 2.263 GB, free: 6.297 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003597/8.288, allocations: 1.011 MB / 2.264 GB, free: 5.258 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/8.288, allocations: 44 kB / 2.264 GB, free: 5.215 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003155/8.288, allocations: 60 kB / 2.264 GB, free: 5.156 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005206/8.294, allocations: 1.984 MB / 2.266 GB, free: 3.168 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004061/8.298, allocations: 1.637 MB / 2.268 GB, free: 1.414 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.02e-05/8.298, allocations: 7.938 kB / 2.268 GB, free: 1.406 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001953/8.298, allocations: 4 kB / 2.268 GB, free: 1.402 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001776/8.298, allocations: 81.95 kB / 2.268 GB, free: 1.324 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.2602/8.558, allocations: 8.866 MB / 2.276 GB, free: 14.44 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003177/8.562, allocations: 1.112 MB / 2.277 GB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/8.563, allocations: 0.6323 MB / 2.278 GB, free: 14.4 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.7006/9.264, allocations: 134.8 MB / 2.41 GB, free: 75.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.782e-05/9.264, allocations: 50.06 kB / 2.41 GB, free: 75.7 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001711/9.266, allocations: 176.6 kB / 2.41 GB, free: 75.69 MB / 346.7 MB Notification: Performance of pre-optimization done (n=99): time 9.037e-06/9.266, allocations: 2 kB / 2.41 GB, free: 75.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.09193/9.358, allocations: 8.992 MB / 2.419 GB, free: 75.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.649e-05/9.358, allocations: 226.5 kB / 2.419 GB, free: 74.95 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/9.359, allocations: 0.6482 MB / 2.42 GB, free: 74.79 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005651/9.36, allocations: 28.83 kB / 2.42 GB, free: 74.76 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004025/9.36, allocations: 0.6044 MB / 2.42 GB, free: 74.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006445/9.361, allocations: 475.7 kB / 2.421 GB, free: 74.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002643/9.361, allocations: 0 / 2.421 GB, free: 74.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/9.361, allocations: 381 kB / 2.421 GB, free: 73.87 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002493/9.364, allocations: 1.123 MB / 2.422 GB, free: 73.87 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002787/9.367, allocations: 1.553 MB / 2.424 GB, free: 73.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/9.377, allocations: 1.852 MB / 2.425 GB, free: 73.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.543e-05/9.377, allocations: 3.688 kB / 2.425 GB, free: 73.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.05244/9.43, allocations: 6.12 MB / 2.431 GB, free: 73.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.325e-05/9.43, allocations: 11.88 kB / 2.431 GB, free: 73.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.199e-05/9.43, allocations: 17.72 kB / 2.431 GB, free: 73.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02395/9.454, allocations: 3.209 MB / 2.435 GB, free: 73.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00303/9.457, allocations: 342.6 kB / 2.435 GB, free: 73.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01853/9.476, allocations: 9.792 MB / 2.444 GB, free: 67.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004994/9.481, allocations: 167.9 kB / 2.445 GB, free: 67.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/9.482, allocations: 124.9 kB / 2.445 GB, free: 67.07 MB / 346.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.001191/9.483, allocations: 176.2 kB / 2.445 GB, free: 66.96 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02707/9.51, allocations: 4.461 MB / 2.449 GB, free: 66.78 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/9.511, allocations: 131.6 kB / 2.449 GB, free: 66.71 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03577/9.547, allocations: 7.981 MB / 2.457 GB, free: 66.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.865e-05/9.547, allocations: 50.73 kB / 2.457 GB, free: 66.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/9.547, allocations: 3.906 kB / 2.457 GB, free: 66.3 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.764e-05/9.548, allocations: 16.42 kB / 2.457 GB, free: 66.3 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02819/9.576, allocations: 10.8 MB / 2.468 GB, free: 65.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/9.576, allocations: 1.344 kB / 2.468 GB, free: 65.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002087/9.578, allocations: 226.4 kB / 2.468 GB, free: 65.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01816/9.596, allocations: 4.434 MB / 2.472 GB, free: 65.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005959/9.597, allocations: 40.8 kB / 2.472 GB, free: 65.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01982/9.617, allocations: 10.87 MB / 2.483 GB, free: 59.15 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/9.617, allocations: 0 / 2.483 GB, free: 59.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01752/9.634, allocations: 6.043 MB / 2.489 GB, free: 56.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002089/9.636, allocations: 0.6007 MB / 2.489 GB, free: 56.32 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006658/9.637, allocations: 4.875 kB / 2.489 GB, free: 56.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003979/9.641, allocations: 159 kB / 2.49 GB, free: 56.31 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005616/9.642, allocations: 131.2 kB / 2.49 GB, free: 56.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003255/9.642, allocations: 77.81 kB / 2.49 GB, free: 56.28 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009276/9.643, allocations: 492.6 kB / 2.49 GB, free: 56.04 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/9.643, allocations: 0 / 2.49 GB, free: 56.04 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.01001/9.653, allocations: 1.808 MB / 2.492 GB, free: 55.85 MB / 346.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.03117/9.684, allocations: 8.591 MB / 2.5 GB, free: 52.13 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.2495/9.934, allocations: 4.119 MB / 2.504 GB, free: 82.24 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/9.934, allocations: 2.062 kB / 2.504 GB, free: 82.24 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0125/9.946, allocations: 2.708 MB / 2.507 GB, free: 82.22 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005838/9.952, allocations: 0.5534 MB / 2.508 GB, free: 82.21 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01725/9.97, allocations: 4.737 MB / 2.512 GB, free: 81.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/9.971, allocations: 1.494 MB / 2.514 GB, free: 80.84 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001733/9.973, allocations: 0.6815 MB / 2.514 GB, free: 80.84 MB / 346.7 MB Notification: Performance of SimCode: time 1.362e-06/9.973, allocations: 2.281 kB / 2.514 GB, free: 80.84 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.627/15.6, allocations: 138.3 MB / 2.649 GB, free: 80.79 MB / 346.7 MB