Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.978/1.978, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.135e-05/2.146e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1026, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.881/7.984, allocations: 2.547 GB / 2.856 GB, free: 38.65 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/7.984, allocations: 73.78 kB / 2.856 GB, free: 38.62 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.472/12.46, allocations: 0.7726 GB / 3.629 GB, free: 30.17 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.825e-06/12.46, allocations: 0 / 3.629 GB, free: 30.17 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003571/12.46, allocations: 63.34 kB / 3.629 GB, free: 30.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.01772/12.47, allocations: 3.745 MB / 3.632 GB, free: 28.34 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/12.47, allocations: 7.844 kB / 3.632 GB, free: 28.34 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008793/12.48, allocations: 0.817 MB / 3.633 GB, free: 28.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008487/12.49, allocations: 2.08 MB / 3.635 GB, free: 27.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002618/12.49, allocations: 98.8 kB / 3.635 GB, free: 27.75 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000998/12.49, allocations: 114.3 kB / 3.635 GB, free: 27.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007328/12.5, allocations: 2.523 MB / 3.638 GB, free: 27.74 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008492/12.51, allocations: 2.784 MB / 3.641 GB, free: 27.22 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.921e-05/12.51, allocations: 7.031 kB / 3.641 GB, free: 27.22 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004095/12.51, allocations: 8.938 kB / 3.641 GB, free: 27.22 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003122/12.51, allocations: 159.4 kB / 3.641 GB, free: 27.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.2834/12.79, allocations: 78.57 MB / 3.717 GB, free: 17.39 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004331/12.8, allocations: 1.627 MB / 3.719 GB, free: 16.65 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002315/12.8, allocations: 0.9733 MB / 3.72 GB, free: 16.13 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4544/13.25, allocations: 17.45 MB / 3.737 GB, free: 61.73 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003415/13.26, allocations: 1.163 MB / 3.738 GB, free: 61.6 MB / 490.7 MB Notification: Performance of pre-optimization done (n=145): time 5.039e-06/13.26, allocations: 0 / 3.738 GB, free: 61.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=161): time 0.03624/13.29, allocations: 7.982 MB / 3.746 GB, free: 60.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/13.29, allocations: 386.5 kB / 3.746 GB, free: 59.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002724/13.3, allocations: 1.13 MB / 3.747 GB, free: 59.55 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005605/13.3, allocations: 26.61 kB / 3.747 GB, free: 59.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001083/13.3, allocations: 0.9786 MB / 3.748 GB, free: 59.11 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001008/13.3, allocations: 0.5343 MB / 3.749 GB, free: 58.83 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002236/13.3, allocations: 0 / 3.749 GB, free: 58.83 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/13.3, allocations: 389 kB / 3.749 GB, free: 58.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002664/13.3, allocations: 1.018 MB / 3.75 GB, free: 58.51 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003287/13.31, allocations: 1.488 MB / 3.752 GB, free: 57.97 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02351/13.33, allocations: 3.306 MB / 3.755 GB, free: 57.95 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.726e-05/13.33, allocations: 3.719 kB / 3.755 GB, free: 57.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.02955/13.36, allocations: 5.452 MB / 3.76 GB, free: 57.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001186/13.36, allocations: 5.18 MB / 3.765 GB, free: 52.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.513e-05/13.36, allocations: 23.14 kB / 3.765 GB, free: 52.44 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01291/13.37, allocations: 2.034 MB / 3.767 GB, free: 52.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002355/13.38, allocations: 313.8 kB / 3.768 GB, free: 52.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009694/13.39, allocations: 3.655 MB / 3.771 GB, free: 51.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004447/13.39, allocations: 256.6 kB / 3.771 GB, free: 51.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006453/13.39, allocations: 102.8 kB / 3.772 GB, free: 51.84 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/13.39, allocations: 7.312 kB / 3.772 GB, free: 51.84 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02723/13.42, allocations: 4.964 MB / 3.776 GB, free: 51.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.926e-05/13.42, allocations: 11.47 kB / 3.776 GB, free: 51.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009223/13.43, allocations: 1.498 MB / 3.778 GB, free: 51.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002769/13.43, allocations: 358.5 kB / 3.778 GB, free: 51.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005751/13.44, allocations: 2.666 MB / 3.781 GB, free: 51.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004234/13.44, allocations: 231.3 kB / 3.781 GB, free: 51.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004542/13.44, allocations: 98.42 kB / 3.781 GB, free: 51.19 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,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 (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.0009392/13.44, allocations: 193.4 kB / 3.781 GB, free: 51.05 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01403/13.46, allocations: 2.51 MB / 3.784 GB, free: 50.86 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009736/13.46, allocations: 184.5 kB / 3.784 GB, free: 50.77 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02078/13.48, allocations: 6.832 MB / 3.791 GB, free: 50.17 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001331/13.48, allocations: 79.78 kB / 3.791 GB, free: 50.17 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.826e-05/13.48, allocations: 1.875 kB / 3.791 GB, free: 50.17 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01625/13.49, allocations: 5.657 MB / 3.796 GB, free: 49.48 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03067/13.52, allocations: 9.24 MB / 3.805 GB, free: 48.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.171e-05/13.53, allocations: 1.281 kB / 3.805 GB, free: 48.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003704/13.53, allocations: 364.3 kB / 3.806 GB, free: 48.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001972/13.53, allocations: 333.8 kB / 3.806 GB, free: 48.88 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000632/13.53, allocations: 44.69 kB / 3.806 GB, free: 48.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002706/13.53, allocations: 2.684 MB / 3.809 GB, free: 46.79 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.317e-05/13.53, allocations: 5.25 kB / 3.809 GB, free: 46.79 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01942/13.55, allocations: 6.407 MB / 3.815 GB, free: 46.19 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002317/13.56, allocations: 0.6917 MB / 3.816 GB, free: 45.89 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009333/13.56, allocations: 20.8 kB / 3.816 GB, free: 45.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0031/13.56, allocations: 155.1 kB / 3.816 GB, free: 45.88 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005872/13.56, allocations: 136.3 kB / 3.816 GB, free: 45.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002378/13.56, allocations: 67.33 kB / 3.816 GB, free: 45.88 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002185/13.56, allocations: 1.025 MB / 3.817 GB, free: 45.77 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.924e-06/13.56, allocations: 0 / 3.817 GB, free: 45.77 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.013/13.58, allocations: 2.616 MB / 3.819 GB, free: 45.64 MB / 490.7 MB 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.0304/13.61, allocations: 10.07 MB / 3.829 GB, free: 44.07 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0118/13.62, allocations: 4.662 MB / 3.834 GB, free: 43.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/13.62, allocations: 3.281 kB / 3.834 GB, free: 43.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004863/13.62, allocations: 2.133 MB / 3.836 GB, free: 43.73 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007437/13.63, allocations: 0.7736 MB / 3.837 GB, free: 43.71 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02418/13.66, allocations: 6.993 MB / 3.844 GB, free: 42.28 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/13.66, allocations: 2.17 MB / 3.846 GB, free: 41.54 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002534/13.66, allocations: 1.22 MB / 3.847 GB, free: 41.48 MB / 490.7 MB Notification: Performance of SimCode: time 2.424e-06/13.66, allocations: 0 / 3.847 GB, free: 41.48 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.651/19.31, allocations: 107.4 MB / 3.952 GB, free: 59.74 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat