Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.013/2.013, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.043e-05/4.054e-05, allocations: 7.984 kB / 273.2 MB, free: 152 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1201, allocations: 48.71 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.946/8.066, allocations: 2.547 GB / 2.862 GB, free: 8.781 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/8.066, allocations: 83.75 kB / 2.862 GB, free: 8.738 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.429/12.5, allocations: 0.7778 GB / 3.64 GB, free: 25.97 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.024e-06/12.5, allocations: 0 / 3.64 GB, free: 25.97 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004309/12.5, allocations: 66.09 kB / 3.64 GB, free: 25.96 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.02487/12.52, allocations: 3.741 MB / 3.643 GB, free: 24.15 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.777e-05/12.52, allocations: 7.688 kB / 3.643 GB, free: 24.15 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0018/12.52, allocations: 282.3 kB / 3.644 GB, free: 24.11 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01474/12.54, allocations: 0.8143 MB / 3.644 GB, free: 23.97 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01273/12.55, allocations: 2.103 MB / 3.646 GB, free: 23.51 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000503/12.55, allocations: 181.3 kB / 3.647 GB, free: 23.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001436/12.55, allocations: 194.8 kB / 3.647 GB, free: 23.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0186/12.57, allocations: 3.553 MB / 3.65 GB, free: 22.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000126/12.57, allocations: 6.406 kB / 3.65 GB, free: 22.98 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006125/12.57, allocations: 84.03 kB / 3.65 GB, free: 22.98 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004444/12.57, allocations: 171.7 kB / 3.651 GB, free: 22.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01721/12.59, allocations: 3.153 MB / 3.654 GB, free: 22.96 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.02971/12.62, allocations: 15.06 MB / 3.668 GB, free: 13.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00746/12.63, allocations: 2.228 MB / 3.67 GB, free: 13.86 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002598/12.63, allocations: 1.034 MB / 3.671 GB, free: 13.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0589/12.69, allocations: 18.85 MB / 3.69 GB, free: 17.77 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005904/12.69, allocations: 1.636 MB / 3.691 GB, free: 17.66 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 6.422e-06/12.69, allocations: 0 / 3.691 GB, free: 17.66 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.03985/12.73, allocations: 9.1 MB / 3.7 GB, free: 16.43 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002062/12.73, allocations: 285.7 kB / 3.701 GB, free: 16.11 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003148/12.74, allocations: 1.4 MB / 3.702 GB, free: 15.57 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005561/12.74, allocations: 59.58 kB / 3.702 GB, free: 15.52 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/12.74, allocations: 0.9719 MB / 3.703 GB, free: 14.76 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009285/12.74, allocations: 0.5811 MB / 3.704 GB, free: 14.31 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002405/12.74, allocations: 42.41 kB / 3.704 GB, free: 14.28 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002298/12.74, allocations: 383.8 kB / 3.704 GB, free: 13.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002588/12.74, allocations: 1.039 MB / 3.705 GB, free: 13.57 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003176/12.75, allocations: 1.526 MB / 3.706 GB, free: 12.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003373/12.75, allocations: 1.282 MB / 3.708 GB, free: 12.09 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.69e-05/12.75, allocations: 3.062 kB / 3.708 GB, free: 12.09 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.009077/12.76, allocations: 3.11 MB / 3.711 GB, free: 10.72 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002323/12.76, allocations: 5.318 MB / 3.716 GB, free: 4.934 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.9e-05/12.76, allocations: 16 kB / 3.716 GB, free: 4.918 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/12.76, allocations: 259.1 kB / 3.716 GB, free: 4.703 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004377/12.77, allocations: 0.5154 MB / 3.717 GB, free: 4.262 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/12.77, allocations: 2.505 MB / 3.719 GB, free: 17.76 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004103/12.77, allocations: 265 kB / 3.719 GB, free: 17.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004451/12.77, allocations: 99.08 kB / 3.72 GB, free: 17.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/12.77, allocations: 5.875 kB / 3.72 GB, free: 17.46 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008277/12.78, allocations: 2.846 MB / 3.722 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.249e-05/12.78, allocations: 16 kB / 3.722 GB, free: 14.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/12.78, allocations: 255.2 kB / 3.723 GB, free: 14.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004602/12.79, allocations: 0.511 MB / 3.723 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002739/12.79, allocations: 2.499 MB / 3.726 GB, free: 11.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004157/12.8, allocations: 259.2 kB / 3.726 GB, free: 11.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006821/12.8, allocations: 98.42 kB / 3.726 GB, free: 11.51 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.0009092/12.8, allocations: 270.1 kB / 3.726 GB, free: 11.24 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007081/12.8, allocations: 201.5 kB / 3.726 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01765/12.82, allocations: 7.695 MB / 3.734 GB, free: 4.148 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001266/12.82, allocations: 90.97 kB / 3.734 GB, free: 4.094 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/12.82, allocations: 0 / 3.734 GB, free: 4.094 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.5095/13.33, allocations: 6.815 MB / 3.741 GB, free: 54.41 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02556/13.35, allocations: 10.81 MB / 3.751 GB, free: 53.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.896e-05/13.35, allocations: 0 / 3.751 GB, free: 53.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004481/13.36, allocations: 403.8 kB / 3.751 GB, free: 53.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002114/13.36, allocations: 358.7 kB / 3.752 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006085/13.36, allocations: 60.94 kB / 3.752 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001956/13.36, allocations: 2.567 MB / 3.754 GB, free: 51.73 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/13.36, allocations: 2.156 kB / 3.754 GB, free: 51.73 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01586/13.38, allocations: 6.903 MB / 3.761 GB, free: 51.29 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002604/13.38, allocations: 0.7471 MB / 3.762 GB, free: 51.12 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009648/13.38, allocations: 49.8 kB / 3.762 GB, free: 51.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00354/13.38, allocations: 201.4 kB / 3.762 GB, free: 51.11 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007235/13.38, allocations: 145.5 kB / 3.762 GB, free: 51.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002535/13.38, allocations: 67.92 kB / 3.762 GB, free: 51.11 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002831/13.39, allocations: 1.169 MB / 3.763 GB, free: 50.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.813e-06/13.39, allocations: 0 / 3.763 GB, free: 50.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01348/13.4, allocations: 2.746 MB / 3.766 GB, free: 50.95 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.02931/13.43, allocations: 10.16 MB / 3.776 GB, free: 49.67 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01329/13.44, allocations: 5.017 MB / 3.781 GB, free: 49.39 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/13.44, allocations: 1.562 kB / 3.781 GB, free: 49.39 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005487/13.45, allocations: 2.336 MB / 3.783 GB, free: 49.31 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0102/13.46, allocations: 0.8679 MB / 3.784 GB, free: 49.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.435/13.89, allocations: 127.2 MB / 3.908 GB, free: 9.523 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002403/13.9, allocations: 2.302 MB / 3.911 GB, free: 7.723 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009279/13.91, allocations: 2.834 MB / 3.913 GB, free: 6.031 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002863/13.91, allocations: 1.305 MB / 3.915 GB, free: 4.832 MB / 490.7 MB Notification: Performance of SimCode: time 1.563e-06/13.91, allocations: 0 / 3.915 GB, free: 4.832 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6947/14.6, allocations: 118.6 MB / 4.03 GB, free: 35.79 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000281/14.6, allocations: 222.8 kB / 4.031 GB, free: 35.56 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.707/23.31, allocations: 7.5 kB / 4.031 GB, free: 35.56 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat does not exist to compare? outputFormat=mat