Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.962/1.962, allocations: 209.4 MB / 216.5 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.406e-05/2.402e-05, allocations: 4 kB / 267.6 MB, free: 4.949 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 48.71 MB / 316.3 MB, free: 4.141 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.005/8.117, allocations: 2.547 GB / 2.856 GB, free: 47.15 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/8.117, allocations: 76.7 kB / 2.856 GB, free: 47.11 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.907/13.02, allocations: 0.8331 GB / 3.689 GB, free: 24.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 5.641e-06/13.02, allocations: 3.094 kB / 3.689 GB, free: 24.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004743/13.03, allocations: 69.77 kB / 3.689 GB, free: 24.49 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.02348/13.05, allocations: 3.737 MB / 3.693 GB, free: 22.66 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/13.05, allocations: 10.34 kB / 3.693 GB, free: 22.66 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01426/13.06, allocations: 0.8136 MB / 3.694 GB, free: 22.53 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/13.08, allocations: 2.091 MB / 3.696 GB, free: 22.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003965/13.08, allocations: 95.8 kB / 3.696 GB, free: 22.02 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001231/13.08, allocations: 109.8 kB / 3.696 GB, free: 22.02 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01003/13.09, allocations: 2.531 MB / 3.698 GB, free: 22.01 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009307/13.1, allocations: 2.78 MB / 3.701 GB, free: 21.47 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.742e-05/13.1, allocations: 11.81 kB / 3.701 GB, free: 21.46 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004157/13.1, allocations: 7.312 kB / 3.701 GB, free: 21.46 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003136/13.1, allocations: 161.7 kB / 3.701 GB, free: 21.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.8481/13.95, allocations: 78.55 MB / 3.778 GB, free: 29.24 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007072/13.95, allocations: 1.63 MB / 3.78 GB, free: 29.21 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003605/13.96, allocations: 0.9688 MB / 3.781 GB, free: 29.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06993/14.03, allocations: 17.45 MB / 3.798 GB, free: 18.32 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00291/14.03, allocations: 1.16 MB / 3.799 GB, free: 18.2 MB / 474.7 MB Notification: Performance of pre-optimization done (n=145): time 5.26e-06/14.03, allocations: 0 / 3.799 GB, free: 18.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=161): time 0.03466/14.06, allocations: 7.973 MB / 3.806 GB, free: 16.72 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001456/14.06, allocations: 386.9 kB / 3.807 GB, free: 16.28 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002471/14.07, allocations: 1.124 MB / 3.808 GB, free: 16.11 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005613/14.07, allocations: 29.42 kB / 3.808 GB, free: 16.08 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/14.07, allocations: 1.016 MB / 3.809 GB, free: 15.73 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/14.07, allocations: 0.5344 MB / 3.81 GB, free: 15.45 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002405/14.07, allocations: 0 / 3.81 GB, free: 15.45 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/14.07, allocations: 390.5 kB / 3.81 GB, free: 15.15 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002429/14.07, allocations: 1.014 MB / 3.811 GB, free: 15.14 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002981/14.08, allocations: 1.497 MB / 3.812 GB, free: 14.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02342/14.1, allocations: 3.303 MB / 3.816 GB, free: 14.58 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.123e-05/14.1, allocations: 3.688 kB / 3.816 GB, free: 14.58 MB / 474.7 MB Notification: Performance of matching and sorting (n=261) (initialization): time 0.03029/14.13, allocations: 5.55 MB / 3.821 GB, free: 14.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00125/14.13, allocations: 5.254 MB / 3.826 GB, free: 9.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.852e-05/14.13, allocations: 18.75 kB / 3.826 GB, free: 9.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01306/14.14, allocations: 2.032 MB / 3.828 GB, free: 9.004 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002284/14.15, allocations: 315.3 kB / 3.828 GB, free: 9.004 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009694/14.16, allocations: 3.659 MB / 3.832 GB, free: 24.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/14.16, allocations: 249.5 kB / 3.832 GB, free: 24.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003792/14.16, allocations: 105.8 kB / 3.832 GB, free: 24.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/14.16, allocations: 5.688 kB / 3.832 GB, free: 24.43 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0269/14.19, allocations: 4.958 MB / 3.837 GB, free: 24.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.524e-05/14.19, allocations: 18 kB / 3.837 GB, free: 24.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01109/14.2, allocations: 1.55 MB / 3.839 GB, free: 24.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00386/14.2, allocations: 352.6 kB / 3.839 GB, free: 24.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008208/14.21, allocations: 2.686 MB / 3.842 GB, free: 23.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00544/14.22, allocations: 232.5 kB / 3.842 GB, free: 23.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009126/14.22, allocations: 100.7 kB / 3.842 GB, free: 23.69 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.001489/14.22, allocations: 194.8 kB / 3.842 GB, free: 23.55 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01472/14.23, allocations: 2.497 MB / 3.845 GB, free: 23.35 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001187/14.23, allocations: 185.7 kB / 3.845 GB, free: 23.26 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02174/14.26, allocations: 6.836 MB / 3.851 GB, free: 22.68 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001039/14.26, allocations: 76.44 kB / 3.852 GB, free: 22.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/14.26, allocations: 0 / 3.852 GB, free: 22.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0119/14.27, allocations: 5.669 MB / 3.857 GB, free: 21.98 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02106/14.29, allocations: 9.246 MB / 3.866 GB, free: 21.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.171e-05/14.29, allocations: 0 / 3.866 GB, free: 21.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003229/14.29, allocations: 363.4 kB / 3.866 GB, free: 21.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/14.29, allocations: 339.2 kB / 3.867 GB, free: 21.36 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005111/14.3, allocations: 41.16 kB / 3.867 GB, free: 21.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00255/14.3, allocations: 2.677 MB / 3.869 GB, free: 19.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/14.3, allocations: 8.531 kB / 3.869 GB, free: 19.26 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01426/14.31, allocations: 6.403 MB / 3.876 GB, free: 18.67 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002373/14.31, allocations: 0.6912 MB / 3.876 GB, free: 18.37 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008615/14.32, allocations: 19.52 kB / 3.876 GB, free: 18.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003115/14.32, allocations: 157.1 kB / 3.877 GB, free: 18.34 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007276/14.32, allocations: 141.6 kB / 3.877 GB, free: 18.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002677/14.32, allocations: 70.73 kB / 3.877 GB, free: 18.33 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002657/14.32, allocations: 1.021 MB / 3.878 GB, free: 18.22 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.112e-06/14.32, allocations: 2.906 kB / 3.878 GB, free: 18.22 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01354/14.34, allocations: 2.616 MB / 3.88 GB, free: 18.1 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.03111/14.37, allocations: 10.08 MB / 3.89 GB, free: 16.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01216/14.38, allocations: 4.715 MB / 3.895 GB, free: 16.11 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/14.38, allocations: 0 / 3.895 GB, free: 16.11 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006771/14.39, allocations: 2.135 MB / 3.897 GB, free: 15.86 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007314/14.39, allocations: 0.7671 MB / 3.898 GB, free: 15.69 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02235/14.42, allocations: 6.998 MB / 3.904 GB, free: 12.08 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002866/14.42, allocations: 2.218 MB / 3.907 GB, free: 10.33 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007703/14.43, allocations: 1.923 MB / 3.908 GB, free: 9.191 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003138/14.43, allocations: 1.19 MB / 3.91 GB, free: 8.098 MB / 490.7 MB Notification: Performance of SimCode: time 1.563e-06/14.43, allocations: 0 / 3.91 GB, free: 8.098 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7882/15.22, allocations: 109.2 MB / 4.016 GB, free: 67.26 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002096/15.22, allocations: 184.3 kB / 4.016 GB, free: 67.06 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.189/23.41, allocations: 0 / 4.016 GB, free: 67.06 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat does not exist to compare? outputFormat=mat