Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.947/1.947, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.002e-05/4.007e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.015/8.126, allocations: 2.547 GB / 2.862 GB, free: 8.566 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/8.126, allocations: 75.66 kB / 2.862 GB, free: 8.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.699/12.82, allocations: 0.779 GB / 3.641 GB, free: 25.98 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.495e-06/12.82, allocations: 0 / 3.641 GB, free: 25.98 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003691/12.83, allocations: 66.09 kB / 3.641 GB, free: 25.97 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.0193/12.84, allocations: 3.742 MB / 3.645 GB, free: 24.16 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.232e-05/12.84, allocations: 11.94 kB / 3.645 GB, free: 24.16 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001581/12.85, allocations: 284.3 kB / 3.645 GB, free: 24.11 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009382/12.86, allocations: 0.8117 MB / 3.646 GB, free: 23.98 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009669/12.87, allocations: 2.094 MB / 3.648 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004078/12.87, allocations: 178.2 kB / 3.648 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001248/12.87, allocations: 195.9 kB / 3.648 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01339/12.88, allocations: 3.561 MB / 3.652 GB, free: 22.99 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/12.88, allocations: 6.688 kB / 3.652 GB, free: 22.99 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007919/12.88, allocations: 87.56 kB / 3.652 GB, free: 22.99 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003486/12.88, allocations: 160.1 kB / 3.652 GB, free: 22.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01189/12.89, allocations: 3.156 MB / 3.655 GB, free: 22.97 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.03263/12.93, allocations: 15.04 MB / 3.67 GB, free: 13.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007801/12.93, allocations: 2.23 MB / 3.672 GB, free: 13.85 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002852/12.94, allocations: 1.036 MB / 3.673 GB, free: 13.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06157/13, allocations: 18.84 MB / 3.691 GB, free: 17.77 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006319/13.01, allocations: 1.641 MB / 3.693 GB, free: 17.66 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 5.921e-06/13.01, allocations: 0 / 3.693 GB, free: 17.66 MB / 474.7 MB Notification: Performance of matching and sorting (n=169): time 0.02527/13.03, allocations: 6.939 MB / 3.7 GB, free: 16.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002256/13.03, allocations: 284.6 kB / 3.7 GB, free: 16.39 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003094/13.03, allocations: 1.396 MB / 3.701 GB, free: 16.05 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005738/13.03, allocations: 57.39 kB / 3.701 GB, free: 15.99 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009401/13.04, allocations: 0.9208 MB / 3.702 GB, free: 15.22 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009044/13.04, allocations: 0.5807 MB / 3.703 GB, free: 14.77 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002174/13.04, allocations: 41.53 kB / 3.703 GB, free: 14.74 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002423/13.04, allocations: 395.2 kB / 3.703 GB, free: 14.39 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00259/13.04, allocations: 1.033 MB / 3.704 GB, free: 14.02 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003026/13.04, allocations: 1.536 MB / 3.706 GB, free: 13.04 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003374/13.05, allocations: 1.272 MB / 3.707 GB, free: 12.55 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.58e-05/13.05, allocations: 7.344 kB / 3.707 GB, free: 12.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.009184/13.06, allocations: 3.554 MB / 3.71 GB, free: 11.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002335/13.06, allocations: 5.179 MB / 3.715 GB, free: 5.676 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.875e-05/13.06, allocations: 15.22 kB / 3.715 GB, free: 5.676 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02306/13.08, allocations: 2.758 MB / 3.718 GB, free: 4.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002332/13.08, allocations: 313.9 kB / 3.718 GB, free: 4.074 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007893/13.09, allocations: 3.292 MB / 3.722 GB, free: 1.195 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00421/13.1, allocations: 256.7 kB / 3.722 GB, free: 1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004083/13.1, allocations: 102.7 kB / 3.722 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/13.1, allocations: 5.875 kB / 3.722 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00998/13.11, allocations: 3.284 MB / 3.725 GB, free: 14.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-05/13.11, allocations: 16 kB / 3.725 GB, free: 14.08 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01047/13.12, allocations: 1.586 MB / 3.727 GB, free: 12.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002829/13.12, allocations: 362.5 kB / 3.727 GB, free: 12.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005672/13.13, allocations: 2.558 MB / 3.73 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003219/13.13, allocations: 262.7 kB / 3.73 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003509/13.13, allocations: 102.5 kB / 3.73 GB, free: 9.984 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 (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.0008095/13.13, allocations: 251.9 kB / 3.73 GB, free: 9.73 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007427/13.13, allocations: 197.6 kB / 3.73 GB, free: 9.535 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01821/13.15, allocations: 7.708 MB / 3.738 GB, free: 2.633 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001248/13.15, allocations: 91.58 kB / 3.738 GB, free: 2.578 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/13.15, allocations: 0 / 3.738 GB, free: 2.578 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4168/13.57, allocations: 6.624 MB / 3.744 GB, free: 54.88 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02708/13.59, allocations: 10.81 MB / 3.755 GB, free: 54.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.422e-05/13.59, allocations: 0 / 3.755 GB, free: 54.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003721/13.6, allocations: 403.9 kB / 3.755 GB, free: 54.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002264/13.6, allocations: 356.3 kB / 3.756 GB, free: 54.26 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007414/13.6, allocations: 61.7 kB / 3.756 GB, free: 54.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002751/13.6, allocations: 2.569 MB / 3.758 GB, free: 52.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/13.6, allocations: 1.656 kB / 3.758 GB, free: 52.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02105/13.62, allocations: 6.899 MB / 3.765 GB, free: 51.75 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003133/13.63, allocations: 0.7467 MB / 3.766 GB, free: 51.58 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008859/13.63, allocations: 52.73 kB / 3.766 GB, free: 51.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003952/13.63, allocations: 200.7 kB / 3.766 GB, free: 51.57 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006105/13.63, allocations: 145.9 kB / 3.766 GB, free: 51.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003119/13.63, allocations: 64.53 kB / 3.766 GB, free: 51.57 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003662/13.64, allocations: 1.171 MB / 3.767 GB, free: 51.41 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.312e-06/13.64, allocations: 0 / 3.767 GB, free: 51.41 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01668/13.65, allocations: 2.749 MB / 3.77 GB, free: 51.41 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.03525/13.69, allocations: 10.15 MB / 3.78 GB, free: 50.15 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01307/13.7, allocations: 4.998 MB / 3.785 GB, free: 49.85 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/13.7, allocations: 0 / 3.785 GB, free: 49.85 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00513/13.71, allocations: 2.329 MB / 3.787 GB, free: 49.77 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007696/13.71, allocations: 0.8704 MB / 3.788 GB, free: 49.76 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.376/14.09, allocations: 127.2 MB / 3.912 GB, free: 7.852 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003037/14.09, allocations: 2.255 MB / 3.914 GB, free: 6.086 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003059/14.1, allocations: 1.313 MB / 3.916 GB, free: 4.875 MB / 490.7 MB Notification: Performance of SimCode: time 1.493e-06/14.1, allocations: 0 / 3.916 GB, free: 4.875 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.669/19.77, allocations: 111.3 MB / 4.024 GB, free: 36.5 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat