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 2.428/2.428, allocations: 235.2 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.539e-05/2.521e-05, allocations: 3.438 kB / 299.6 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.399/0.3991, allocations: 54.87 MB / 354.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.451/8.85, allocations: 2.657 GB / 3.004 GB, free: 116.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/8.851, allocations: 72.47 kB / 3.004 GB, free: 116.4 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 4.692/13.54, allocations: 0.7917 GB / 3.795 GB, free: 33.35 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.816e-06/13.54, allocations: 0 / 3.795 GB, free: 33.35 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003329/13.54, allocations: 67.08 kB / 3.795 GB, free: 33.34 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.01869/13.56, allocations: 3.846 MB / 3.799 GB, free: 31.44 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/13.56, allocations: 7.281 kB / 3.799 GB, free: 31.44 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009946/13.57, allocations: 0.8496 MB / 3.8 GB, free: 31.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009267/13.58, allocations: 2.095 MB / 3.802 GB, free: 30.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002633/13.58, allocations: 94.69 kB / 3.802 GB, free: 30.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009741/13.58, allocations: 110.3 kB / 3.802 GB, free: 30.79 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008115/13.59, allocations: 2.536 MB / 3.805 GB, free: 30.78 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009025/13.6, allocations: 2.793 MB / 3.807 GB, free: 30.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/13.6, allocations: 10.66 kB / 3.807 GB, free: 30.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000492/13.6, allocations: 6.688 kB / 3.807 GB, free: 30.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003657/13.6, allocations: 160.8 kB / 3.808 GB, free: 30.19 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.3265/13.93, allocations: 78.84 MB / 3.885 GB, free: 3.25 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005155/13.93, allocations: 1.629 MB / 3.886 GB, free: 1.609 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00263/13.94, allocations: 0.9691 MB / 3.887 GB, free: 0.6367 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5326/14.47, allocations: 17.45 MB / 3.904 GB, free: 56.66 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002883/14.47, allocations: 1.164 MB / 3.905 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=147): time 5.069e-06/14.47, allocations: 0 / 3.905 GB, free: 56.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=163): time 0.03251/14.5, allocations: 7.972 MB / 3.913 GB, free: 55.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/14.5, allocations: 387.8 kB / 3.913 GB, free: 54.67 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002261/14.51, allocations: 1.125 MB / 3.915 GB, free: 54.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003244/14.51, allocations: 30.75 kB / 3.915 GB, free: 54.47 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009996/14.51, allocations: 1.012 MB / 3.916 GB, free: 54.12 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007431/14.51, allocations: 0.5389 MB / 3.916 GB, free: 53.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/14.51, allocations: 0 / 3.916 GB, free: 53.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001586/14.51, allocations: 393.1 kB / 3.916 GB, free: 53.54 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002467/14.51, allocations: 1.018 MB / 3.917 GB, free: 53.53 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002745/14.51, allocations: 1.5 MB / 3.919 GB, free: 52.99 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02584/14.54, allocations: 3.305 MB / 3.922 GB, free: 52.97 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.52e-05/14.54, allocations: 6.031 kB / 3.922 GB, free: 52.97 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03285/14.57, allocations: 5.53 MB / 3.928 GB, free: 52.79 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001145/14.57, allocations: 5.262 MB / 3.933 GB, free: 47.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.875e-05/14.57, allocations: 17.67 kB / 3.933 GB, free: 47.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01462/14.59, allocations: 2.033 MB / 3.935 GB, free: 47.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002597/14.59, allocations: 310.2 kB / 3.935 GB, free: 47.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01248/14.6, allocations: 3.655 MB / 3.939 GB, free: 46.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006285/14.61, allocations: 258.5 kB / 3.939 GB, free: 46.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000872/14.61, allocations: 105.9 kB / 3.939 GB, free: 46.81 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/14.61, allocations: 2.594 kB / 3.939 GB, free: 46.81 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03265/14.64, allocations: 4.944 MB / 3.944 GB, free: 46.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.789e-05/14.64, allocations: 18.33 kB / 3.944 GB, free: 46.75 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01392/14.66, allocations: 1.543 MB / 3.945 GB, free: 46.72 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003702/14.66, allocations: 362.2 kB / 3.946 GB, free: 46.72 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008065/14.67, allocations: 2.679 MB / 3.948 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00532/14.67, allocations: 230.5 kB / 3.948 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004793/14.68, allocations: 105 kB / 3.949 GB, free: 46.15 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.001024/14.68, allocations: 194.9 kB / 3.949 GB, free: 46.01 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01541/14.69, allocations: 2.495 MB / 3.951 GB, free: 45.82 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009722/14.69, allocations: 182.1 kB / 3.951 GB, free: 45.73 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02376/14.72, allocations: 6.827 MB / 3.958 GB, free: 45.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001522/14.72, allocations: 79.05 kB / 3.958 GB, free: 45.17 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.961e-05/14.72, allocations: 5.75 kB / 3.958 GB, free: 45.17 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01332/14.73, allocations: 5.641 MB / 3.964 GB, free: 44.49 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02281/14.75, allocations: 9.251 MB / 3.973 GB, free: 43.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-05/14.75, allocations: 1.156 kB / 3.973 GB, free: 43.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003687/14.76, allocations: 364.3 kB / 3.973 GB, free: 43.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001745/14.76, allocations: 333.8 kB / 3.973 GB, free: 43.87 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003971/14.76, allocations: 39.61 kB / 3.973 GB, free: 43.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002169/14.76, allocations: 2.689 MB / 3.976 GB, free: 41.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.555e-06/14.76, allocations: 3.938 kB / 3.976 GB, free: 41.78 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01454/14.78, allocations: 6.402 MB / 3.982 GB, free: 41.19 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002062/14.78, allocations: 0.6924 MB / 3.983 GB, free: 40.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000702/14.78, allocations: 23.11 kB / 3.983 GB, free: 40.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003207/14.78, allocations: 162.2 kB / 3.983 GB, free: 40.88 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005381/14.78, allocations: 140.5 kB / 3.983 GB, free: 40.87 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002423/14.78, allocations: 64.11 kB / 3.983 GB, free: 40.87 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00232/14.78, allocations: 1.03 MB / 3.984 GB, free: 40.76 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.02e-07/14.78, allocations: 0 / 3.984 GB, free: 40.76 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01201/14.8, allocations: 2.632 MB / 3.987 GB, free: 40.64 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.02956/14.83, allocations: 10.08 MB / 3.997 GB, free: 39.05 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0117/14.84, allocations: 4.774 MB / 4.001 GB, free: 38.78 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/14.84, allocations: 2.781 kB / 4.001 GB, free: 38.78 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004993/14.84, allocations: 2.168 MB / 4.003 GB, free: 38.71 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007941/14.85, allocations: 0.7711 MB / 4.004 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02183/14.87, allocations: 7.023 MB / 4.011 GB, free: 37.27 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00237/14.88, allocations: 2.218 MB / 4.013 GB, free: 36.51 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007331/14.88, allocations: 1.932 MB / 4.015 GB, free: 36.47 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002692/14.89, allocations: 1.192 MB / 4.016 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of SimCode: time 1.573e-06/14.89, allocations: 0 / 4.016 GB, free: 36.46 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7339/15.62, allocations: 109.5 MB / 4.123 GB, free: 61.86 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002399/15.62, allocations: 186.2 kB / 4.123 GB, free: 61.66 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.357/23.98, allocations: 4 kB / 4.123 GB, free: 61.66 MB / 0.5261 GB