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.115/2.115, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.068e-05/5.076e-05, allocations: 4 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 48.71 MB / 321.9 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.91/8.016, allocations: 2.547 GB / 2.862 GB, free: 7.566 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/8.016, allocations: 72.84 kB / 2.862 GB, free: 7.531 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.479/12.5, allocations: 0.7778 GB / 3.64 GB, free: 26.09 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.807e-06/12.5, allocations: 0 / 3.64 GB, free: 26.09 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003136/12.5, allocations: 67.3 kB / 3.64 GB, free: 26.08 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.01835/12.51, allocations: 3.737 MB / 3.643 GB, free: 24.27 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/12.51, allocations: 9.688 kB / 3.643 GB, free: 24.27 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001246/12.52, allocations: 288.8 kB / 3.644 GB, free: 24.22 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009134/12.52, allocations: 0.8169 MB / 3.644 GB, free: 24.09 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008797/12.53, allocations: 2.092 MB / 3.646 GB, free: 23.63 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003285/12.53, allocations: 172.9 kB / 3.647 GB, free: 23.63 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009786/12.53, allocations: 197.2 kB / 3.647 GB, free: 23.63 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/12.55, allocations: 3.529 MB / 3.65 GB, free: 23.11 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.341e-05/12.55, allocations: 6.844 kB / 3.65 GB, free: 23.11 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004662/12.55, allocations: 89.58 kB / 3.65 GB, free: 23.11 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003209/12.55, allocations: 167.6 kB / 3.65 GB, free: 23.11 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/12.56, allocations: 3.124 MB / 3.654 GB, free: 23.1 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.03173/12.59, allocations: 15.06 MB / 3.668 GB, free: 14.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007636/12.6, allocations: 2.212 MB / 3.67 GB, free: 13.99 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002641/12.6, allocations: 1.038 MB / 3.671 GB, free: 13.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0627/12.66, allocations: 18.84 MB / 3.69 GB, free: 17.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009786/12.67, allocations: 1.636 MB / 3.691 GB, free: 17.8 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 1.036e-05/12.67, allocations: 3.875 kB / 3.691 GB, free: 17.8 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.0568/12.73, allocations: 9.087 MB / 3.7 GB, free: 16.72 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001833/12.73, allocations: 281.6 kB / 3.701 GB, free: 16.41 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003084/12.73, allocations: 1.398 MB / 3.702 GB, free: 15.88 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005962/12.73, allocations: 59.36 kB / 3.702 GB, free: 15.82 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/12.74, allocations: 0.9783 MB / 3.703 GB, free: 15.06 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001118/12.74, allocations: 0.5794 MB / 3.704 GB, free: 14.61 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003275/12.74, allocations: 43.06 kB / 3.704 GB, free: 14.58 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003161/12.74, allocations: 390.2 kB / 3.704 GB, free: 14.24 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003196/12.74, allocations: 1.031 MB / 3.705 GB, free: 13.87 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003736/12.74, allocations: 1.529 MB / 3.706 GB, free: 12.89 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003467/12.75, allocations: 1.271 MB / 3.708 GB, free: 12.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.775e-05/12.75, allocations: 3.375 kB / 3.708 GB, free: 12.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.009913/12.76, allocations: 3.074 MB / 3.711 GB, free: 11.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002679/12.76, allocations: 5.326 MB / 3.716 GB, free: 5.301 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-05/12.76, allocations: 16 kB / 3.716 GB, free: 5.285 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001816/12.76, allocations: 252.8 kB / 3.716 GB, free: 5.074 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005756/12.77, allocations: 0.5187 MB / 3.717 GB, free: 4.633 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00315/12.77, allocations: 2.497 MB / 3.719 GB, free: 2.137 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005715/12.78, allocations: 262.2 kB / 3.719 GB, free: 1.934 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004634/12.78, allocations: 101.5 kB / 3.719 GB, free: 1.844 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/12.78, allocations: 4 kB / 3.719 GB, free: 1.84 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01458/12.79, allocations: 2.939 MB / 3.722 GB, free: 15.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.379e-05/12.79, allocations: 12 kB / 3.722 GB, free: 15.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00174/12.79, allocations: 262.3 kB / 3.723 GB, free: 15.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005835/12.8, allocations: 0.5111 MB / 3.723 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003143/12.8, allocations: 2.501 MB / 3.726 GB, free: 12.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00531/12.81, allocations: 262.8 kB / 3.726 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006092/12.81, allocations: 99.36 kB / 3.726 GB, free: 12.25 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.001037/12.81, allocations: 266.6 kB / 3.726 GB, free: 11.99 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008418/12.81, allocations: 205.5 kB / 3.726 GB, free: 11.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02136/12.83, allocations: 7.692 MB / 3.734 GB, free: 4.902 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001566/12.83, allocations: 90.31 kB / 3.734 GB, free: 4.848 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.599e-05/12.83, allocations: 3.891 kB / 3.734 GB, free: 4.848 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3991/13.23, allocations: 6.596 MB / 3.74 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02525/13.26, allocations: 10.81 MB / 3.751 GB, free: 53.67 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.767e-05/13.26, allocations: 0.6562 kB / 3.751 GB, free: 53.67 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003594/13.26, allocations: 405.5 kB / 3.751 GB, free: 53.67 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/13.26, allocations: 355.3 kB / 3.752 GB, free: 53.64 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004701/13.26, allocations: 63.89 kB / 3.752 GB, free: 53.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/13.27, allocations: 2.563 MB / 3.754 GB, free: 51.58 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/13.27, allocations: 0.9688 kB / 3.754 GB, free: 51.58 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0155/13.28, allocations: 6.9 MB / 3.761 GB, free: 51.13 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002319/13.28, allocations: 0.7445 MB / 3.762 GB, free: 50.96 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005734/13.28, allocations: 52.3 kB / 3.762 GB, free: 50.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002715/13.29, allocations: 200 kB / 3.762 GB, free: 50.96 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004318/13.29, allocations: 146.5 kB / 3.762 GB, free: 50.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002164/13.29, allocations: 62.86 kB / 3.762 GB, free: 50.96 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002418/13.29, allocations: 1.175 MB / 3.763 GB, free: 50.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.51e-07/13.29, allocations: 0 / 3.763 GB, free: 50.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01235/13.3, allocations: 2.748 MB / 3.766 GB, free: 50.79 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.02756/13.33, allocations: 10.17 MB / 3.776 GB, free: 49.52 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01184/13.34, allocations: 4.957 MB / 3.781 GB, free: 49.25 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.358e-06/13.34, allocations: 3.344 kB / 3.781 GB, free: 49.25 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004787/13.35, allocations: 2.322 MB / 3.783 GB, free: 49.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007578/13.35, allocations: 0.8703 MB / 3.784 GB, free: 49.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4381/13.79, allocations: 127.2 MB / 3.908 GB, free: 10 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00379/13.8, allocations: 2.307 MB / 3.91 GB, free: 8.195 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01222/13.81, allocations: 2.834 MB / 3.913 GB, free: 6.504 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003935/13.81, allocations: 1.299 MB / 3.914 GB, free: 5.309 MB / 490.7 MB Notification: Performance of SimCode: time 1.823e-06/13.81, allocations: 0 / 3.914 GB, free: 5.309 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7192/14.53, allocations: 118.6 MB / 4.03 GB, free: 35.58 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002444/14.53, allocations: 225.4 kB / 4.03 GB, free: 35.36 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.876/23.41, allocations: 3.938 kB / 4.03 GB, free: 35.35 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