Running command: "" <> buildModelFMU(Physiolibrary.Chemical.Examples.Hemoglobin.Hemoglobin_MKM_Adair,fileNamePrefix="Physiolibrary_Physiolibrary_Chemical_Examples_Hemoglobin_Hemoglobin_MKM_Adair",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Physiolibrary): time 2.019/2.019, allocations: 210.4 MB / 222.5 MB, free: 4.797 MB / 186.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Euler" Notification: Performance of FrontEnd - loaded program: time 4.67e-05/4.679e-05, allocations: 0 / 273.9 MB, free: 1.172 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1274, allocations: 48.36 MB / 322.3 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.459/0.5865, allocations: 100.7 MB / 423 MB, free: 9.539 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.5869, allocations: 77.52 kB / 423.1 MB, free: 9.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.967/8.553, allocations: 1.303 GB / 1.716 GB, free: 28.34 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.963e-06/8.553, allocations: 0 / 1.716 GB, free: 28.34 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.006412/8.56, allocations: 0.6843 MB / 1.717 GB, free: 28.18 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: 2839 * Number of variables: 2839 Notification: Performance of Generate backend data structure: time 0.1042/8.664, allocations: 20.17 MB / 1.736 GB, free: 21.96 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.375e-05/8.664, allocations: 10.62 kB / 1.736 GB, free: 21.96 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01176/8.676, allocations: 1.506 MB / 1.738 GB, free: 21.86 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02425/8.7, allocations: 2.26 MB / 1.74 GB, free: 20.65 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07653/8.777, allocations: 16.53 MB / 1.756 GB, free: 18.14 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001493/8.778, allocations: 0.8638 MB / 1.757 GB, free: 18.12 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007361/8.786, allocations: 1.144 MB / 1.758 GB, free: 18.12 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06836/8.854, allocations: 18.78 MB / 1.777 GB, free: 17.58 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006881/8.855, allocations: 6.281 kB / 1.777 GB, free: 17.58 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006072/8.861, allocations: 439.8 kB / 1.777 GB, free: 17.58 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004034/8.862, allocations: 401.2 kB / 1.777 GB, free: 17.55 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05827/8.92, allocations: 18.72 MB / 1.796 GB, free: 16.73 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8677/9.788, allocations: 67.24 MB / 1.861 GB, free: 48.71 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03998/9.828, allocations: 11.4 MB / 1.872 GB, free: 48.25 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02573/9.853, allocations: 6.958 MB / 1.879 GB, free: 48.07 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001534/9.855, allocations: 65.52 kB / 1.879 GB, free: 48.06 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/9.855, allocations: 122.2 kB / 1.879 GB, free: 48.01 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=599): time 1.633e-05/9.855, allocations: 0 / 1.879 GB, free: 48.01 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1092): time 8.414/18.27, allocations: 0.907 GB / 2.786 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002139/18.27, allocations: 0.5761 MB / 2.787 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.092/19.36, allocations: 23.31 MB / 2.81 GB, free: 94.05 MB / 0.6512 GB Notification: Performance of collectPreVariables (initialization): time 0.00465/19.37, allocations: 238.7 kB / 2.81 GB, free: 94.02 MB / 0.6512 GB Notification: Performance of collectInitialEqns (initialization): time 0.01796/19.38, allocations: 10.37 MB / 2.82 GB, free: 93.66 MB / 0.6512 GB Notification: Performance of collectInitialBindings (initialization): time 0.01483/19.4, allocations: 3.794 MB / 2.824 GB, free: 91.34 MB / 0.6512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005008/19.4, allocations: 350.5 kB / 2.824 GB, free: 91.34 MB / 0.6512 GB Notification: Performance of setup shared object (initialization): time 0.001597/19.41, allocations: 1.034 MB / 2.825 GB, free: 90.99 MB / 0.6512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0405/19.45, allocations: 16.27 MB / 2.841 GB, free: 90.95 MB / 0.6512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04683/19.49, allocations: 22.54 MB / 2.863 GB, free: 83.34 MB / 0.6512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04622/19.54, allocations: 18.45 MB / 2.881 GB, free: 83.18 MB / 0.6512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003912/19.54, allocations: 60.44 kB / 2.881 GB, free: 83.18 MB / 0.6512 GB Notification: Performance of matching and sorting (n=2254) (initialization): time 0.3868/19.93, allocations: 75.06 MB / 2.954 GB, free: 72.03 MB / 0.6512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001948/19.93, allocations: 95.72 kB / 2.955 GB, free: 72.03 MB / 0.6512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003867/19.93, allocations: 209.6 kB / 2.955 GB, free: 72.03 MB / 0.6512 GB Notification: Tearing is skipped for strong component 2 because system size of 270 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.1674/20.09, allocations: 93.07 MB / 3.046 GB, free: 5.074 MB / 0.6512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02431/20.12, allocations: 3.309 MB / 3.049 GB, free: 2.297 MB / 0.6512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127/21.25, allocations: 166.1 MB / 3.211 GB, free: 65.26 MB / 0.6512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.07937/21.33, allocations: 2.472 MB / 3.214 GB, free: 65.25 MB / 0.6512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007443/21.33, allocations: 0.8485 MB / 3.214 GB, free: 65.25 MB / 0.6512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 950 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1716): * Single equations (assignments): 1714 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(270,0.9%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {105 165} Notification: Performance of prepare postOptimizeDAE: time 0.01371/21.35, allocations: 1.135 MB / 3.215 GB, free: 65.14 MB / 0.6512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01949/21.37, allocations: 2.059 MB / 3.217 GB, free: 64.41 MB / 0.6512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01547/21.38, allocations: 3.25 MB / 3.221 GB, free: 64.17 MB / 0.6512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/21.38, allocations: 106.4 kB / 3.221 GB, free: 64.17 MB / 0.6512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001575/21.38, allocations: 46.5 kB / 3.221 GB, free: 64.17 MB / 0.6512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000242/21.38, allocations: 55.88 kB / 3.221 GB, free: 64.17 MB / 0.6512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.021/22.4, allocations: 100.2 MB / 3.319 GB, free: 75.93 MB / 0.6512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002151/22.4, allocations: 58.95 kB / 3.319 GB, free: 75.93 MB / 0.6512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008386/22.41, allocations: 1.067 MB / 3.32 GB, free: 75.93 MB / 0.6512 GB Notification: Tearing is skipped for strong component 4 because system size of 270 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.1323/22.55, allocations: 21.94 MB / 3.341 GB, free: 75.45 MB / 0.6512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006349/22.55, allocations: 309.9 kB / 3.342 GB, free: 75.45 MB / 0.6512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4631/23.01, allocations: 83.04 MB / 3.423 GB, free: 73.67 MB / 0.6512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.64e-05/23.01, allocations: 90.06 kB / 3.423 GB, free: 73.67 MB / 0.6512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3988/23.41, allocations: 116.8 MB / 3.537 GB, free: 17.07 MB / 0.6668 GB Notification: Performance of postOpt removeConstants (simulation): time 0.03866/23.45, allocations: 5.727 MB / 3.542 GB, free: 11.29 MB / 0.6668 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01133/23.46, allocations: 271.9 kB / 3.543 GB, free: 11.03 MB / 0.6668 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.06746/23.53, allocations: 1.833 MB / 3.544 GB, free: 9.242 MB / 0.6668 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.01041/23.54, allocations: 1.295 MB / 3.546 GB, free: 8.012 MB / 0.6668 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004292/23.55, allocations: 378.9 kB / 3.546 GB, free: 7.645 MB / 0.6668 GB Notification: Performance of sorting global known variables: time 0.63/24.18, allocations: 17.83 MB / 3.563 GB, free: 95.88 MB / 0.6668 GB Notification: Performance of sort global known variables: time 1.092e-06/24.18, allocations: 0 / 3.563 GB, free: 95.88 MB / 0.6668 GB Notification: Performance of remove unused functions: time 0.1986/24.37, allocations: 38.08 MB / 3.601 GB, free: 95.88 MB / 0.6668 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 257 * Number of states: 16 (totalHemoglobin.state[1],Hb4.Hb_tn.state[3],Hb4.Hb_tn.state[2],Hb4.Hb_tn.state[1],Hb3.Hb_tn.state[3],Hb3.Hb_tn.state[2],Hb3.Hb_tn.state[1],Hb2.Hb_tn.state[3],Hb2.Hb_tn.state[2],Hb2.Hb_tn.state[1],Hb1.Hb_tn.state[3],Hb1.Hb_tn.state[2],Hb1.Hb_tn.state[1],Hb0.Hb_tn.state[3],Hb0.Hb_tn.state[2],Hb0.Hb_tn.state[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (566): * Single equations (assignments): 564 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(270,0.9%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {105 165} Notification: Performance of Backend phase and start with SimCode phase: time 0.4194/24.79, allocations: 120.9 MB / 3.719 GB, free: 60.05 MB / 0.6668 GB Notification: Performance of simCode: created initialization part: time 0.1397/24.93, allocations: 41.59 MB / 3.759 GB, free: 33.25 MB / 0.6668 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-05/24.93, allocations: 11.75 kB / 3.759 GB, free: 33.24 MB / 0.6668 GB Notification: Performance of simCode: created simulation system equations: time 0.08306/25.02, allocations: 21.98 MB / 3.781 GB, free: 16.84 MB / 0.6668 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05925/25.08, allocations: 4.523 MB / 3.785 GB, free: 13.26 MB / 0.6668 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8882/25.96, allocations: 73.08 MB / 3.857 GB, free: 99.47 MB / 0.6668 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03693/26, allocations: 13.64 MB / 3.87 GB, free: 98.03 MB / 0.6668 GB Notification: Performance of simCode: alias equations: time 0.03364/26.04, allocations: 5.979 MB / 3.876 GB, free: 97.54 MB / 0.6668 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02462/26.06, allocations: 8.939 MB / 3.884 GB, free: 97.53 MB / 0.6668 GB Notification: Performance of SimCode: time 2.013e-06/26.06, allocations: 0.75 kB / 3.884 GB, free: 97.53 MB / 0.6668 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.401/29.46, allocations: 0.7077 GB / 4.592 GB, free: 94.18 MB / 0.7137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002885/29.46, allocations: 237.9 kB / 4.592 GB, free: 93.85 MB / 0.7137 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.89/73.35, allocations: 0 / 4.592 GB, free: 93.85 MB / 0.7137 GB