Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.256/3.256, allocations: 235.2 MB / 242.3 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.239e-05/3.255e-05, allocations: 4 kB / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4862/0.4863, allocations: 54.85 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.31/10.8, allocations: 2.657 GB / 3.004 GB, free: 90.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003311/10.8, allocations: 78.27 kB / 3.004 GB, free: 90.36 MB / 490.7 MB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/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 6.618/17.41, allocations: 0.8545 GB / 3.858 GB, free: 36.77 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.747e-06/17.41, allocations: 0.5938 kB / 3.858 GB, free: 36.77 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004715/17.41, allocations: 71.23 kB / 3.858 GB, free: 36.77 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.0224/17.44, allocations: 3.846 MB / 3.862 GB, free: 35.48 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.046e-05/17.44, allocations: 10.53 kB / 3.862 GB, free: 35.48 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001337/17.44, allocations: 213.1 kB / 3.862 GB, free: 35.44 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01219/17.45, allocations: 0.8404 MB / 3.863 GB, free: 35.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01102/17.46, allocations: 2.097 MB / 3.865 GB, free: 34.86 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003615/17.46, allocations: 113.8 kB / 3.865 GB, free: 34.85 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/17.46, allocations: 121.5 kB / 3.865 GB, free: 34.85 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009405/17.47, allocations: 2.531 MB / 3.868 GB, free: 34.84 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01322/17.49, allocations: 2.787 MB / 3.87 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002119/17.49, allocations: 9.75 kB / 3.87 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0015/17.49, allocations: 6.656 kB / 3.87 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007127/17.49, allocations: 163.3 kB / 3.871 GB, free: 34.29 MB / 0.5105 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.5052/17.99, allocations: 78.63 MB / 3.947 GB, free: 25.66 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007488/18, allocations: 1.635 MB / 3.949 GB, free: 25.62 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004403/18.01, allocations: 0.9761 MB / 3.95 GB, free: 25.61 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1093/18.12, allocations: 17.46 MB / 3.967 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005726/18.12, allocations: 1.152 MB / 3.968 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 1.118e-05/18.12, allocations: 0 / 3.968 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.05873/18.18, allocations: 7.969 MB / 3.976 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003882/18.18, allocations: 386.8 kB / 3.976 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004398/18.18, allocations: 1.134 MB / 3.977 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007343/18.19, allocations: 25.7 kB / 3.977 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001927/18.19, allocations: 1.013 MB / 3.978 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001624/18.19, allocations: 0.5397 MB / 3.979 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004988/18.19, allocations: 0 / 3.979 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0004509/18.19, allocations: 390.7 kB / 3.979 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004805/18.19, allocations: 1.009 MB / 3.98 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005651/18.2, allocations: 1.505 MB / 3.982 GB, free: 9.98 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04013/18.24, allocations: 3.307 MB / 3.985 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.752e-05/18.24, allocations: 4.844 kB / 3.985 GB, free: 9.902 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.0434/18.28, allocations: 5.535 MB / 3.99 GB, free: 9.668 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002916/18.29, allocations: 5.261 MB / 3.996 GB, free: 20.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001025/18.29, allocations: 14.19 kB / 3.996 GB, free: 20.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01842/18.31, allocations: 2.028 MB / 3.997 GB, free: 20.19 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003085/18.31, allocations: 313.9 kB / 3.998 GB, free: 20.19 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01318/18.32, allocations: 3.661 MB / 4.001 GB, free: 19.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005529/18.33, allocations: 255.4 kB / 4.002 GB, free: 19.57 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008085/18.33, allocations: 104.6 kB / 4.002 GB, free: 19.56 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/18.33, allocations: 6.562 kB / 4.002 GB, free: 19.56 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03723/18.37, allocations: 4.943 MB / 4.007 GB, free: 19.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-05/18.37, allocations: 21.62 kB / 4.007 GB, free: 19.45 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0134/18.38, allocations: 1.547 MB / 4.008 GB, free: 19.39 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003398/18.38, allocations: 361.6 kB / 4.008 GB, free: 19.39 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007323/18.39, allocations: 2.681 MB / 4.011 GB, free: 18.83 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004809/18.4, allocations: 224.1 kB / 4.011 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008151/18.4, allocations: 102.2 kB / 4.011 GB, free: 18.8 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 158 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.001013/18.4, allocations: 193.2 kB / 4.012 GB, free: 18.66 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007888/18.4, allocations: 189.4 kB / 4.012 GB, free: 18.56 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01973/18.42, allocations: 6.824 MB / 4.018 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001274/18.42, allocations: 74.56 kB / 4.018 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.677e-05/18.42, allocations: 2.688 kB / 4.018 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01486/18.43, allocations: 5.649 MB / 4.024 GB, free: 17.22 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02549/18.46, allocations: 9.258 MB / 4.033 GB, free: 16.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.408e-05/18.46, allocations: 0 / 4.033 GB, free: 16.63 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003929/18.46, allocations: 359.2 kB / 4.033 GB, free: 16.63 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001908/18.46, allocations: 338 kB / 4.034 GB, free: 16.58 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004641/18.46, allocations: 41.3 kB / 4.034 GB, free: 16.58 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002971/18.47, allocations: 2.695 MB / 4.036 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/18.47, allocations: 0 / 4.036 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01761/18.49, allocations: 6.402 MB / 4.043 GB, free: 10.73 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002662/18.49, allocations: 0.6904 MB / 4.043 GB, free: 10.23 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009072/18.49, allocations: 24.69 kB / 4.043 GB, free: 10.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003718/18.49, allocations: 153.4 kB / 4.043 GB, free: 10.11 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007108/18.49, allocations: 146.3 kB / 4.044 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003149/18.49, allocations: 61 kB / 4.044 GB, free: 9.992 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002969/18.5, allocations: 1.031 MB / 4.045 GB, free: 9.387 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.653e-06/18.5, allocations: 0 / 4.045 GB, free: 9.387 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01631/18.51, allocations: 2.636 MB / 4.047 GB, free: 6.914 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03999/18.55, allocations: 10.09 MB / 4.057 GB, free: 308 kB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.5561/19.11, allocations: 4.941 MB / 4.062 GB, free: 79.6 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/19.11, allocations: 3.969 kB / 4.062 GB, free: 79.6 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.007335/19.12, allocations: 2.168 MB / 4.064 GB, free: 79.54 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01031/19.13, allocations: 0.7657 MB / 4.065 GB, free: 79.52 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02877/19.16, allocations: 7.024 MB / 4.072 GB, free: 78.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003773/19.16, allocations: 2.217 MB / 4.074 GB, free: 77.63 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.009093/19.17, allocations: 1.926 MB / 4.076 GB, free: 77.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003307/19.17, allocations: 1.19 MB / 4.077 GB, free: 77.59 MB / 0.5573 GB Notification: Performance of SimCode: time 2.324e-06/19.17, allocations: 5.531 kB / 4.077 GB, free: 77.59 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4736/19.65, allocations: 111.8 MB / 4.186 GB, free: 70.39 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003063/19.65, allocations: 193.8 kB / 4.186 GB, free: 70.19 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.21/29.86, allocations: 1.094 kB / 4.186 GB, free: 70.19 MB / 0.5573 GB