Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.447/2.447, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.463e-05/2.461e-05, allocations: 4 kB / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3701, allocations: 54.86 MB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.626/8.997, allocations: 2.657 GB / 3.003 GB, free: 108.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/8.997, allocations: 86.48 kB / 3.004 GB, free: 108.1 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.625/13.62, allocations: 0.7905 GB / 3.794 GB, free: 29.38 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.334e-06/13.62, allocations: 0 / 3.794 GB, free: 29.38 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003224/13.62, allocations: 62.8 kB / 3.794 GB, free: 29.37 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.01871/13.64, allocations: 3.851 MB / 3.798 GB, free: 27.53 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/13.64, allocations: 8.906 kB / 3.798 GB, free: 27.53 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009845/13.65, allocations: 0.8484 MB / 3.799 GB, free: 27.39 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008911/13.66, allocations: 2.096 MB / 3.801 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002593/13.66, allocations: 92 kB / 3.801 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/13.66, allocations: 116.6 kB / 3.801 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008516/13.67, allocations: 2.527 MB / 3.803 GB, free: 26.91 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007882/13.68, allocations: 2.788 MB / 3.806 GB, free: 26.37 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.783e-05/13.68, allocations: 8 kB / 3.806 GB, free: 26.37 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003684/13.68, allocations: 5.656 kB / 3.806 GB, free: 26.37 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003598/13.68, allocations: 169.5 kB / 3.806 GB, free: 26.36 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.299/13.98, allocations: 78.64 MB / 3.883 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004174/13.98, allocations: 1.639 MB / 3.885 GB, free: 16.62 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002091/13.98, allocations: 0.9695 MB / 3.886 GB, free: 16.61 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06032/14.04, allocations: 17.45 MB / 3.903 GB, free: 19.35 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002909/14.05, allocations: 1.167 MB / 3.904 GB, free: 18.72 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 5.56e-06/14.05, allocations: 0 / 3.904 GB, free: 18.72 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.03712/14.08, allocations: 7.978 MB / 3.912 GB, free: 13.42 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002466/14.08, allocations: 386.5 kB / 3.912 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00253/14.09, allocations: 1.123 MB / 3.913 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005451/14.09, allocations: 29.7 kB / 3.913 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.00113/14.09, allocations: 1.013 MB / 3.914 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009213/14.09, allocations: 0.5409 MB / 3.915 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/14.09, allocations: 0 / 3.915 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002505/14.09, allocations: 391.2 kB / 3.915 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002624/14.09, allocations: 1.021 MB / 3.916 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003384/14.1, allocations: 1.491 MB / 3.917 GB, free: 9.195 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02678/14.12, allocations: 3.313 MB / 3.921 GB, free: 7.363 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.411e-05/14.12, allocations: 4 kB / 3.921 GB, free: 7.359 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03279/14.16, allocations: 4.983 MB / 3.926 GB, free: 4.449 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.4578/14.61, allocations: 5.265 MB / 3.931 GB, free: 74.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/14.61, allocations: 15.36 kB / 3.931 GB, free: 74.28 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/14.62, allocations: 245.3 kB / 3.931 GB, free: 74.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0054/14.62, allocations: 0.5162 MB / 3.931 GB, free: 74.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002441/14.62, allocations: 2.52 MB / 3.934 GB, free: 72.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004871/14.63, allocations: 257 kB / 3.934 GB, free: 72.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000832/14.63, allocations: 105.8 kB / 3.934 GB, free: 72.19 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/14.63, allocations: 6.75 kB / 3.934 GB, free: 72.19 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0302/14.66, allocations: 4.556 MB / 3.939 GB, free: 72.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.397e-05/14.66, allocations: 17.22 kB / 3.939 GB, free: 72.12 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009855/14.66, allocations: 242.8 kB / 3.939 GB, free: 72.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004673/14.67, allocations: 0.5179 MB / 3.939 GB, free: 72.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002127/14.67, allocations: 2.516 MB / 3.942 GB, free: 70.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004061/14.67, allocations: 229.4 kB / 3.942 GB, free: 70.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005299/14.67, allocations: 107.6 kB / 3.942 GB, free: 70.02 MB / 0.5417 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 (251): * Single equations (assignments): 244 * 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: 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 prepare postOptimizeDAE: time 0.0008529/14.67, allocations: 206.7 kB / 3.942 GB, free: 69.89 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01034/14.68, allocations: 2.495 MB / 3.945 GB, free: 69.81 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007875/14.68, allocations: 184.9 kB / 3.945 GB, free: 69.81 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01572/14.7, allocations: 6.827 MB / 3.952 GB, free: 69.39 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001015/14.7, allocations: 82.14 kB / 3.952 GB, free: 69.38 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/14.7, allocations: 5 kB / 3.952 GB, free: 69.38 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01202/14.71, allocations: 5.641 MB / 3.957 GB, free: 68.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02185/14.73, allocations: 9.245 MB / 3.966 GB, free: 68.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.15e-05/14.73, allocations: 0 / 3.966 GB, free: 68.24 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003478/14.74, allocations: 357.1 kB / 3.967 GB, free: 68.24 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/14.74, allocations: 339.3 kB / 3.967 GB, free: 68.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004927/14.74, allocations: 34.8 kB / 3.967 GB, free: 68.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002088/14.74, allocations: 2.685 MB / 3.97 GB, free: 66.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.049e-05/14.74, allocations: 7.469 kB / 3.97 GB, free: 66.11 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01549/14.76, allocations: 6.403 MB / 3.976 GB, free: 65.52 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002401/14.76, allocations: 0.6927 MB / 3.977 GB, free: 65.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009226/14.76, allocations: 27.34 kB / 3.977 GB, free: 65.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003391/14.76, allocations: 154.9 kB / 3.977 GB, free: 65.26 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006245/14.76, allocations: 137.1 kB / 3.977 GB, free: 65.26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002561/14.77, allocations: 62.52 kB / 3.977 GB, free: 65.26 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002431/14.77, allocations: 1.032 MB / 3.978 GB, free: 65.15 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.02e-07/14.77, allocations: 4.25 kB / 3.978 GB, free: 65.15 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01334/14.78, allocations: 2.631 MB / 3.981 GB, free: 65.15 MB / 0.5417 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.03749/14.82, allocations: 10.09 MB / 3.99 GB, free: 63.59 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01907/14.84, allocations: 4.711 MB / 3.995 GB, free: 63.35 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.464e-05/14.84, allocations: 0 / 3.995 GB, free: 63.35 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009496/14.85, allocations: 2.165 MB / 3.997 GB, free: 63.28 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01384/14.86, allocations: 0.7692 MB / 3.998 GB, free: 63.27 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03588/14.9, allocations: 7.029 MB / 4.005 GB, free: 61.89 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003996/14.9, allocations: 2.225 MB / 4.007 GB, free: 61.12 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01587/14.92, allocations: 2.852 MB / 4.01 GB, free: 61.08 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004331/14.92, allocations: 1.203 MB / 4.011 GB, free: 61.07 MB / 0.5417 GB Notification: Performance of SimCode: time 1.963e-06/14.92, allocations: 3.938 kB / 4.011 GB, free: 61.07 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2697/15.19, allocations: 99.91 MB / 4.108 GB, free: 27.56 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002549/15.19, allocations: 184.9 kB / 4.109 GB, free: 27.37 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.043/23.23, allocations: 0 / 4.109 GB, free: 27.37 MB / 0.5417 GB