Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.21/2.21, allocations: 209.4 MB / 216.5 MB, free: 6.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.267e-05/3.271e-05, allocations: 4 kB / 267.6 MB, free: 4.961 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.12, allocations: 48.7 MB / 316.3 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.057/8.177, allocations: 2.547 GB / 2.856 GB, free: 45.12 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/8.177, allocations: 75.16 kB / 2.856 GB, free: 45.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.634/12.81, allocations: 0.7726 GB / 3.629 GB, free: 23.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.723e-06/12.81, allocations: 0 / 3.629 GB, free: 23.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003173/12.81, allocations: 64.95 kB / 3.629 GB, free: 23.39 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.01731/12.83, allocations: 3.743 MB / 3.632 GB, free: 21.58 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/12.83, allocations: 6.844 kB / 3.632 GB, free: 21.58 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009109/12.84, allocations: 0.8122 MB / 3.633 GB, free: 21.45 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009377/12.85, allocations: 2.091 MB / 3.635 GB, free: 20.99 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003007/12.85, allocations: 98 kB / 3.635 GB, free: 20.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/12.85, allocations: 116.6 kB / 3.635 GB, free: 20.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007048/12.86, allocations: 2.526 MB / 3.638 GB, free: 20.98 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008014/12.86, allocations: 2.781 MB / 3.641 GB, free: 20.46 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.569e-05/12.86, allocations: 8.094 kB / 3.641 GB, free: 20.46 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003988/12.87, allocations: 7.344 kB / 3.641 GB, free: 20.46 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003079/12.87, allocations: 163.7 kB / 3.641 GB, free: 20.45 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.3053/13.17, allocations: 78.57 MB / 3.717 GB, free: 10.93 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00408/13.17, allocations: 1.631 MB / 3.719 GB, free: 10.9 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001962/13.18, allocations: 0.9657 MB / 3.72 GB, free: 10.88 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05505/13.23, allocations: 17.46 MB / 3.737 GB, free: 15.41 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002851/13.23, allocations: 1.152 MB / 3.738 GB, free: 15.28 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=145): time 4.949e-06/13.23, allocations: 2.25 kB / 3.738 GB, free: 15.28 MB / 0.4949 GB Notification: Performance of matching and sorting (n=161): time 0.03425/13.27, allocations: 7.98 MB / 3.746 GB, free: 13.57 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002386/13.27, allocations: 392.4 kB / 3.746 GB, free: 13.12 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002354/13.27, allocations: 1.124 MB / 3.747 GB, free: 12.95 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0005468/13.27, allocations: 29.58 kB / 3.747 GB, free: 12.91 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.001083/13.27, allocations: 1.013 MB / 3.748 GB, free: 12.45 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008911/13.27, allocations: 0.5327 MB / 3.749 GB, free: 12.1 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/13.27, allocations: 0 / 3.749 GB, free: 12.1 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.00026/13.27, allocations: 396.6 kB / 3.749 GB, free: 11.79 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002583/13.28, allocations: 1.009 MB / 3.75 GB, free: 11.34 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003021/13.28, allocations: 1.502 MB / 3.752 GB, free: 10.2 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02314/13.3, allocations: 3.3 MB / 3.755 GB, free: 8.375 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.723e-05/13.3, allocations: 4 kB / 3.755 GB, free: 8.371 MB / 0.4949 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.03043/13.33, allocations: 5.539 MB / 3.76 GB, free: 5.199 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.4022/13.74, allocations: 5.251 MB / 3.766 GB, free: 69.22 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001092/13.74, allocations: 16.2 kB / 3.766 GB, free: 69.22 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01401/13.75, allocations: 2.031 MB / 3.768 GB, free: 69.21 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002501/13.75, allocations: 318.2 kB / 3.768 GB, free: 69.21 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/13.76, allocations: 3.655 MB / 3.771 GB, free: 68.67 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00436/13.77, allocations: 253.6 kB / 3.772 GB, free: 68.67 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008501/13.77, allocations: 105.1 kB / 3.772 GB, free: 68.67 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/13.77, allocations: 3.281 kB / 3.772 GB, free: 68.67 MB / 0.4949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03414/13.8, allocations: 4.966 MB / 3.777 GB, free: 68.62 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000134/13.8, allocations: 14.56 kB / 3.777 GB, free: 68.62 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01147/13.82, allocations: 1.55 MB / 3.778 GB, free: 68.6 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002841/13.82, allocations: 358.1 kB / 3.778 GB, free: 68.6 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005638/13.82, allocations: 2.681 MB / 3.781 GB, free: 68.06 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003877/13.83, allocations: 232.3 kB / 3.781 GB, free: 68.06 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006383/13.83, allocations: 99.78 kB / 3.781 GB, free: 68.06 MB / 0.4949 GB 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.0009077/13.83, allocations: 193.2 kB / 3.782 GB, free: 67.92 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01041/13.84, allocations: 2.5 MB / 3.784 GB, free: 67.85 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007903/13.84, allocations: 184.6 kB / 3.784 GB, free: 67.84 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01486/13.86, allocations: 6.842 MB / 3.791 GB, free: 67.41 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/13.86, allocations: 80.91 kB / 3.791 GB, free: 67.41 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/13.86, allocations: 2.625 kB / 3.791 GB, free: 67.41 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01151/13.87, allocations: 5.655 MB / 3.797 GB, free: 66.73 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02033/13.89, allocations: 9.245 MB / 3.806 GB, free: 66.23 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.366e-05/13.89, allocations: 1.594 kB / 3.806 GB, free: 66.23 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003135/13.89, allocations: 359.2 kB / 3.806 GB, free: 66.23 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/13.89, allocations: 339.1 kB / 3.806 GB, free: 66.19 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000428/13.89, allocations: 40.86 kB / 3.806 GB, free: 66.18 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001934/13.89, allocations: 2.684 MB / 3.809 GB, free: 64.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/13.89, allocations: 6.484 kB / 3.809 GB, free: 64.1 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01365/13.91, allocations: 6.403 MB / 3.815 GB, free: 63.5 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002283/13.91, allocations: 0.6948 MB / 3.816 GB, free: 63.26 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007426/13.91, allocations: 19.42 kB / 3.816 GB, free: 63.26 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002793/13.91, allocations: 160.1 kB / 3.816 GB, free: 63.25 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004397/13.91, allocations: 137.6 kB / 3.816 GB, free: 63.25 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002074/13.91, allocations: 63.17 kB / 3.816 GB, free: 63.25 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.002079/13.92, allocations: 1.028 MB / 3.817 GB, free: 63.14 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.71e-07/13.92, allocations: 0 / 3.817 GB, free: 63.14 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01433/13.93, allocations: 2.614 MB / 3.82 GB, free: 63.1 MB / 0.4949 GB 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.02917/13.96, allocations: 10.07 MB / 3.83 GB, free: 61.52 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01161/13.97, allocations: 4.709 MB / 3.834 GB, free: 61.25 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/13.97, allocations: 0.625 kB / 3.834 GB, free: 61.25 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.006898/13.98, allocations: 2.136 MB / 3.836 GB, free: 61.18 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01105/13.99, allocations: 0.7789 MB / 3.837 GB, free: 61.16 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03277/14.02, allocations: 7.001 MB / 3.844 GB, free: 59.74 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004517/14.03, allocations: 2.217 MB / 3.846 GB, free: 58.97 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01063/14.04, allocations: 1.923 MB / 3.848 GB, free: 58.94 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003654/14.04, allocations: 1.185 MB / 3.849 GB, free: 58.93 MB / 0.4949 GB Notification: Performance of SimCode: time 2.425e-06/14.04, allocations: 0 / 3.849 GB, free: 58.93 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6727/14.71, allocations: 109.1 MB / 3.956 GB, free: 59.85 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002574/14.72, allocations: 173.2 kB / 3.956 GB, free: 59.66 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.091/22.81, allocations: 0 / 3.956 GB, free: 59.66 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat does not exist to compare? outputFormat=mat