Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.926/1.926, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.069e-05/4.078e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1107, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.053/8.164, allocations: 2.548 GB / 2.862 GB, free: 9.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/8.164, allocations: 77.7 kB / 2.862 GB, free: 9.711 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 5.051/13.21, allocations: 0.8401 GB / 3.702 GB, free: 19.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.154e-06/13.21, allocations: 0 / 3.702 GB, free: 19.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003306/13.22, allocations: 63.94 kB / 3.702 GB, free: 19.25 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.01788/13.23, allocations: 3.733 MB / 3.706 GB, free: 15.95 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/13.23, allocations: 8.031 kB / 3.706 GB, free: 15.95 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001321/13.23, allocations: 294.8 kB / 3.706 GB, free: 15.65 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008794/13.24, allocations: 0.8126 MB / 3.707 GB, free: 14.83 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00809/13.25, allocations: 2.091 MB / 3.709 GB, free: 12.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/13.25, allocations: 183.7 kB / 3.709 GB, free: 12.52 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008539/13.25, allocations: 203.9 kB / 3.709 GB, free: 12.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01074/13.26, allocations: 3.534 MB / 3.713 GB, free: 8.602 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.349e-05/13.26, allocations: 11.88 kB / 3.713 GB, free: 8.59 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004146/13.26, allocations: 87.97 kB / 3.713 GB, free: 8.504 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002941/13.26, allocations: 159.5 kB / 3.713 GB, free: 8.348 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01068/13.28, allocations: 3.122 MB / 3.716 GB, free: 5.223 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.03445/13.31, allocations: 15.03 MB / 3.731 GB, free: 4.949 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008409/13.32, allocations: 2.213 MB / 3.733 GB, free: 2.734 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003169/13.32, allocations: 1.043 MB / 3.734 GB, free: 1.691 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4776/13.8, allocations: 18.83 MB / 3.752 GB, free: 25.19 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02168/13.82, allocations: 1.63 MB / 3.754 GB, free: 25.11 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 8.195e-06/13.82, allocations: 1.156 kB / 3.754 GB, free: 25.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=169): time 0.05973/13.88, allocations: 6.939 MB / 3.761 GB, free: 24.45 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/13.88, allocations: 276.8 kB / 3.761 GB, free: 24.14 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003485/13.88, allocations: 1.399 MB / 3.762 GB, free: 23.96 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006346/13.88, allocations: 60.7 kB / 3.762 GB, free: 23.93 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/13.89, allocations: 0.9221 MB / 3.763 GB, free: 23.55 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001094/13.89, allocations: 0.5819 MB / 3.764 GB, free: 23.26 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002481/13.89, allocations: 38.34 kB / 3.764 GB, free: 23.26 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001737/13.89, allocations: 394 kB / 3.764 GB, free: 22.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002708/13.89, allocations: 1.036 MB / 3.765 GB, free: 22.94 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00325/13.89, allocations: 1.515 MB / 3.767 GB, free: 22.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003471/13.9, allocations: 1.277 MB / 3.768 GB, free: 22.34 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.226e-05/13.9, allocations: 3.469 kB / 3.768 GB, free: 22.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01023/13.91, allocations: 3.518 MB / 3.771 GB, free: 22.19 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001303/13.91, allocations: 5.175 MB / 3.776 GB, free: 16.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.021e-05/13.91, allocations: 18.09 kB / 3.776 GB, free: 16.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0234/13.93, allocations: 2.746 MB / 3.779 GB, free: 16.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002419/13.93, allocations: 319 kB / 3.779 GB, free: 16.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007435/13.94, allocations: 3.292 MB / 3.783 GB, free: 16.22 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004183/13.95, allocations: 260 kB / 3.783 GB, free: 16.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004522/13.95, allocations: 101.9 kB / 3.783 GB, free: 16.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/13.95, allocations: 5.438 kB / 3.783 GB, free: 16.21 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008783/13.96, allocations: 3.226 MB / 3.786 GB, free: 16.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-05/13.96, allocations: 21.19 kB / 3.786 GB, free: 16.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009877/13.97, allocations: 1.571 MB / 3.788 GB, free: 16.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002728/13.97, allocations: 358.8 kB / 3.788 GB, free: 16.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004972/13.97, allocations: 2.554 MB / 3.79 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003295/13.98, allocations: 257.3 kB / 3.791 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003277/13.98, allocations: 99.72 kB / 3.791 GB, free: 15.54 MB / 474.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 (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.0007668/13.98, allocations: 264.5 kB / 3.791 GB, free: 15.39 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007383/13.98, allocations: 204.6 kB / 3.791 GB, free: 15.29 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01456/13.99, allocations: 7.687 MB / 3.799 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/13.99, allocations: 90.03 kB / 3.799 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/13.99, allocations: 3.953 kB / 3.799 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01207/14.01, allocations: 6.599 MB / 3.805 GB, free: 13.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02269/14.03, allocations: 10.82 MB / 3.816 GB, free: 13.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/14.03, allocations: 3.688 kB / 3.816 GB, free: 13.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003493/14.03, allocations: 400.7 kB / 3.816 GB, free: 13.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00199/14.03, allocations: 356.8 kB / 3.817 GB, free: 12.98 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005865/14.03, allocations: 67.23 kB / 3.817 GB, free: 12.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/14.04, allocations: 2.567 MB / 3.819 GB, free: 10.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/14.04, allocations: 3.594 kB / 3.819 GB, free: 10.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01453/14.05, allocations: 6.892 MB / 3.826 GB, free: 10.27 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00253/14.05, allocations: 0.7454 MB / 3.827 GB, free: 9.934 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009008/14.05, allocations: 49.81 kB / 3.827 GB, free: 9.934 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003479/14.06, allocations: 202.5 kB / 3.827 GB, free: 9.926 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006412/14.06, allocations: 146.1 kB / 3.827 GB, free: 9.926 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002411/14.06, allocations: 66.14 kB / 3.827 GB, free: 9.926 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002875/14.06, allocations: 1.167 MB / 3.828 GB, free: 9.766 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.373e-06/14.06, allocations: 0 / 3.828 GB, free: 9.766 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01413/14.08, allocations: 2.75 MB / 3.831 GB, free: 9.641 MB / 474.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.03006/14.11, allocations: 10.18 MB / 3.841 GB, free: 8.27 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01324/14.12, allocations: 4.927 MB / 3.846 GB, free: 7.977 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.819e-06/14.12, allocations: 0 / 3.846 GB, free: 7.977 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005713/14.13, allocations: 2.325 MB / 3.848 GB, free: 7.457 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007723/14.13, allocations: 0.8549 MB / 3.849 GB, free: 7.273 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8592/14.99, allocations: 127.6 MB / 3.973 GB, free: 60.63 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003215/15, allocations: 2.255 MB / 3.976 GB, free: 59.88 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008136/15, allocations: 1.323 MB / 3.977 GB, free: 59.88 MB / 0.4948 GB Notification: Performance of SimCode: time 2.865e-06/15, allocations: 0 / 3.977 GB, free: 59.88 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.511/20.51, allocations: 111.2 MB / 4.085 GB, free: 17.66 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat