Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.088/3.088, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.062e-05/3.077e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4232/0.4233, allocations: 54.85 MB / 354.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.53/10.96, allocations: 2.657 GB / 3.004 GB, free: 92.36 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002934/10.96, allocations: 76.02 kB / 3.004 GB, free: 92.32 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 5.465/16.42, allocations: 0.7928 GB / 3.796 GB, free: 32.16 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.075e-06/16.42, allocations: 0 / 3.796 GB, free: 32.16 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004582/16.42, allocations: 70.27 kB / 3.796 GB, free: 32.14 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.02424/16.45, allocations: 3.851 MB / 3.8 GB, free: 30.02 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.672e-05/16.45, allocations: 8.781 kB / 3.8 GB, free: 30.02 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001688/16.45, allocations: 215.3 kB / 3.8 GB, free: 29.91 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01399/16.46, allocations: 0.8489 MB / 3.801 GB, free: 29.69 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01248/16.48, allocations: 2.087 MB / 3.803 GB, free: 28.74 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004374/16.48, allocations: 114.8 kB / 3.803 GB, free: 28.72 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001354/16.48, allocations: 114.8 kB / 3.804 GB, free: 28.72 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01072/16.49, allocations: 2.527 MB / 3.806 GB, free: 27.85 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01259/16.5, allocations: 2.793 MB / 3.809 GB, free: 26.54 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000149/16.5, allocations: 10.66 kB / 3.809 GB, free: 26.53 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001028/16.5, allocations: 7.438 kB / 3.809 GB, free: 26.53 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004682/16.5, allocations: 170.2 kB / 3.809 GB, free: 26.5 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.9583/17.46, allocations: 78.61 MB / 3.886 GB, free: 32.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00649/17.47, allocations: 1.631 MB / 3.887 GB, free: 32.7 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003382/17.47, allocations: 0.9813 MB / 3.888 GB, free: 32.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08461/17.56, allocations: 17.46 MB / 3.905 GB, free: 21.54 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005582/17.56, allocations: 1.163 MB / 3.906 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=147): time 1.524e-05/17.56, allocations: 0 / 3.906 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=163): time 0.04613/17.61, allocations: 7.97 MB / 3.914 GB, free: 19.89 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/17.61, allocations: 387.4 kB / 3.915 GB, free: 19.46 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002809/17.61, allocations: 1.125 MB / 3.916 GB, free: 19.29 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004794/17.61, allocations: 32.48 kB / 3.916 GB, free: 19.26 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001224/17.61, allocations: 1.015 MB / 3.917 GB, free: 18.91 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008334/17.61, allocations: 0.5338 MB / 3.917 GB, free: 18.63 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002509/17.61, allocations: 4 kB / 3.917 GB, free: 18.62 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001695/17.61, allocations: 384.3 kB / 3.918 GB, free: 18.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002873/17.62, allocations: 1.019 MB / 3.919 GB, free: 18.31 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003097/17.62, allocations: 1.501 MB / 3.92 GB, free: 17.76 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02872/17.65, allocations: 3.306 MB / 3.923 GB, free: 17.69 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.841e-05/17.65, allocations: 3.312 kB / 3.923 GB, free: 17.69 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03787/17.69, allocations: 5.533 MB / 3.929 GB, free: 17.45 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001228/17.69, allocations: 5.262 MB / 3.934 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.843e-05/17.69, allocations: 19.5 kB / 3.934 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01677/17.71, allocations: 2.027 MB / 3.936 GB, free: 11.97 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00287/17.71, allocations: 313.2 kB / 3.936 GB, free: 11.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01211/17.72, allocations: 3.663 MB / 3.94 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005206/17.73, allocations: 253.9 kB / 3.94 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006997/17.73, allocations: 101.3 kB / 3.94 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/17.73, allocations: 5.391 kB / 3.94 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03543/17.76, allocations: 4.944 MB / 3.945 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.828e-05/17.76, allocations: 19.34 kB / 3.945 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01291/17.77, allocations: 1.541 MB / 3.946 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00336/17.78, allocations: 355.8 kB / 3.947 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007334/17.79, allocations: 2.688 MB / 3.949 GB, free: 26.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004604/17.79, allocations: 230.9 kB / 3.95 GB, free: 26.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005729/17.79, allocations: 103.8 kB / 3.95 GB, free: 26.6 MB / 0.5261 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.0009062/17.79, allocations: 190.5 kB / 3.95 GB, free: 26.46 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007169/17.79, allocations: 186.9 kB / 3.95 GB, free: 26.37 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01799/17.81, allocations: 6.827 MB / 3.957 GB, free: 25.78 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001147/17.81, allocations: 77.34 kB / 3.957 GB, free: 25.78 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/17.81, allocations: 128 / 3.957 GB, free: 25.78 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01382/17.82, allocations: 5.653 MB / 3.962 GB, free: 25.09 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02493/17.85, allocations: 9.25 MB / 3.971 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.387e-05/17.85, allocations: 4 kB / 3.971 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003948/17.85, allocations: 362.1 kB / 3.972 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001832/17.86, allocations: 337.3 kB / 3.972 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004041/17.86, allocations: 43.19 kB / 3.972 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002967/17.86, allocations: 2.688 MB / 3.975 GB, free: 22.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.136e-06/17.86, allocations: 4.281 kB / 3.975 GB, free: 22.36 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01837/17.88, allocations: 6.401 MB / 3.981 GB, free: 21.75 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003195/17.88, allocations: 0.6931 MB / 3.982 GB, free: 21.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001004/17.88, allocations: 18.97 kB / 3.982 GB, free: 21.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004116/17.89, allocations: 158.1 kB / 3.982 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008535/17.89, allocations: 139.3 kB / 3.982 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003311/17.89, allocations: 63.92 kB / 3.982 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002955/17.89, allocations: 1.027 MB / 3.983 GB, free: 21.32 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.71e-07/17.89, allocations: 0 / 3.983 GB, free: 21.32 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01492/17.9, allocations: 2.635 MB / 3.986 GB, free: 21.19 MB / 0.5261 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.03486/17.94, allocations: 10.1 MB / 3.995 GB, free: 19.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0143/17.95, allocations: 4.768 MB / 4 GB, free: 19.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/17.95, allocations: 0 / 4 GB, free: 19.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0061/17.96, allocations: 2.17 MB / 4.002 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009043/17.97, allocations: 0.7758 MB / 4.003 GB, free: 18.98 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02412/17.99, allocations: 7.023 MB / 4.01 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002743/18, allocations: 2.218 MB / 4.012 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008487/18, allocations: 1.926 MB / 4.014 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002995/18.01, allocations: 1.19 MB / 4.015 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of SimCode: time 1.933e-06/18.01, allocations: 0 / 4.015 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8905/18.9, allocations: 111.9 MB / 4.124 GB, free: 75.62 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002899/18.9, allocations: 187.9 kB / 4.124 GB, free: 75.43 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.23/29.13, allocations: 0 / 4.124 GB, free: 75.43 MB / 0.5417 GB