Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.32/2.32, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.591e-05/3.602e-05, allocations: 7.984 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4355/0.4356, allocations: 54.85 MB / 359.9 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.979/8.415, allocations: 2.658 GB / 3.01 GB, free: 99.05 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/8.415, allocations: 79.2 kB / 3.01 GB, free: 99.01 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.962/13.38, allocations: 0.8605 GB / 3.87 GB, free: 32.86 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.166e-06/13.38, allocations: 3.094 kB / 3.87 GB, free: 32.86 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003775/13.38, allocations: 69.52 kB / 3.87 GB, free: 32.86 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.0192/13.4, allocations: 3.843 MB / 3.874 GB, free: 31.34 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/13.4, allocations: 11.12 kB / 3.874 GB, free: 31.34 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00132/13.4, allocations: 292.1 kB / 3.874 GB, free: 31.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009389/13.41, allocations: 0.8422 MB / 3.875 GB, free: 31.16 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00936/13.42, allocations: 2.092 MB / 3.877 GB, free: 30.72 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000364/13.42, allocations: 180.7 kB / 3.877 GB, free: 30.71 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001011/13.42, allocations: 202.1 kB / 3.877 GB, free: 30.71 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01338/13.43, allocations: 3.541 MB / 3.881 GB, free: 30.17 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.775e-05/13.43, allocations: 9.016 kB / 3.881 GB, free: 30.17 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004969/13.43, allocations: 88.11 kB / 3.881 GB, free: 30.17 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003768/13.43, allocations: 160.4 kB / 3.881 GB, free: 30.16 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01184/13.44, allocations: 3.131 MB / 3.884 GB, free: 30.16 MB / 0.5105 GB 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.0315/13.48, allocations: 15.06 MB / 3.899 GB, free: 21.14 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007226/13.48, allocations: 2.193 MB / 3.901 GB, free: 21.11 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002507/13.49, allocations: 1.047 MB / 3.902 GB, free: 21.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05873/13.54, allocations: 18.87 MB / 3.92 GB, free: 25.36 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006378/13.55, allocations: 1.642 MB / 3.922 GB, free: 25.27 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 6.121e-06/13.55, allocations: 0 / 3.922 GB, free: 25.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=171): time 0.028/13.58, allocations: 6.932 MB / 3.929 GB, free: 24.36 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000203/13.58, allocations: 289.3 kB / 3.929 GB, free: 24.04 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003461/13.58, allocations: 1.398 MB / 3.931 GB, free: 23.85 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006262/13.58, allocations: 58.05 kB / 3.931 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001089/13.58, allocations: 0.9187 MB / 3.931 GB, free: 23.36 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001066/13.59, allocations: 0.5854 MB / 3.932 GB, free: 22.98 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000296/13.59, allocations: 40.59 kB / 3.932 GB, free: 22.98 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002709/13.59, allocations: 392.4 kB / 3.932 GB, free: 22.67 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002892/13.59, allocations: 1.042 MB / 3.933 GB, free: 22.66 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003431/13.59, allocations: 1.52 MB / 3.935 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003525/13.6, allocations: 1.279 MB / 3.936 GB, free: 22.06 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.333e-05/13.6, allocations: 3.656 kB / 3.936 GB, free: 22.06 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01059/13.61, allocations: 3.507 MB / 3.94 GB, free: 21.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002406/13.61, allocations: 5.178 MB / 3.945 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.393e-05/13.61, allocations: 18.38 kB / 3.945 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02339/13.63, allocations: 2.75 MB / 3.947 GB, free: 16.51 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002395/13.64, allocations: 317.5 kB / 3.948 GB, free: 16.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00799/13.64, allocations: 3.296 MB / 3.951 GB, free: 15.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005675/13.65, allocations: 263.5 kB / 3.951 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008504/13.65, allocations: 107.3 kB / 3.951 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/13.65, allocations: 6.781 kB / 3.951 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01022/13.66, allocations: 3.212 MB / 3.954 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.696e-05/13.66, allocations: 15.12 kB / 3.954 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01013/13.67, allocations: 1.577 MB / 3.956 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002811/13.67, allocations: 355.8 kB / 3.956 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005321/13.68, allocations: 2.559 MB / 3.959 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003472/13.68, allocations: 262 kB / 3.959 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006283/13.68, allocations: 97.69 kB / 3.959 GB, free: 15.23 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 23 (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,valveOpening1.nextEventScaled,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 (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.001045/13.68, allocations: 262.1 kB / 3.959 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007059/13.68, allocations: 200 kB / 3.96 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01551/13.7, allocations: 7.687 MB / 3.967 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001149/13.7, allocations: 94.69 kB / 3.967 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/13.7, allocations: 0 / 3.967 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01213/13.71, allocations: 6.598 MB / 3.974 GB, free: 13.33 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02463/13.74, allocations: 10.82 MB / 3.984 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.787e-05/13.74, allocations: 4.719 kB / 3.984 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004866/13.74, allocations: 398.3 kB / 3.985 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003162/13.75, allocations: 352.2 kB / 3.985 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006598/13.75, allocations: 62.61 kB / 3.985 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003007/13.75, allocations: 2.566 MB / 3.987 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.814e-06/13.75, allocations: 14.66 kB / 3.987 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01976/13.77, allocations: 6.891 MB / 3.994 GB, free: 9.816 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003217/13.77, allocations: 0.7529 MB / 3.995 GB, free: 9.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/13.77, allocations: 60.98 kB / 3.995 GB, free: 9.477 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004738/13.78, allocations: 202 kB / 3.995 GB, free: 9.457 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008982/13.78, allocations: 144.7 kB / 3.995 GB, free: 9.457 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003927/13.78, allocations: 71.81 kB / 3.995 GB, free: 9.457 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003995/13.78, allocations: 1.168 MB / 3.997 GB, free: 9.297 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.11e-07/13.78, allocations: 0 / 3.997 GB, free: 9.297 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01781/13.8, allocations: 2.761 MB / 3.999 GB, free: 8.902 MB / 0.5261 GB 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: 54 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.03215/13.83, allocations: 10.19 MB / 4.009 GB, free: 7.195 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01387/13.85, allocations: 4.999 MB / 4.014 GB, free: 5.332 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/13.85, allocations: 0 / 4.014 GB, free: 5.332 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005773/13.85, allocations: 2.362 MB / 4.016 GB, free: 4.305 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008164/13.86, allocations: 0.8568 MB / 4.017 GB, free: 4.129 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8539/14.72, allocations: 130 MB / 4.144 GB, free: 54.86 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002673/14.72, allocations: 2.263 MB / 4.146 GB, free: 54.07 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002867/14.72, allocations: 1.315 MB / 4.148 GB, free: 54.07 MB / 0.5417 GB Notification: Performance of SimCode: time 2.044e-06/14.72, allocations: 0 / 4.148 GB, free: 54.07 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.412/20.13, allocations: 111.6 MB / 4.257 GB, free: 2.078 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat