Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.974/1.974, allocations: 209.4 MB / 216.5 MB, free: 6.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.74e-05/2.739e-05, allocations: 0 / 267.6 MB, free: 4.945 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 48.7 MB / 316.3 MB, free: 4.152 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.952/8.059, allocations: 2.547 GB / 2.856 GB, free: 42.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/8.06, allocations: 77.2 kB / 2.856 GB, free: 42.06 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.766/12.83, allocations: 0.7714 GB / 3.627 GB, free: 29.17 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.006e-06/12.83, allocations: 2.125 kB / 3.627 GB, free: 29.17 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003846/12.83, allocations: 62.33 kB / 3.627 GB, free: 29.16 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01876/12.84, allocations: 3.737 MB / 3.631 GB, free: 27.35 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/12.84, allocations: 11.88 kB / 3.631 GB, free: 27.35 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009112/12.85, allocations: 0.8095 MB / 3.632 GB, free: 27.21 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008665/12.86, allocations: 2.093 MB / 3.634 GB, free: 26.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002562/12.86, allocations: 98.55 kB / 3.634 GB, free: 26.75 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009544/12.86, allocations: 118.2 kB / 3.634 GB, free: 26.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007627/12.87, allocations: 2.523 MB / 3.637 GB, free: 26.74 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008997/12.88, allocations: 2.785 MB / 3.639 GB, free: 26.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-05/12.88, allocations: 7.531 kB / 3.639 GB, free: 26.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004282/12.88, allocations: 6.406 kB / 3.639 GB, free: 26.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003212/12.88, allocations: 166.1 kB / 3.639 GB, free: 26.22 MB / 458.7 MB 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.2842/13.17, allocations: 78.58 MB / 3.716 GB, free: 16.46 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004753/13.17, allocations: 1.636 MB / 3.718 GB, free: 16.43 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002444/13.17, allocations: 0.9762 MB / 3.719 GB, free: 16.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05609/13.23, allocations: 17.45 MB / 3.736 GB, free: 16.55 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002983/13.23, allocations: 1.153 MB / 3.737 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=145): time 5.4e-06/13.23, allocations: 0 / 3.737 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=161): time 0.03564/13.27, allocations: 7.982 MB / 3.745 GB, free: 10.63 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002418/13.27, allocations: 384.2 kB / 3.745 GB, free: 10.18 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002767/13.27, allocations: 1.126 MB / 3.746 GB, free: 9.457 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005987/13.27, allocations: 29.7 kB / 3.746 GB, free: 9.422 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001375/13.27, allocations: 1.013 MB / 3.747 GB, free: 8.82 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00119/13.27, allocations: 0.5304 MB / 3.748 GB, free: 8.395 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002765/13.27, allocations: 0 / 3.748 GB, free: 8.395 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002686/13.28, allocations: 399.1 kB / 3.748 GB, free: 8.059 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002697/13.28, allocations: 1.008 MB / 3.749 GB, free: 7.535 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003532/13.28, allocations: 1.497 MB / 3.751 GB, free: 6.398 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02403/13.31, allocations: 3.302 MB / 3.754 GB, free: 4.578 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-05/13.31, allocations: 4 kB / 3.754 GB, free: 4.574 MB / 0.4948 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.03001/13.34, allocations: 5.007 MB / 3.759 GB, free: 1.648 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.3748/13.71, allocations: 5.255 MB / 3.764 GB, free: 71.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.744e-05/13.71, allocations: 15.03 kB / 3.764 GB, free: 71.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/13.71, allocations: 245.9 kB / 3.764 GB, free: 71.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004691/13.72, allocations: 0.5182 MB / 3.765 GB, free: 71.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002328/13.72, allocations: 2.524 MB / 3.767 GB, free: 69.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004619/13.72, allocations: 257.5 kB / 3.767 GB, free: 69.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008533/13.72, allocations: 101.3 kB / 3.767 GB, free: 69.25 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/13.72, allocations: 3.469 kB / 3.767 GB, free: 69.25 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02821/13.75, allocations: 4.573 MB / 3.772 GB, free: 69.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.638e-05/13.75, allocations: 17.53 kB / 3.772 GB, free: 69.17 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009057/13.75, allocations: 246.4 kB / 3.772 GB, free: 69.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004337/13.76, allocations: 0.5103 MB / 3.773 GB, free: 69.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/13.76, allocations: 2.521 MB / 3.775 GB, free: 67.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004023/13.76, allocations: 234.6 kB / 3.775 GB, free: 67.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005666/13.76, allocations: 102.5 kB / 3.775 GB, free: 67.07 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 22 (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,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.0008123/13.77, allocations: 203.5 kB / 3.776 GB, free: 66.93 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01019/13.78, allocations: 2.498 MB / 3.778 GB, free: 66.86 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009362/13.78, allocations: 183.4 kB / 3.778 GB, free: 66.86 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01659/13.79, allocations: 6.839 MB / 3.785 GB, free: 66.43 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.867e-05/13.79, allocations: 76.86 kB / 3.785 GB, free: 66.43 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/13.79, allocations: 3.562 kB / 3.785 GB, free: 66.43 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01823/13.81, allocations: 5.652 MB / 3.79 GB, free: 65.74 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02192/13.83, allocations: 9.246 MB / 3.799 GB, free: 65.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.456e-05/13.83, allocations: 2.438 kB / 3.799 GB, free: 65.28 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003155/13.84, allocations: 359.1 kB / 3.8 GB, free: 65.28 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001486/13.84, allocations: 339.3 kB / 3.8 GB, free: 65.24 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000512/13.84, allocations: 42.47 kB / 3.8 GB, free: 65.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002015/13.84, allocations: 2.681 MB / 3.803 GB, free: 63.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/13.84, allocations: 2.266 kB / 3.803 GB, free: 63.15 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01445/13.86, allocations: 6.409 MB / 3.809 GB, free: 62.56 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002335/13.86, allocations: 0.6953 MB / 3.81 GB, free: 62.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009015/13.86, allocations: 19.12 kB / 3.81 GB, free: 62.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003012/13.86, allocations: 162.5 kB / 3.81 GB, free: 62.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005149/13.86, allocations: 135.3 kB / 3.81 GB, free: 62.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002297/13.86, allocations: 66.92 kB / 3.81 GB, free: 62.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002178/13.87, allocations: 1.026 MB / 3.811 GB, free: 62.19 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.513e-06/13.87, allocations: 3.656 kB / 3.811 GB, free: 62.19 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01252/13.88, allocations: 2.618 MB / 3.814 GB, free: 62.15 MB / 0.4948 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: 43 ($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,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,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.02904/13.91, allocations: 10.06 MB / 3.823 GB, free: 60.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01135/13.92, allocations: 4.711 MB / 3.828 GB, free: 60.34 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/13.92, allocations: 0 / 3.828 GB, free: 60.34 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00461/13.92, allocations: 2.128 MB / 3.83 GB, free: 60.27 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007211/13.93, allocations: 0.769 MB / 3.831 GB, free: 60.25 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02135/13.95, allocations: 7.007 MB / 3.838 GB, free: 58.84 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002355/13.95, allocations: 2.214 MB / 3.84 GB, free: 58.07 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.009207/13.96, allocations: 2.856 MB / 3.843 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002907/13.97, allocations: 1.2 MB / 3.844 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of SimCode: time 1.533e-06/13.97, allocations: 3.094 kB / 3.844 GB, free: 58.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6624/14.63, allocations: 99.39 MB / 3.941 GB, free: 65.48 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/14.63, allocations: 174.1 kB / 3.941 GB, free: 65.29 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.031/22.66, allocations: 0 / 3.941 GB, free: 65.29 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat