Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesWater,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(HelmholtzMedia): time 2.233/2.233, allocations: 215.3 MB / 227.5 MB, free: 0.7812 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.777e-05/3.775e-05, allocations: 11.09 kB / 279.7 MB, free: 12.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1214, allocations: 49.2 MB / 328.9 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.857/8.979, allocations: 2.771 GB / 3.092 GB, free: 68.67 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/8.979, allocations: 59.61 kB / 3.093 GB, free: 68.64 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7976/9.777, allocations: 107.7 MB / 3.198 GB, free: 90.94 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.774e-06/9.777, allocations: 0 / 3.198 GB, free: 90.94 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.202e-05/9.777, allocations: 0 / 3.198 GB, free: 90.94 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.004909/9.782, allocations: 0.8861 MB / 3.199 GB, free: 90.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/9.782, allocations: 7.812 kB / 3.199 GB, free: 90.34 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.666e-05/9.782, allocations: 49.48 kB / 3.199 GB, free: 90.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004564/9.783, allocations: 46.11 kB / 3.199 GB, free: 90.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/9.783, allocations: 208.9 kB / 3.199 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/9.783, allocations: 8.062 kB / 3.199 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.549e-05/9.783, allocations: 7.406 kB / 3.199 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/9.784, allocations: 269.9 kB / 3.199 GB, free: 90.04 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/9.784, allocations: 3.938 kB / 3.199 GB, free: 90.03 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.938e-05/9.784, allocations: 7.125 kB / 3.199 GB, free: 90.03 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/9.784, allocations: 4 kB / 3.199 GB, free: 90.03 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/9.785, allocations: 217.6 kB / 3.199 GB, free: 90.03 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000818/9.786, allocations: 0.6666 MB / 3.2 GB, free: 89.41 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/9.787, allocations: 237.1 kB / 3.2 GB, free: 89.36 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/9.787, allocations: 55.45 kB / 3.2 GB, free: 89.35 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2015/9.989, allocations: 63.95 MB / 3.263 GB, free: 48.42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.754e-05/9.989, allocations: 33.75 kB / 3.263 GB, free: 48.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=14): time 4.619e-06/9.989, allocations: 0 / 3.263 GB, free: 48.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=14): time 0.002282/9.991, allocations: 365.2 kB / 3.263 GB, free: 48.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.229e-05/9.991, allocations: 81.08 kB / 3.263 GB, free: 48.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/9.992, allocations: 123.6 kB / 3.263 GB, free: 48.15 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/9.992, allocations: 25.7 kB / 3.263 GB, free: 48.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.99e-05/9.992, allocations: 100.5 kB / 3.263 GB, free: 48.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.632e-05/9.992, allocations: 44.31 kB / 3.264 GB, free: 48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.71e-05/9.992, allocations: 1.938 kB / 3.264 GB, free: 48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.374e-05/9.992, allocations: 324.4 kB / 3.264 GB, free: 47.69 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/9.992, allocations: 59.08 kB / 3.264 GB, free: 47.68 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/9.992, allocations: 83.52 kB / 3.264 GB, free: 47.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/9.993, allocations: 57.83 kB / 3.264 GB, free: 47.65 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/9.993, allocations: 0 / 3.264 GB, free: 47.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0006911/9.993, allocations: 206 kB / 3.264 GB, free: 47.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/9.993, allocations: 11.78 kB / 3.264 GB, free: 47.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/9.993, allocations: 3.656 kB / 3.264 GB, free: 47.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/9.993, allocations: 0 / 3.264 GB, free: 47.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004282/9.994, allocations: 62.05 kB / 3.264 GB, free: 47.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/9.994, allocations: 3.406 kB / 3.264 GB, free: 47.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/9.994, allocations: 11.19 kB / 3.264 GB, free: 47.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.012e-05/9.994, allocations: 15.55 kB / 3.264 GB, free: 47.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state_h.phase,state_p.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001154/9.994, allocations: 122 kB / 3.264 GB, free: 47.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.492e-05/9.994, allocations: 10.92 kB / 3.264 GB, free: 47.48 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002645/9.997, allocations: 2.142 MB / 3.267 GB, free: 47.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/9.997, allocations: 3.938 kB / 3.267 GB, free: 47.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/9.997, allocations: 3.969 kB / 3.267 GB, free: 47.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/9.997, allocations: 3.094 kB / 3.267 GB, free: 47.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001223/9.998, allocations: 1.024 MB / 3.268 GB, free: 46.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/9.998, allocations: 3.594 kB / 3.268 GB, free: 46.99 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004701/9.999, allocations: 43.12 kB / 3.268 GB, free: 46.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/9.999, allocations: 3.531 kB / 3.268 GB, free: 46.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/9.999, allocations: 3.953 kB / 3.268 GB, free: 46.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/9.999, allocations: 0 / 3.268 GB, free: 46.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/9.999, allocations: 3.188 kB / 3.268 GB, free: 46.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009949/10, allocations: 0.6422 MB / 3.268 GB, free: 46.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.281e-05/10, allocations: 99.77 kB / 3.268 GB, free: 46.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.46e-05/10, allocations: 10.83 kB / 3.268 GB, free: 46.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002907/10, allocations: 3.656 kB / 3.268 GB, free: 46.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/10, allocations: 17.62 kB / 3.268 GB, free: 46.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.068e-05/10, allocations: 3.906 kB / 3.268 GB, free: 46.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 7.921e-05/10, allocations: 100.6 kB / 3.268 GB, free: 46.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.71e-07/10, allocations: 0 / 3.268 GB, free: 46.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005263/10.01, allocations: 0.9126 MB / 3.269 GB, free: 46.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_p_int,d_h_int) * Number of discrete variables: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01126/10.02, allocations: 2.348 MB / 3.272 GB, free: 44.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006414/10.02, allocations: 202.8 kB / 3.272 GB, free: 44.39 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/10.02, allocations: 0 / 3.272 GB, free: 44.39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002735/10.02, allocations: 156.3 kB / 3.272 GB, free: 44.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008812/10.02, allocations: 73.77 kB / 3.272 GB, free: 44.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005065/10.02, allocations: 0.8322 MB / 3.273 GB, free: 43.41 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/10.02, allocations: 0.7436 MB / 3.274 GB, free: 42.66 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007355/10.03, allocations: 367 kB / 3.274 GB, free: 42.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002256/10.03, allocations: 70.8 kB / 3.274 GB, free: 42.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.152e-06/10.03, allocations: 4.938 kB / 3.274 GB, free: 42.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08021/10.11, allocations: 28.3 MB / 3.302 GB, free: 26.34 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002912/10.11, allocations: 169.9 kB / 3.302 GB, free: 26.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.74/13.85, allocations: 0 / 3.302 GB, free: 26.1 MB / 442.7 MB