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.935/1.935, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.116e-05/4.122e-05, allocations: 7.938 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.926/8.032, allocations: 2.547 GB / 2.862 GB, free: 8.336 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002892/8.032, allocations: 73.91 kB / 2.862 GB, free: 8.301 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.547/12.58, allocations: 0.779 GB / 3.641 GB, free: 26.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.723e-06/12.58, allocations: 1.875 kB / 3.641 GB, free: 26.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003417/12.58, allocations: 64.81 kB / 3.641 GB, free: 26.13 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.01813/12.6, allocations: 3.742 MB / 3.645 GB, free: 24.32 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/12.6, allocations: 10.22 kB / 3.645 GB, free: 24.32 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001393/12.6, allocations: 286.2 kB / 3.645 GB, free: 24.28 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009258/12.61, allocations: 0.8146 MB / 3.646 GB, free: 24.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009194/12.62, allocations: 2.093 MB / 3.648 GB, free: 23.69 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004278/12.62, allocations: 186 kB / 3.648 GB, free: 23.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001193/12.62, allocations: 193.6 kB / 3.648 GB, free: 23.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01269/12.63, allocations: 3.535 MB / 3.652 GB, free: 23.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.753e-05/12.63, allocations: 7.469 kB / 3.652 GB, free: 23.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005785/12.63, allocations: 87.55 kB / 3.652 GB, free: 23.16 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003331/12.63, allocations: 161.2 kB / 3.652 GB, free: 23.16 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01155/12.64, allocations: 3.123 MB / 3.655 GB, free: 23.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.02997/12.67, allocations: 15.03 MB / 3.669 GB, free: 14.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007502/12.68, allocations: 2.214 MB / 3.672 GB, free: 14.05 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002769/12.69, allocations: 1.039 MB / 3.673 GB, free: 14.04 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.061/12.75, allocations: 18.84 MB / 3.691 GB, free: 17.98 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006107/12.75, allocations: 1.633 MB / 3.693 GB, free: 17.88 MB / 474.7 MB Notification: Performance of pre-optimization done (n=153): time 5.35e-06/12.75, allocations: 0 / 3.693 GB, free: 17.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=169): time 0.02541/12.78, allocations: 6.945 MB / 3.699 GB, free: 16.91 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000191/12.78, allocations: 280.8 kB / 3.7 GB, free: 16.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002946/12.78, allocations: 1.395 MB / 3.701 GB, free: 16.29 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005807/12.78, allocations: 59.55 kB / 3.701 GB, free: 16.24 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009197/12.78, allocations: 0.9224 MB / 3.702 GB, free: 15.46 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009271/12.78, allocations: 0.5865 MB / 3.703 GB, free: 15.01 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002285/12.78, allocations: 38.81 kB / 3.703 GB, free: 14.98 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002444/12.78, allocations: 391.5 kB / 3.703 GB, free: 14.64 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002596/12.79, allocations: 1.037 MB / 3.704 GB, free: 14.26 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002992/12.79, allocations: 1.525 MB / 3.706 GB, free: 13.28 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003156/12.79, allocations: 1.273 MB / 3.707 GB, free: 12.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.652e-05/12.79, allocations: 3.906 kB / 3.707 GB, free: 12.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.009048/12.8, allocations: 3.518 MB / 3.71 GB, free: 11.48 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002479/12.8, allocations: 5.181 MB / 3.715 GB, free: 5.949 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.3e-05/12.8, allocations: 13.72 kB / 3.715 GB, free: 5.949 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02316/12.83, allocations: 2.744 MB / 3.718 GB, free: 4.566 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002272/12.83, allocations: 322.6 kB / 3.718 GB, free: 4.289 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007949/12.84, allocations: 3.286 MB / 3.721 GB, free: 1.418 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004144/12.84, allocations: 264.7 kB / 3.722 GB, free: 1.215 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003657/12.84, allocations: 105.7 kB / 3.722 GB, free: 1.121 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/12.84, allocations: 4 kB / 3.722 GB, free: 1.117 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009686/12.85, allocations: 3.229 MB / 3.725 GB, free: 14.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.677e-05/12.85, allocations: 12 kB / 3.725 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01069/12.86, allocations: 1.578 MB / 3.727 GB, free: 13.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002864/12.87, allocations: 355.9 kB / 3.727 GB, free: 12.76 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006017/12.87, allocations: 2.557 MB / 3.729 GB, free: 10.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003514/12.88, allocations: 254.6 kB / 3.73 GB, free: 10.31 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006031/12.88, allocations: 105.1 kB / 3.73 GB, free: 10.21 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.0008847/12.88, allocations: 265.6 kB / 3.73 GB, free: 9.953 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007702/12.88, allocations: 197.6 kB / 3.73 GB, free: 9.758 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01803/12.9, allocations: 7.695 MB / 3.738 GB, free: 2.863 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001383/12.9, allocations: 91.16 kB / 3.738 GB, free: 2.809 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/12.9, allocations: 0 / 3.738 GB, free: 2.809 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4831/13.38, allocations: 6.623 MB / 3.744 GB, free: 54.98 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02623/13.41, allocations: 10.8 MB / 3.755 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.78e-05/13.41, allocations: 0 / 3.755 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00361/13.41, allocations: 403.3 kB / 3.755 GB, free: 54.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002059/13.41, allocations: 351.6 kB / 3.755 GB, free: 54.36 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005804/13.41, allocations: 63.8 kB / 3.756 GB, free: 54.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001846/13.41, allocations: 2.569 MB / 3.758 GB, free: 52.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/13.41, allocations: 0.8438 kB / 3.758 GB, free: 52.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0152/13.43, allocations: 6.9 MB / 3.765 GB, free: 51.85 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002507/13.43, allocations: 0.7435 MB / 3.766 GB, free: 51.68 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008652/13.43, allocations: 55.58 kB / 3.766 GB, free: 51.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003459/13.44, allocations: 193.8 kB / 3.766 GB, free: 51.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006731/13.44, allocations: 152.2 kB / 3.766 GB, free: 51.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002526/13.44, allocations: 66.45 kB / 3.766 GB, free: 51.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002898/13.44, allocations: 1.177 MB / 3.767 GB, free: 51.51 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.71e-07/13.44, allocations: 0 / 3.767 GB, free: 51.51 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01337/13.45, allocations: 2.74 MB / 3.77 GB, free: 51.51 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.03077/13.48, allocations: 10.18 MB / 3.78 GB, free: 50.25 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01733/13.5, allocations: 4.928 MB / 3.785 GB, free: 49.96 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/13.5, allocations: 0 / 3.785 GB, free: 49.96 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006811/13.51, allocations: 2.323 MB / 3.787 GB, free: 49.89 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00993/13.52, allocations: 0.863 MB / 3.788 GB, free: 49.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4222/13.94, allocations: 127.2 MB / 3.912 GB, free: 8.195 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002904/13.94, allocations: 2.265 MB / 3.914 GB, free: 6.426 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002753/13.95, allocations: 1.312 MB / 3.915 GB, free: 5.215 MB / 490.7 MB Notification: Performance of SimCode: time 1.844e-06/13.95, allocations: 2.156 kB / 3.915 GB, free: 5.215 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.704/19.65, allocations: 111.3 MB / 4.024 GB, free: 36.42 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