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.916/1.916, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.988e-05/4.008e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1048, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.858/7.963, allocations: 2.547 GB / 2.862 GB, free: 9.59 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/7.963, allocations: 80.33 kB / 2.862 GB, free: 9.551 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.503/12.47, allocations: 0.7778 GB / 3.64 GB, free: 24.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.886e-06/12.47, allocations: 0 / 3.64 GB, free: 24.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000333/12.47, allocations: 64.62 kB / 3.64 GB, free: 24.39 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.01751/12.48, allocations: 3.735 MB / 3.643 GB, free: 22.58 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/12.48, allocations: 7.344 kB / 3.643 GB, free: 22.58 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001138/12.49, allocations: 288.9 kB / 3.644 GB, free: 22.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01209/12.5, allocations: 0.8184 MB / 3.644 GB, free: 22.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/12.51, allocations: 2.092 MB / 3.646 GB, free: 21.94 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003576/12.51, allocations: 177.6 kB / 3.647 GB, free: 21.94 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008038/12.51, allocations: 204.2 kB / 3.647 GB, free: 21.94 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01668/12.53, allocations: 3.545 MB / 3.65 GB, free: 21.41 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.164e-05/12.53, allocations: 15.06 kB / 3.65 GB, free: 21.41 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004839/12.53, allocations: 91.53 kB / 3.65 GB, free: 21.41 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003661/12.53, allocations: 159.6 kB / 3.65 GB, free: 21.41 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03377/12.56, allocations: 3.157 MB / 3.654 GB, free: 21.39 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.04757/12.61, allocations: 15.06 MB / 3.668 GB, free: 12.31 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007286/12.62, allocations: 2.228 MB / 3.67 GB, free: 12.26 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00248/12.62, allocations: 1.036 MB / 3.671 GB, free: 12.25 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05989/12.68, allocations: 18.84 MB / 3.69 GB, free: 16.16 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00592/12.69, allocations: 1.632 MB / 3.691 GB, free: 16.06 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 1.963e-05/12.69, allocations: 0 / 3.691 GB, free: 16.06 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.03838/12.72, allocations: 9.107 MB / 3.7 GB, free: 14.33 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001953/12.72, allocations: 280.1 kB / 3.701 GB, free: 14.01 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003122/12.73, allocations: 1.397 MB / 3.702 GB, free: 13.48 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005809/12.73, allocations: 60.58 kB / 3.702 GB, free: 13.42 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001069/12.73, allocations: 0.924 MB / 3.703 GB, free: 12.64 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001025/12.73, allocations: 0.5739 MB / 3.703 GB, free: 12.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002688/12.73, allocations: 44.05 kB / 3.704 GB, free: 12.17 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002618/12.73, allocations: 395.1 kB / 3.704 GB, free: 11.82 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002809/12.73, allocations: 1.043 MB / 3.705 GB, free: 11.44 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003386/12.74, allocations: 1.528 MB / 3.706 GB, free: 10.46 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003358/12.74, allocations: 1.271 MB / 3.708 GB, free: 9.977 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.819e-05/12.74, allocations: 3.156 kB / 3.708 GB, free: 9.977 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.008347/12.75, allocations: 3.004 MB / 3.711 GB, free: 8.504 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00218/12.75, allocations: 5.173 MB / 3.716 GB, free: 2.941 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.403e-05/12.75, allocations: 19.23 kB / 3.716 GB, free: 2.926 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/12.75, allocations: 258.9 kB / 3.716 GB, free: 2.711 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004339/12.76, allocations: 0.515 MB / 3.716 GB, free: 2.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002415/12.76, allocations: 2.5 MB / 3.719 GB, free: 15.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004322/12.76, allocations: 259.9 kB / 3.719 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006719/12.76, allocations: 111.4 kB / 3.719 GB, free: 15.47 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/12.76, allocations: 9.812 kB / 3.719 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008987/12.77, allocations: 2.834 MB / 3.722 GB, free: 12.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.527e-05/12.77, allocations: 20.36 kB / 3.722 GB, free: 12.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/12.78, allocations: 259.6 kB / 3.722 GB, free: 12.74 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004422/12.78, allocations: 0.5122 MB / 3.723 GB, free: 12.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002459/12.78, allocations: 2.498 MB / 3.725 GB, free: 9.805 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00339/12.79, allocations: 254.3 kB / 3.725 GB, free: 9.613 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004712/12.79, allocations: 105.4 kB / 3.726 GB, free: 9.52 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.000921/12.79, allocations: 264.3 kB / 3.726 GB, free: 9.25 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007222/12.79, allocations: 205.3 kB / 3.726 GB, free: 9.051 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01687/12.8, allocations: 7.69 MB / 3.733 GB, free: 2.16 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001247/12.8, allocations: 88.3 kB / 3.734 GB, free: 2.105 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/12.8, allocations: 7.812 kB / 3.734 GB, free: 2.102 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4078/13.21, allocations: 6.601 MB / 3.74 GB, free: 53.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0269/13.24, allocations: 10.81 MB / 3.751 GB, free: 53.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.85e-05/13.24, allocations: 1.812 kB / 3.751 GB, free: 53.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003714/13.24, allocations: 404.1 kB / 3.751 GB, free: 53.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002125/13.25, allocations: 351.5 kB / 3.751 GB, free: 53.08 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006336/13.25, allocations: 64.48 kB / 3.751 GB, free: 53.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/13.25, allocations: 2.565 MB / 3.754 GB, free: 51.02 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/13.25, allocations: 4.688 kB / 3.754 GB, free: 51.02 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01684/13.27, allocations: 6.902 MB / 3.761 GB, free: 50.57 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002629/13.27, allocations: 0.7463 MB / 3.761 GB, free: 50.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009237/13.27, allocations: 56.02 kB / 3.761 GB, free: 50.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00358/13.27, allocations: 194.1 kB / 3.762 GB, free: 50.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008181/13.27, allocations: 143.7 kB / 3.762 GB, free: 50.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002964/13.27, allocations: 70.58 kB / 3.762 GB, free: 50.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003133/13.28, allocations: 1.172 MB / 3.763 GB, free: 50.23 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.61e-07/13.28, allocations: 0 / 3.763 GB, free: 50.23 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01476/13.29, allocations: 2.747 MB / 3.766 GB, free: 50.23 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.03257/13.32, allocations: 10.14 MB / 3.776 GB, free: 48.97 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0143/13.34, allocations: 4.959 MB / 3.78 GB, free: 48.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/13.34, allocations: 0 / 3.78 GB, free: 48.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005617/13.34, allocations: 2.327 MB / 3.783 GB, free: 48.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008282/13.35, allocations: 0.8655 MB / 3.783 GB, free: 48.61 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4031/13.76, allocations: 127.2 MB / 3.908 GB, free: 7.09 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002594/13.76, allocations: 2.259 MB / 3.91 GB, free: 5.324 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003136/13.76, allocations: 1.338 MB / 3.911 GB, free: 4.09 MB / 490.7 MB Notification: Performance of SimCode: time 1.743e-06/13.76, allocations: 1.125 kB / 3.911 GB, free: 4.09 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.919/19.68, allocations: 131 MB / 4.039 GB, free: 25.11 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