Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.055/2.055, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.085e-05/3.083e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1092, allocations: 48.71 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.882/7.991, allocations: 2.547 GB / 2.856 GB, free: 39.12 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/7.991, allocations: 79.95 kB / 2.856 GB, free: 39.09 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.708/12.7, allocations: 0.8331 GB / 3.689 GB, free: 27.46 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.234e-06/12.7, allocations: 3.938 kB / 3.689 GB, free: 27.45 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003516/12.7, allocations: 66.69 kB / 3.689 GB, free: 27.44 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.01859/12.72, allocations: 3.733 MB / 3.693 GB, free: 25.51 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/12.72, allocations: 10.62 kB / 3.693 GB, free: 25.51 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0103/12.73, allocations: 0.8149 MB / 3.694 GB, free: 25.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00929/12.74, allocations: 2.09 MB / 3.696 GB, free: 24.34 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003156/12.74, allocations: 94.25 kB / 3.696 GB, free: 24.33 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/12.74, allocations: 117.4 kB / 3.696 GB, free: 24.33 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008028/12.75, allocations: 2.526 MB / 3.698 GB, free: 23.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009094/12.76, allocations: 2.778 MB / 3.701 GB, free: 22.18 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.018e-05/12.76, allocations: 15.45 kB / 3.701 GB, free: 22.18 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003811/12.76, allocations: 6.906 kB / 3.701 GB, free: 22.18 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003132/12.76, allocations: 164.1 kB / 3.701 GB, free: 22.15 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.6611/13.42, allocations: 78.56 MB / 3.778 GB, free: 23.3 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004279/13.42, allocations: 1.625 MB / 3.78 GB, free: 23.27 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002273/13.43, allocations: 0.9686 MB / 3.781 GB, free: 23.26 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0607/13.49, allocations: 17.45 MB / 3.798 GB, free: 12.01 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002691/13.49, allocations: 1.16 MB / 3.799 GB, free: 11.88 MB / 474.7 MB Notification: Performance of pre-optimization done (n=145): time 4.519e-06/13.49, allocations: 0 / 3.799 GB, free: 11.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=161): time 0.048/13.54, allocations: 7.983 MB / 3.807 GB, free: 10.37 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/13.54, allocations: 389.5 kB / 3.807 GB, free: 9.934 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003226/13.54, allocations: 1.131 MB / 3.808 GB, free: 9.758 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000629/13.54, allocations: 29.55 kB / 3.808 GB, free: 9.727 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001405/13.54, allocations: 0.9759 MB / 3.809 GB, free: 9.309 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001233/13.54, allocations: 0.5321 MB / 3.81 GB, free: 9.035 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003436/13.54, allocations: 0 / 3.81 GB, free: 9.035 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002437/13.54, allocations: 393 kB / 3.81 GB, free: 8.723 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003498/13.55, allocations: 1.008 MB / 3.811 GB, free: 8.715 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004214/13.55, allocations: 1.493 MB / 3.812 GB, free: 8.164 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02457/13.58, allocations: 3.312 MB / 3.816 GB, free: 8.082 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.394e-05/13.58, allocations: 3.344 kB / 3.816 GB, free: 8.082 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.03002/13.61, allocations: 5.455 MB / 3.821 GB, free: 7.898 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002462/13.61, allocations: 5.175 MB / 3.826 GB, free: 18.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.883e-05/13.61, allocations: 19.95 kB / 3.826 GB, free: 18.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01331/13.62, allocations: 2.025 MB / 3.828 GB, free: 18.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002417/13.63, allocations: 318.3 kB / 3.828 GB, free: 18.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/13.64, allocations: 3.655 MB / 3.832 GB, free: 17.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004416/13.64, allocations: 256.1 kB / 3.832 GB, free: 17.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007933/13.64, allocations: 97.89 kB / 3.832 GB, free: 17.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/13.64, allocations: 6.562 kB / 3.832 GB, free: 17.82 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0278/13.67, allocations: 4.96 MB / 3.837 GB, free: 17.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-05/13.67, allocations: 18.47 kB / 3.837 GB, free: 17.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0112/13.68, allocations: 1.498 MB / 3.838 GB, free: 17.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003476/13.68, allocations: 357.1 kB / 3.839 GB, free: 17.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0081/13.69, allocations: 2.671 MB / 3.841 GB, free: 17.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004345/13.7, allocations: 233.2 kB / 3.842 GB, free: 17.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006887/13.7, allocations: 100.7 kB / 3.842 GB, free: 17.06 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,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.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.001017/13.7, allocations: 188.6 kB / 3.842 GB, free: 16.93 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01345/13.71, allocations: 2.505 MB / 3.844 GB, free: 16.73 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001097/13.71, allocations: 180.7 kB / 3.845 GB, free: 16.64 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02042/13.73, allocations: 6.849 MB / 3.851 GB, free: 16.05 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000138/13.73, allocations: 74.59 kB / 3.851 GB, free: 16.05 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.996e-05/13.73, allocations: 17.5 kB / 3.851 GB, free: 16.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01598/13.75, allocations: 5.651 MB / 3.857 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02185/13.77, allocations: 9.247 MB / 3.866 GB, free: 14.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.232e-05/13.77, allocations: 7.562 kB / 3.866 GB, free: 14.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003224/13.77, allocations: 355.3 kB / 3.866 GB, free: 14.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001493/13.78, allocations: 338.1 kB / 3.867 GB, free: 14.76 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005378/13.78, allocations: 37.08 kB / 3.867 GB, free: 14.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002507/13.78, allocations: 2.69 MB / 3.869 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/13.78, allocations: 0.5625 kB / 3.869 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01457/13.79, allocations: 6.408 MB / 3.875 GB, free: 12.05 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002434/13.8, allocations: 0.6927 MB / 3.876 GB, free: 11.75 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001005/13.8, allocations: 19.62 kB / 3.876 GB, free: 11.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003329/13.8, allocations: 164.4 kB / 3.876 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006673/13.8, allocations: 134.2 kB / 3.876 GB, free: 11.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002467/13.8, allocations: 64.06 kB / 3.877 GB, free: 11.73 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002285/13.8, allocations: 1.024 MB / 3.878 GB, free: 11.62 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.403e-06/13.8, allocations: 0 / 3.878 GB, free: 11.62 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01323/13.82, allocations: 2.612 MB / 3.88 GB, free: 11.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,pipe1.statesFM[2].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 (183): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 21 * 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.0345/13.85, allocations: 10.08 MB / 3.89 GB, free: 7.656 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01277/13.86, allocations: 4.665 MB / 3.894 GB, free: 4.863 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/13.86, allocations: 0 / 3.894 GB, free: 4.863 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005599/13.87, allocations: 2.123 MB / 3.897 GB, free: 2.949 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007572/13.88, allocations: 0.7707 MB / 3.897 GB, free: 2.402 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02448/13.9, allocations: 7.005 MB / 3.904 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00355/13.91, allocations: 2.168 MB / 3.906 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003304/13.91, allocations: 1.214 MB / 3.907 GB, free: 9.617 MB / 0.4948 GB Notification: Performance of SimCode: time 1.182e-06/13.91, allocations: 5.219 kB / 3.907 GB, free: 9.613 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.682/19.59, allocations: 107.4 MB / 4.012 GB, free: 61.82 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat