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 2.538/2.538, allocations: 235.1 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.512e-05/2.511e-05, allocations: 0 / 299.6 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4187/0.4188, allocations: 54.87 MB / 354.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.245/8.664, allocations: 2.657 GB / 3.004 GB, free: 118.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/8.664, allocations: 76.53 kB / 3.004 GB, free: 118.8 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.928/13.59, allocations: 0.8532 GB / 3.857 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.334e-06/13.59, allocations: 0 / 3.857 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003696/13.59, allocations: 67.3 kB / 3.857 GB, free: 10.31 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.02374/13.62, allocations: 3.851 MB / 3.861 GB, free: 6.41 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.188e-05/13.62, allocations: 12.03 kB / 3.861 GB, free: 6.398 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01568/13.63, allocations: 0.8361 MB / 3.861 GB, free: 5.559 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/13.64, allocations: 2.099 MB / 3.864 GB, free: 3.449 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002348/13.64, allocations: 95.97 kB / 3.864 GB, free: 3.355 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007061/13.64, allocations: 116 kB / 3.864 GB, free: 3.242 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008038/13.65, allocations: 2.53 MB / 3.866 GB, free: 0.707 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009948/13.66, allocations: 2.794 MB / 3.869 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.806e-05/13.66, allocations: 3.938 kB / 3.869 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004621/13.66, allocations: 11.95 kB / 3.869 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004572/13.66, allocations: 163.5 kB / 3.869 GB, free: 13.54 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.8043/14.47, allocations: 78.62 MB / 3.946 GB, free: 20.69 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004362/14.47, allocations: 1.628 MB / 3.947 GB, free: 20.66 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002345/14.47, allocations: 0.9817 MB / 3.948 GB, free: 20.64 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06141/14.54, allocations: 17.45 MB / 3.965 GB, free: 25.2 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002873/14.54, allocations: 1.168 MB / 3.967 GB, free: 25.07 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=147): time 5.5e-06/14.54, allocations: 0 / 3.967 GB, free: 25.07 MB / 0.5417 GB Notification: Performance of matching and sorting (n=163): time 0.03627/14.58, allocations: 7.973 MB / 3.974 GB, free: 23.55 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002667/14.58, allocations: 389.5 kB / 3.975 GB, free: 23.12 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002607/14.58, allocations: 1.129 MB / 3.976 GB, free: 22.95 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005478/14.58, allocations: 28.08 kB / 3.976 GB, free: 22.92 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001182/14.58, allocations: 1.01 MB / 3.977 GB, free: 22.57 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009466/14.58, allocations: 0.5432 MB / 3.977 GB, free: 22.29 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/14.58, allocations: 4 kB / 3.977 GB, free: 22.29 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000256/14.58, allocations: 388.6 kB / 3.978 GB, free: 21.98 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/14.58, allocations: 1.015 MB / 3.979 GB, free: 21.97 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002986/14.59, allocations: 1.497 MB / 3.98 GB, free: 21.42 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02628/14.61, allocations: 3.315 MB / 3.983 GB, free: 21.35 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.118e-05/14.61, allocations: 3.219 kB / 3.983 GB, free: 21.35 MB / 0.5417 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.03335/14.65, allocations: 5.53 MB / 3.989 GB, free: 21.11 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002397/14.65, allocations: 5.264 MB / 3.994 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.702e-05/14.65, allocations: 13.31 kB / 3.994 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01471/14.66, allocations: 2.025 MB / 3.996 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002595/14.67, allocations: 315.1 kB / 3.996 GB, free: 15.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/14.68, allocations: 3.659 MB / 4 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004545/14.68, allocations: 253.8 kB / 4 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005487/14.68, allocations: 102.7 kB / 4 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/14.68, allocations: 5.281 kB / 4 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03122/14.71, allocations: 4.945 MB / 4.005 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.695e-05/14.71, allocations: 19.47 kB / 4.005 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01131/14.73, allocations: 1.545 MB / 4.007 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002968/14.73, allocations: 355.7 kB / 4.007 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006117/14.74, allocations: 2.681 MB / 4.01 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004053/14.74, allocations: 231.3 kB / 4.01 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004104/14.74, allocations: 100.8 kB / 4.01 GB, free: 14.27 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 (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.0008442/14.74, allocations: 196.8 kB / 4.01 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01015/14.75, allocations: 2.495 MB / 4.012 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007599/14.75, allocations: 186.7 kB / 4.013 GB, free: 13.83 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0157/14.77, allocations: 6.826 MB / 4.019 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001065/14.77, allocations: 74.64 kB / 4.019 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/14.77, allocations: 2.812 kB / 4.019 GB, free: 13.26 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01223/14.78, allocations: 5.655 MB / 4.025 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02176/14.8, allocations: 9.252 MB / 4.034 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-05/14.8, allocations: 4 kB / 4.034 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003395/14.8, allocations: 361.5 kB / 4.034 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001634/14.81, allocations: 328.1 kB / 4.035 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004946/14.81, allocations: 41.95 kB / 4.035 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002674/14.81, allocations: 2.694 MB / 4.037 GB, free: 9.883 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/14.81, allocations: 7.406 kB / 4.037 GB, free: 9.883 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01561/14.83, allocations: 6.404 MB / 4.044 GB, free: 9.281 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002469/14.83, allocations: 0.6883 MB / 4.044 GB, free: 9.008 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009129/14.83, allocations: 25.64 kB / 4.044 GB, free: 9.008 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003445/14.83, allocations: 165.6 kB / 4.044 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005829/14.83, allocations: 131 kB / 4.045 GB, free: 8.977 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002576/14.83, allocations: 67.09 kB / 4.045 GB, free: 8.977 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002469/14.84, allocations: 1.03 MB / 4.046 GB, free: 8.867 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.002e-06/14.84, allocations: 0 / 4.046 GB, free: 8.867 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01349/14.85, allocations: 2.634 MB / 4.048 GB, free: 8.742 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.03189/14.88, allocations: 10.1 MB / 4.058 GB, free: 18.89 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01247/14.89, allocations: 4.772 MB / 4.063 GB, free: 16.15 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/14.89, allocations: 0 / 4.063 GB, free: 16.15 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005591/14.9, allocations: 2.169 MB / 4.065 GB, free: 15.05 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008279/14.91, allocations: 0.7705 MB / 4.066 GB, free: 14.63 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02483/14.93, allocations: 7.012 MB / 4.072 GB, free: 9.746 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003113/14.94, allocations: 2.224 MB / 4.075 GB, free: 8.09 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.008104/14.94, allocations: 1.927 MB / 4.076 GB, free: 6.953 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002842/14.95, allocations: 1.197 MB / 4.078 GB, free: 6.832 MB / 0.5573 GB Notification: Performance of SimCode: time 1.343e-06/14.95, allocations: 0 / 4.078 GB, free: 6.832 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7397/15.69, allocations: 109.8 MB / 4.185 GB, free: 76.05 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003054/15.69, allocations: 178.1 kB / 4.185 GB, free: 75.86 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.485/24.17, allocations: 3.938 kB / 4.185 GB, free: 75.86 MB / 0.5573 GB