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.925/1.925, allocations: 209.4 MB / 216.9 MB, free: 6.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.568e-05/2.583e-05, allocations: 6.109 kB / 267.6 MB, free: 5.34 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1008, allocations: 48.7 MB / 316.3 MB, free: 4.551 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.836/7.937, allocations: 2.547 GB / 2.856 GB, free: 39.27 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/7.937, allocations: 81.56 kB / 2.856 GB, free: 39.22 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.496/12.43, allocations: 0.7714 GB / 3.627 GB, free: 29.68 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.294e-06/12.43, allocations: 3.625 kB / 3.627 GB, free: 29.68 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003559/12.43, allocations: 64.41 kB / 3.627 GB, free: 29.67 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.01858/12.45, allocations: 3.729 MB / 3.631 GB, free: 27.87 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/12.45, allocations: 15.25 kB / 3.631 GB, free: 27.87 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009251/12.46, allocations: 0.8138 MB / 3.632 GB, free: 27.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009083/12.47, allocations: 2.09 MB / 3.634 GB, free: 27.28 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002953/12.47, allocations: 97.94 kB / 3.634 GB, free: 27.27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/12.47, allocations: 115.8 kB / 3.634 GB, free: 27.27 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007833/12.48, allocations: 2.524 MB / 3.637 GB, free: 27.27 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008486/12.49, allocations: 2.781 MB / 3.639 GB, free: 26.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.93e-05/12.49, allocations: 6.938 kB / 3.639 GB, free: 26.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003551/12.49, allocations: 6.938 kB / 3.639 GB, free: 26.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003199/12.49, allocations: 166.5 kB / 3.639 GB, free: 26.75 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.2755/12.76, allocations: 78.58 MB / 3.716 GB, free: 16.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004356/12.77, allocations: 1.63 MB / 3.718 GB, free: 15.72 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002325/12.77, allocations: 0.9733 MB / 3.719 GB, free: 15.21 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.443/13.21, allocations: 17.46 MB / 3.736 GB, free: 60.11 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003712/13.22, allocations: 1.152 MB / 3.737 GB, free: 59.98 MB / 490.7 MB Notification: Performance of pre-optimization done (n=145): time 8.727e-06/13.22, allocations: 1.375 kB / 3.737 GB, free: 59.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=161): time 0.03855/13.26, allocations: 7.979 MB / 3.745 GB, free: 58.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/13.26, allocations: 383.9 kB / 3.745 GB, free: 58.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003069/13.26, allocations: 1.132 MB / 3.746 GB, free: 57.94 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005771/13.26, allocations: 28.7 kB / 3.746 GB, free: 57.91 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001228/13.26, allocations: 0.9744 MB / 3.747 GB, free: 57.49 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001171/13.26, allocations: 0.5352 MB / 3.748 GB, free: 57.21 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003044/13.26, allocations: 1.188 kB / 3.748 GB, free: 57.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000208/13.26, allocations: 390.6 kB / 3.748 GB, free: 56.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002966/13.27, allocations: 1.011 MB / 3.749 GB, free: 56.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00379/13.27, allocations: 1.493 MB / 3.751 GB, free: 56.36 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02412/13.3, allocations: 3.306 MB / 3.754 GB, free: 56.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.13e-05/13.3, allocations: 6.375 kB / 3.754 GB, free: 56.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.02938/13.32, allocations: 4.909 MB / 3.759 GB, free: 56.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001263/13.33, allocations: 5.181 MB / 3.764 GB, free: 50.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.85e-05/13.33, allocations: 13.97 kB / 3.764 GB, free: 50.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/13.33, allocations: 249 kB / 3.764 GB, free: 50.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00448/13.33, allocations: 0.5148 MB / 3.764 GB, free: 50.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/13.33, allocations: 2.523 MB / 3.767 GB, free: 48.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004679/13.34, allocations: 259.8 kB / 3.767 GB, free: 48.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009271/13.34, allocations: 106.7 kB / 3.767 GB, free: 48.68 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/13.34, allocations: 3.656 kB / 3.767 GB, free: 48.68 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02733/13.37, allocations: 4.568 MB / 3.772 GB, free: 48.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.156e-05/13.37, allocations: 17 kB / 3.772 GB, free: 48.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008963/13.37, allocations: 240.7 kB / 3.772 GB, free: 48.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004636/13.37, allocations: 0.5114 MB / 3.772 GB, free: 48.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002479/13.38, allocations: 2.529 MB / 3.775 GB, free: 46.49 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003707/13.38, allocations: 231.2 kB / 3.775 GB, free: 46.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005621/13.38, allocations: 99.8 kB / 3.775 GB, free: 46.48 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 (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.0009622/13.38, allocations: 200.8 kB / 3.775 GB, free: 46.35 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01303/13.39, allocations: 2.506 MB / 3.778 GB, free: 46.15 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001282/13.39, allocations: 183.4 kB / 3.778 GB, free: 46.06 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02175/13.42, allocations: 6.836 MB / 3.785 GB, free: 45.46 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001309/13.42, allocations: 75.44 kB / 3.785 GB, free: 45.46 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.748e-05/13.42, allocations: 3.375 kB / 3.785 GB, free: 45.46 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01622/13.43, allocations: 5.659 MB / 3.79 GB, free: 44.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02922/13.46, allocations: 9.24 MB / 3.799 GB, free: 44.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-05/13.46, allocations: 2.094 kB / 3.799 GB, free: 44.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003983/13.47, allocations: 360.7 kB / 3.8 GB, free: 44.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/13.47, allocations: 339.9 kB / 3.8 GB, free: 44.17 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005081/13.47, allocations: 38.66 kB / 3.8 GB, free: 44.17 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001979/13.47, allocations: 2.686 MB / 3.803 GB, free: 42.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/13.47, allocations: 7.422 kB / 3.803 GB, free: 42.08 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01496/13.49, allocations: 6.408 MB / 3.809 GB, free: 41.48 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002334/13.49, allocations: 0.689 MB / 3.81 GB, free: 41.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009396/13.49, allocations: 23.06 kB / 3.81 GB, free: 41.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003131/13.49, allocations: 156.5 kB / 3.81 GB, free: 41.18 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005966/13.49, allocations: 139.1 kB / 3.81 GB, free: 41.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002322/13.49, allocations: 59.73 kB / 3.81 GB, free: 41.17 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002175/13.5, allocations: 1.032 MB / 3.811 GB, free: 41.06 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.51e-07/13.5, allocations: 0 / 3.811 GB, free: 41.06 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0132/13.51, allocations: 2.615 MB / 3.813 GB, free: 40.93 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.03063/13.54, allocations: 10.06 MB / 3.823 GB, free: 39.37 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01314/13.55, allocations: 4.654 MB / 3.828 GB, free: 39.13 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/13.55, allocations: 5.406 kB / 3.828 GB, free: 39.13 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006467/13.56, allocations: 2.126 MB / 3.83 GB, free: 39.06 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01008/13.57, allocations: 0.7799 MB / 3.831 GB, free: 39.04 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02854/13.6, allocations: 7.004 MB / 3.838 GB, free: 37.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003307/13.6, allocations: 2.166 MB / 3.84 GB, free: 36.88 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00387/13.6, allocations: 1.244 MB / 3.841 GB, free: 36.87 MB / 490.7 MB Notification: Performance of SimCode: time 1.553e-06/13.6, allocations: 2.188 kB / 3.841 GB, free: 36.87 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.846/19.45, allocations: 126.1 MB / 3.964 GB, free: 59.25 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