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 2.194/2.194, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.592e-05/5.623e-05, allocations: 0 / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1565, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.216/8.373, allocations: 2.547 GB / 2.862 GB, free: 9.77 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/8.373, allocations: 74.09 kB / 2.862 GB, free: 9.734 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.842/13.21, allocations: 0.8401 GB / 3.702 GB, free: 18.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.254e-06/13.21, allocations: 0 / 3.702 GB, free: 18.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003479/13.21, allocations: 71.69 kB / 3.702 GB, free: 18.82 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.726 MB / 3.706 GB, free: 16.01 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/13.23, allocations: 19.95 kB / 3.706 GB, free: 15.99 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001233/13.23, allocations: 286.9 kB / 3.706 GB, free: 15.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0089/13.24, allocations: 0.8127 MB / 3.707 GB, free: 14.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009036/13.25, allocations: 2.096 MB / 3.709 GB, free: 12.74 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000372/13.25, allocations: 175.7 kB / 3.709 GB, free: 12.57 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001126/13.25, allocations: 203.9 kB / 3.709 GB, free: 12.37 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01273/13.27, allocations: 3.56 MB / 3.713 GB, free: 8.629 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/13.27, allocations: 7.938 kB / 3.713 GB, free: 8.621 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007501/13.27, allocations: 87.95 kB / 3.713 GB, free: 8.535 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003031/13.27, allocations: 159.5 kB / 3.713 GB, free: 8.379 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/13.28, allocations: 3.16 MB / 3.716 GB, free: 5.215 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.034/13.31, allocations: 15.03 MB / 3.731 GB, free: 4.941 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0081/13.32, allocations: 2.216 MB / 3.733 GB, free: 2.723 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002931/13.32, allocations: 1.045 MB / 3.734 GB, free: 1.68 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4451/13.77, allocations: 18.84 MB / 3.752 GB, free: 25.16 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006662/13.78, allocations: 1.637 MB / 3.754 GB, free: 25.07 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 5.72e-06/13.78, allocations: 0 / 3.754 GB, free: 25.07 MB / 474.7 MB Notification: Performance of matching and sorting (n=169): time 0.02952/13.81, allocations: 6.941 MB / 3.761 GB, free: 24.41 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/13.81, allocations: 288.5 kB / 3.761 GB, free: 24.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003537/13.81, allocations: 1.393 MB / 3.762 GB, free: 23.92 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005814/13.81, allocations: 55.14 kB / 3.762 GB, free: 23.89 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001196/13.81, allocations: 0.9267 MB / 3.763 GB, free: 23.51 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00113/13.81, allocations: 0.5803 MB / 3.764 GB, free: 23.22 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002868/13.81, allocations: 37.97 kB / 3.764 GB, free: 23.22 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002049/13.81, allocations: 394.5 kB / 3.764 GB, free: 22.91 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002874/13.82, allocations: 1.034 MB / 3.765 GB, free: 22.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003545/13.82, allocations: 1.529 MB / 3.767 GB, free: 22.36 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003511/13.82, allocations: 1.276 MB / 3.768 GB, free: 22.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.246e-05/13.82, allocations: 4.531 kB / 3.768 GB, free: 22.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.01037/13.83, allocations: 3.552 MB / 3.771 GB, free: 22.14 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001183/13.83, allocations: 5.18 MB / 3.776 GB, free: 16.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.796e-05/13.83, allocations: 15.03 kB / 3.776 GB, free: 16.75 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02347/13.86, allocations: 2.762 MB / 3.779 GB, free: 16.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002421/13.86, allocations: 313.9 kB / 3.779 GB, free: 16.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008235/13.87, allocations: 3.302 MB / 3.783 GB, free: 16.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004223/13.87, allocations: 259.4 kB / 3.783 GB, free: 16.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007286/13.87, allocations: 100.8 kB / 3.783 GB, free: 16.16 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/13.87, allocations: 3.125 kB / 3.783 GB, free: 16.16 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009652/13.88, allocations: 3.26 MB / 3.786 GB, free: 16.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.616e-05/13.88, allocations: 16.09 kB / 3.786 GB, free: 16.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01045/13.89, allocations: 1.586 MB / 3.788 GB, free: 16.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002788/13.9, allocations: 358.9 kB / 3.788 GB, free: 16.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005206/13.9, allocations: 2.552 MB / 3.791 GB, free: 15.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003353/13.91, allocations: 259 kB / 3.791 GB, free: 15.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005221/13.91, allocations: 103.1 kB / 3.791 GB, free: 15.48 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.0008347/13.91, allocations: 262.6 kB / 3.791 GB, free: 15.34 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007659/13.91, allocations: 203.8 kB / 3.791 GB, free: 15.24 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01543/13.92, allocations: 7.694 MB / 3.799 GB, free: 14.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001042/13.92, allocations: 85.8 kB / 3.799 GB, free: 14.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/13.92, allocations: 3.953 kB / 3.799 GB, free: 14.54 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01201/13.94, allocations: 6.606 MB / 3.805 GB, free: 13.68 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02231/13.96, allocations: 10.82 MB / 3.816 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.086e-05/13.96, allocations: 3.812 kB / 3.816 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003492/13.96, allocations: 396.3 kB / 3.816 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002025/13.96, allocations: 354.5 kB / 3.817 GB, free: 12.92 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000586/13.96, allocations: 62.72 kB / 3.817 GB, free: 12.92 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001824/13.97, allocations: 2.576 MB / 3.819 GB, free: 10.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/13.97, allocations: 5.125 kB / 3.819 GB, free: 10.84 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01487/13.98, allocations: 6.894 MB / 3.826 GB, free: 10.21 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002589/13.98, allocations: 0.7488 MB / 3.827 GB, free: 9.875 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009135/13.98, allocations: 50.95 kB / 3.827 GB, free: 9.875 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003381/13.99, allocations: 199.1 kB / 3.827 GB, free: 9.867 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006667/13.99, allocations: 142.3 kB / 3.827 GB, free: 9.867 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002972/13.99, allocations: 65.27 kB / 3.827 GB, free: 9.867 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002963/13.99, allocations: 1.167 MB / 3.828 GB, free: 9.707 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.21e-07/13.99, allocations: 0 / 3.828 GB, free: 9.707 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01393/14.01, allocations: 2.745 MB / 3.831 GB, free: 9.582 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.03037/14.04, allocations: 10.16 MB / 3.841 GB, free: 8.215 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01392/14.05, allocations: 4.996 MB / 3.846 GB, free: 7.91 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/14.05, allocations: 0 / 3.846 GB, free: 7.91 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005752/14.06, allocations: 2.335 MB / 3.848 GB, free: 7.285 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008584/14.06, allocations: 0.8732 MB / 3.849 GB, free: 7.105 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.807/14.87, allocations: 127.7 MB / 3.974 GB, free: 60.73 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003445/14.88, allocations: 2.256 MB / 3.976 GB, free: 59.99 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00368/14.88, allocations: 1.314 MB / 3.977 GB, free: 59.98 MB / 0.4948 GB Notification: Performance of SimCode: time 1.623e-06/14.88, allocations: 0.9844 kB / 3.977 GB, free: 59.98 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.308/20.19, allocations: 111.2 MB / 4.086 GB, free: 17.76 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