Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.93/1.93, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.347e-05/4.364e-05, allocations: 8 kB / 273.2 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1046, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.857/7.961, allocations: 2.547 GB / 2.862 GB, free: 9.891 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/7.962, allocations: 73.22 kB / 2.862 GB, free: 9.855 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.51/12.47, allocations: 0.7778 GB / 3.64 GB, free: 25.98 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.875e-06/12.47, allocations: 0 / 3.64 GB, free: 25.98 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004784/12.47, allocations: 64.84 kB / 3.64 GB, free: 25.96 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.02525/12.5, allocations: 3.739 MB / 3.643 GB, free: 24.15 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.319e-05/12.5, allocations: 7.719 kB / 3.643 GB, free: 24.15 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001576/12.5, allocations: 293.7 kB / 3.644 GB, free: 24.11 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01484/12.51, allocations: 0.8201 MB / 3.644 GB, free: 23.97 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01315/12.53, allocations: 2.087 MB / 3.646 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005422/12.53, allocations: 178.9 kB / 3.647 GB, free: 23.51 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001465/12.53, allocations: 192.4 kB / 3.647 GB, free: 23.51 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01775/12.55, allocations: 3.534 MB / 3.65 GB, free: 23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001219/12.55, allocations: 2.5 kB / 3.65 GB, free: 23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006998/12.55, allocations: 92.34 kB / 3.65 GB, free: 23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004891/12.55, allocations: 159.4 kB / 3.65 GB, free: 22.99 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01449/12.56, allocations: 3.126 MB / 3.654 GB, free: 22.98 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.03615/12.6, allocations: 15.06 MB / 3.668 GB, free: 13.91 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007282/12.61, allocations: 2.207 MB / 3.67 GB, free: 13.88 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002271/12.61, allocations: 1.039 MB / 3.671 GB, free: 13.86 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05972/12.67, allocations: 18.85 MB / 3.69 GB, free: 17.76 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005836/12.67, allocations: 1.632 MB / 3.691 GB, free: 17.66 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 5.42e-06/12.67, allocations: 3.938 kB / 3.691 GB, free: 17.66 MB / 474.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe2.mediums[2].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=169): time 0.03552/12.71, allocations: 9.089 MB / 3.7 GB, free: 16.62 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001905/12.71, allocations: 283.5 kB / 3.701 GB, free: 16.31 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003127/12.71, allocations: 1.393 MB / 3.702 GB, free: 16.12 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005854/12.71, allocations: 56.67 kB / 3.702 GB, free: 16.09 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009085/12.72, allocations: 0.9224 MB / 3.703 GB, free: 15.36 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008587/12.72, allocations: 0.5812 MB / 3.703 GB, free: 14.91 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002184/12.72, allocations: 41.34 kB / 3.703 GB, free: 14.88 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002223/12.72, allocations: 391.2 kB / 3.704 GB, free: 14.54 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00255/12.72, allocations: 1.033 MB / 3.705 GB, free: 14.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00304/12.72, allocations: 1.529 MB / 3.706 GB, free: 13.18 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003199/12.73, allocations: 1.273 MB / 3.708 GB, free: 12.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/12.73, allocations: 3.844 kB / 3.708 GB, free: 12.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.008655/12.73, allocations: 2.96 MB / 3.71 GB, free: 11.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00205/12.74, allocations: 5.178 MB / 3.716 GB, free: 6.066 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-05/12.74, allocations: 17.34 kB / 3.716 GB, free: 6.066 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001379/12.74, allocations: 260.3 kB / 3.716 GB, free: 5.977 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004444/12.74, allocations: 0.5189 MB / 3.716 GB, free: 5.922 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002274/12.74, allocations: 2.498 MB / 3.719 GB, free: 3.668 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004265/12.75, allocations: 257.1 kB / 3.719 GB, free: 3.609 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006643/12.75, allocations: 103 kB / 3.719 GB, free: 3.59 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/12.75, allocations: 5.031 kB / 3.719 GB, free: 3.59 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00749/12.76, allocations: 2.809 MB / 3.722 GB, free: 1.371 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.877e-05/12.76, allocations: 16 kB / 3.722 GB, free: 1.355 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/12.76, allocations: 254 kB / 3.722 GB, free: 1.145 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004473/12.76, allocations: 0.5134 MB / 3.723 GB, free: 0.707 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/12.77, allocations: 2.496 MB / 3.725 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00346/12.77, allocations: 264.7 kB / 3.725 GB, free: 14.01 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004112/12.77, allocations: 99.55 kB / 3.725 GB, free: 13.92 MB / 490.7 MB 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,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].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.0008892/12.77, allocations: 270.7 kB / 3.726 GB, free: 13.65 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007323/12.77, allocations: 201.5 kB / 3.726 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01749/12.79, allocations: 7.696 MB / 3.733 GB, free: 6.551 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001269/12.79, allocations: 93.83 kB / 3.733 GB, free: 6.496 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/12.79, allocations: 0 / 3.733 GB, free: 6.496 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01369/12.8, allocations: 6.606 MB / 3.74 GB, free: 364 kB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4494/13.25, allocations: 10.86 MB / 3.751 GB, free: 55.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.031e-05/13.25, allocations: 0 / 3.751 GB, free: 55.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003679/13.26, allocations: 399.2 kB / 3.751 GB, free: 55.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002143/13.26, allocations: 354.2 kB / 3.751 GB, free: 55.33 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005727/13.26, allocations: 60.56 kB / 3.751 GB, free: 55.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002013/13.26, allocations: 2.568 MB / 3.754 GB, free: 53.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/13.26, allocations: 0 / 3.754 GB, free: 53.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01593/13.28, allocations: 6.895 MB / 3.761 GB, free: 52.82 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002498/13.28, allocations: 0.7449 MB / 3.761 GB, free: 52.72 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008679/13.28, allocations: 54.53 kB / 3.761 GB, free: 52.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003309/13.28, allocations: 202.1 kB / 3.761 GB, free: 52.71 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000564/13.28, allocations: 145.7 kB / 3.762 GB, free: 52.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002494/13.28, allocations: 64.98 kB / 3.762 GB, free: 52.71 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002726/13.29, allocations: 1.17 MB / 3.763 GB, free: 52.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.924e-06/13.29, allocations: 0 / 3.763 GB, free: 52.55 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01325/13.3, allocations: 2.746 MB / 3.766 GB, free: 52.55 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.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 (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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.02902/13.33, allocations: 10.18 MB / 3.775 GB, free: 51.32 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01331/13.34, allocations: 4.894 MB / 3.78 GB, free: 51.06 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/13.34, allocations: 0 / 3.78 GB, free: 51.06 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005637/13.35, allocations: 2.32 MB / 3.782 GB, free: 50.99 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008134/13.36, allocations: 0.868 MB / 3.783 GB, free: 50.96 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4264/13.78, allocations: 127.2 MB / 3.908 GB, free: 12.09 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002683/13.79, allocations: 2.261 MB / 3.91 GB, free: 10.33 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002878/13.79, allocations: 1.34 MB / 3.911 GB, free: 9.098 MB / 490.7 MB Notification: Performance of SimCode: time 1.362e-06/13.79, allocations: 0 / 3.911 GB, free: 9.098 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.201/19.99, allocations: 130.9 MB / 4.039 GB, free: 26.79 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat