Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.571/2.571, allocations: 270 MB / 282.6 MB, free: 1.957 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.23e-05/3.238e-05, allocations: 4 kB / 347.1 MB, free: 3.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4223/0.4223, allocations: 61.86 MB / 408.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.506/9.929, allocations: 2.832 GB / 3.232 GB, free: 71.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/9.929, allocations: 75.28 kB / 3.232 GB, free: 71.36 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.558/14.49, allocations: 0.8106 GB / 4.042 GB, free: 47.18 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.204e-06/14.49, allocations: 0 / 4.042 GB, free: 47.18 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003275/14.49, allocations: 68.19 kB / 4.042 GB, free: 47.17 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.01752/14.51, allocations: 3.856 MB / 4.046 GB, free: 45.33 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/14.51, allocations: 10.59 kB / 4.046 GB, free: 45.33 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001099/14.51, allocations: 290.8 kB / 4.046 GB, free: 45.28 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00894/14.52, allocations: 0.842 MB / 4.047 GB, free: 45.14 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008467/14.52, allocations: 2.089 MB / 4.049 GB, free: 44.69 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000318/14.52, allocations: 180.7 kB / 4.049 GB, free: 44.68 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009933/14.53, allocations: 199.4 kB / 4.05 GB, free: 44.68 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01149/14.54, allocations: 3.557 MB / 4.053 GB, free: 44.12 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-05/14.54, allocations: 8.984 kB / 4.053 GB, free: 44.12 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004347/14.54, allocations: 95.53 kB / 4.053 GB, free: 44.12 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003314/14.54, allocations: 163.4 kB / 4.053 GB, free: 44.12 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01086/14.55, allocations: 3.133 MB / 4.056 GB, free: 44.11 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.03093/14.58, allocations: 15.21 MB / 4.071 GB, free: 35.09 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008668/14.59, allocations: 2.229 MB / 4.073 GB, free: 35.06 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00278/14.59, allocations: 1.064 MB / 4.074 GB, free: 35.04 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07721/14.67, allocations: 24.55 MB / 4.098 GB, free: 19.77 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006112/14.67, allocations: 1.659 MB / 4.1 GB, free: 19.67 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.252e-06/14.67, allocations: 0 / 4.1 GB, free: 19.67 MB / 0.5573 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe3.mediums[1].p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=171): time 0.03876/14.71, allocations: 9.223 MB / 4.109 GB, free: 17.74 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/14.71, allocations: 279.2 kB / 4.109 GB, free: 17.43 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003094/14.72, allocations: 1.446 MB / 4.111 GB, free: 16.88 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005697/14.72, allocations: 57.17 kB / 4.111 GB, free: 16.82 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008865/14.72, allocations: 0.9061 MB / 4.112 GB, free: 16.06 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000878/14.72, allocations: 0.5804 MB / 4.112 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002339/14.72, allocations: 42.62 kB / 4.112 GB, free: 15.58 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000162/14.72, allocations: 398.3 kB / 4.113 GB, free: 15.23 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002773/14.72, allocations: 1.048 MB / 4.114 GB, free: 14.86 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003275/14.73, allocations: 1.499 MB / 4.115 GB, free: 13.93 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003352/14.73, allocations: 1.273 MB / 4.116 GB, free: 13.45 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.52e-05/14.73, allocations: 3.812 kB / 4.116 GB, free: 13.45 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008734/14.74, allocations: 2.977 MB / 4.119 GB, free: 12.35 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002226/14.74, allocations: 4.661 MB / 4.124 GB, free: 23.37 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-05/14.74, allocations: 10.88 kB / 4.124 GB, free: 23.37 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/14.74, allocations: 258.2 kB / 4.124 GB, free: 23.29 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004492/14.75, allocations: 0.5119 MB / 4.125 GB, free: 23.23 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002226/14.75, allocations: 2.489 MB / 4.127 GB, free: 20.98 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004314/14.75, allocations: 263 kB / 4.127 GB, free: 20.79 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005985/14.75, allocations: 102.6 kB / 4.127 GB, free: 20.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/14.75, allocations: 4 kB / 4.127 GB, free: 20.7 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007788/14.76, allocations: 2.826 MB / 4.13 GB, free: 18.21 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.555e-05/14.76, allocations: 19.56 kB / 4.13 GB, free: 18.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/14.76, allocations: 251.4 kB / 4.13 GB, free: 17.99 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004294/14.77, allocations: 0.5073 MB / 4.131 GB, free: 17.56 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002118/14.77, allocations: 2.49 MB / 4.133 GB, free: 15.07 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003368/14.77, allocations: 262.3 kB / 4.134 GB, free: 14.87 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004186/14.77, allocations: 94.33 kB / 4.134 GB, free: 14.78 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 (246): * Single equations (assignments): 239 * 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: 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 prepare postOptimizeDAE: time 0.0008585/14.77, allocations: 271.7 kB / 4.134 GB, free: 14.51 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006693/14.77, allocations: 205.6 kB / 4.134 GB, free: 14.3 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01509/14.79, allocations: 7.75 MB / 4.142 GB, free: 7.363 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001219/14.79, allocations: 90.5 kB / 4.142 GB, free: 7.309 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/14.79, allocations: 4 kB / 4.142 GB, free: 7.305 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01422/14.8, allocations: 6.641 MB / 4.148 GB, free: 1.125 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02656/14.83, allocations: 11.01 MB / 4.159 GB, free: 7.855 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.998e-05/14.83, allocations: 4 kB / 4.159 GB, free: 7.852 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003695/14.83, allocations: 408.3 kB / 4.159 GB, free: 7.52 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/14.84, allocations: 345.6 kB / 4.16 GB, free: 7.254 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005586/14.84, allocations: 66.27 kB / 4.16 GB, free: 7.199 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002469/14.84, allocations: 2.567 MB / 4.162 GB, free: 4.637 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/14.84, allocations: 7.422 kB / 4.162 GB, free: 4.633 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5984/15.44, allocations: 7.598 MB / 4.17 GB, free: 76.93 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003891/15.44, allocations: 0.7729 MB / 4.171 GB, free: 76.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001524/15.44, allocations: 51.45 kB / 4.171 GB, free: 76.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00556/15.45, allocations: 206.5 kB / 4.171 GB, free: 76.84 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001241/15.45, allocations: 148 kB / 4.171 GB, free: 76.84 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006861/15.45, allocations: 70.42 kB / 4.171 GB, free: 76.84 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.005987/15.46, allocations: 1.294 MB / 4.172 GB, free: 76.68 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.172e-06/15.46, allocations: 1.203 kB / 4.172 GB, free: 76.68 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01893/15.48, allocations: 2.801 MB / 4.175 GB, free: 76.68 MB / 0.5886 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.04302/15.52, allocations: 10.26 MB / 4.185 GB, free: 75.68 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01835/15.54, allocations: 4.95 MB / 4.19 GB, free: 75.42 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/15.54, allocations: 3.172 kB / 4.19 GB, free: 75.42 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.007914/15.55, allocations: 2.362 MB / 4.192 GB, free: 75.34 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01266/15.56, allocations: 0.9376 MB / 4.193 GB, free: 75.32 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02941/15.59, allocations: 7.674 MB / 4.201 GB, free: 73.98 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002348/15.59, allocations: 2.261 MB / 4.203 GB, free: 73.23 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00304/15.59, allocations: 1.352 MB / 4.204 GB, free: 73.23 MB / 0.5886 GB Notification: Performance of SimCode: time 1.573e-06/15.59, allocations: 0 / 4.204 GB, free: 73.23 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.374/20.97, allocations: 132.3 MB / 4.333 GB, free: 43.36 MB / 0.5886 GB