Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.469/2.469, allocations: 270 MB / 282.6 MB, free: 1.895 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.038e-05/4.051e-05, allocations: 8 kB / 347.1 MB, free: 3.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4033/0.4034, allocations: 61.87 MB / 408.9 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.727/9.131, allocations: 2.832 GB / 3.232 GB, free: 70.52 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/9.131, allocations: 79.58 kB / 3.232 GB, free: 70.48 MB / 0.5261 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Fluid/Interfaces.mo:306:3-308: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.787/13.92, allocations: 0.875 GB / 4.107 GB, free: 40.44 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.475e-06/13.92, allocations: 4.188 kB / 4.107 GB, free: 40.44 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.000327/13.92, allocations: 70.62 kB / 4.107 GB, free: 40.42 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01832/13.94, allocations: 3.856 MB / 4.111 GB, free: 37.54 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/13.94, allocations: 12.03 kB / 4.111 GB, free: 37.53 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001244/13.94, allocations: 290.6 kB / 4.111 GB, free: 37.29 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009075/13.95, allocations: 0.8435 MB / 4.112 GB, free: 36.62 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008444/13.96, allocations: 2.081 MB / 4.114 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003103/13.96, allocations: 178 kB / 4.114 GB, free: 34.75 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009629/13.96, allocations: 211.8 kB / 4.114 GB, free: 34.54 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01104/13.97, allocations: 3.55 MB / 4.118 GB, free: 31.44 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.209e-05/13.97, allocations: 11.94 kB / 4.118 GB, free: 31.43 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004313/13.97, allocations: 83.97 kB / 4.118 GB, free: 31.34 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002974/13.97, allocations: 162.5 kB / 4.118 GB, free: 31.21 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01072/13.98, allocations: 3.138 MB / 4.121 GB, free: 28.55 MB / 0.5573 GB 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.03004/14.01, allocations: 15.2 MB / 4.136 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00734/14.02, allocations: 2.231 MB / 4.138 GB, free: 10.75 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002491/14.02, allocations: 1.063 MB / 4.139 GB, free: 9.68 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5656/14.59, allocations: 24.54 MB / 4.163 GB, free: 56.77 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007675/14.59, allocations: 1.66 MB / 4.164 GB, free: 56.69 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 7.233e-06/14.59, allocations: 0 / 4.164 GB, free: 56.69 MB / 0.573 GB Notification: Performance of matching and sorting (n=171): time 0.02929/14.62, allocations: 7.037 MB / 4.171 GB, free: 56.02 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/14.62, allocations: 280.4 kB / 4.172 GB, free: 55.71 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003596/14.63, allocations: 1.44 MB / 4.173 GB, free: 55.54 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005992/14.63, allocations: 62.44 kB / 4.173 GB, free: 55.5 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009962/14.63, allocations: 0.9064 MB / 4.174 GB, free: 55.14 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001055/14.63, allocations: 0.5798 MB / 4.175 GB, free: 54.85 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/14.63, allocations: 43.69 kB / 4.175 GB, free: 54.85 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001646/14.63, allocations: 387.5 kB / 4.175 GB, free: 54.54 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002718/14.63, allocations: 1.054 MB / 4.176 GB, free: 54.53 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003408/14.64, allocations: 1.496 MB / 4.177 GB, free: 54.04 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003473/14.64, allocations: 1.277 MB / 4.179 GB, free: 53.98 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.162e-05/14.64, allocations: 2.812 kB / 4.179 GB, free: 53.98 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01064/14.65, allocations: 3.533 MB / 4.182 GB, free: 53.82 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001129/14.65, allocations: 4.657 MB / 4.187 GB, free: 48.98 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.081e-05/14.65, allocations: 17.53 kB / 4.187 GB, free: 48.98 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02752/14.68, allocations: 3.014 MB / 4.19 GB, free: 48.97 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002444/14.68, allocations: 309 kB / 4.19 GB, free: 48.97 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008004/14.69, allocations: 3.308 MB / 4.193 GB, free: 48.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004416/14.69, allocations: 256 kB / 4.193 GB, free: 48.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007434/14.69, allocations: 101.1 kB / 4.194 GB, free: 48.4 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/14.69, allocations: 5.875 kB / 4.194 GB, free: 48.4 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009596/14.7, allocations: 3.25 MB / 4.197 GB, free: 48.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.065e-05/14.7, allocations: 9.781 kB / 4.197 GB, free: 48.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01022/14.71, allocations: 1.577 MB / 4.198 GB, free: 48.28 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002793/14.72, allocations: 353 kB / 4.199 GB, free: 48.28 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005299/14.72, allocations: 2.561 MB / 4.201 GB, free: 47.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003546/14.73, allocations: 257.8 kB / 4.201 GB, free: 47.72 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005743/14.73, allocations: 101.2 kB / 4.201 GB, free: 47.72 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (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,valveOpening1.nextEventScaled,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 (157): * Single equations (assignments): 153 * 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.0008288/14.73, allocations: 265.1 kB / 4.202 GB, free: 47.58 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007614/14.73, allocations: 205.3 kB / 4.202 GB, free: 47.47 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01561/14.74, allocations: 7.741 MB / 4.209 GB, free: 46.77 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000129/14.74, allocations: 88.88 kB / 4.21 GB, free: 46.77 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/14.74, allocations: 2.078 kB / 4.21 GB, free: 46.77 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0115/14.76, allocations: 6.66 MB / 4.216 GB, free: 45.9 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02246/14.78, allocations: 10.94 MB / 4.227 GB, free: 45.21 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-05/14.78, allocations: 3.219 kB / 4.227 GB, free: 45.21 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003583/14.78, allocations: 405.7 kB / 4.227 GB, free: 45.21 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001974/14.78, allocations: 353.1 kB / 4.227 GB, free: 45.17 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000599/14.79, allocations: 63.62 kB / 4.227 GB, free: 45.17 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001792/14.79, allocations: 2.574 MB / 4.23 GB, free: 43.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/14.79, allocations: 0 / 4.23 GB, free: 43.1 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/14.8, allocations: 6.969 MB / 4.237 GB, free: 42.46 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002468/14.8, allocations: 0.7744 MB / 4.238 GB, free: 42.14 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001004/14.81, allocations: 52.67 kB / 4.238 GB, free: 42.14 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003642/14.81, allocations: 210.6 kB / 4.238 GB, free: 42.12 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007387/14.81, allocations: 153 kB / 4.238 GB, free: 42.12 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000297/14.81, allocations: 66.16 kB / 4.238 GB, free: 42.12 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00307/14.81, allocations: 1.292 MB / 4.239 GB, free: 41.96 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.91e-07/14.81, allocations: 2.719 kB / 4.239 GB, free: 41.96 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01431/14.83, allocations: 2.791 MB / 4.242 GB, free: 41.84 MB / 0.573 GB 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: 54 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 168 * 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.03036/14.86, allocations: 10.27 MB / 4.252 GB, free: 40.47 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01391/14.87, allocations: 4.988 MB / 4.257 GB, free: 40.18 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/14.87, allocations: 3 kB / 4.257 GB, free: 40.18 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005877/14.88, allocations: 2.368 MB / 4.259 GB, free: 40.11 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008926/14.89, allocations: 0.9252 MB / 4.26 GB, free: 40.08 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02401/14.91, allocations: 7.666 MB / 4.268 GB, free: 38.73 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002491/14.91, allocations: 2.259 MB / 4.27 GB, free: 37.98 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002744/14.92, allocations: 1.324 MB / 4.271 GB, free: 37.97 MB / 0.573 GB Notification: Performance of SimCode: time 1.723e-06/14.92, allocations: 0 / 4.271 GB, free: 37.97 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.846/20.76, allocations: 112.5 MB / 4.381 GB, free: 66.34 MB / 0.5886 GB