Running command: "" <> buildModelFMU(Physiolibrary.Chemical.Examples.Hemoglobin.Develop.Hemoglobin_titration,fileNamePrefix="Physiolibrary_Physiolibrary_Chemical_Examples_Hemoglobin_Develop_Hemoglobin_titration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Physiolibrary): time 1.944/1.944, allocations: 210.4 MB / 222.5 MB, free: 4.801 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.369e-05/3.38e-05, allocations: 8 kB / 273.9 MB, free: 1.152 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 48.35 MB / 322.3 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4575/0.5595, allocations: 99.83 MB / 422.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/0.56, allocations: 90.06 kB / 422.2 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.251/3.811, allocations: 0.5915 GB / 1.004 GB, free: 6.941 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.106e-06/3.811, allocations: 4 kB / 1.004 GB, free: 6.938 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.002375/3.814, allocations: 283.6 kB / 1.004 GB, free: 6.66 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1228 * Number of variables: 1228 Notification: Performance of Generate backend data structure: time 0.7457/4.56, allocations: 8.109 MB / 1.012 GB, free: 28.9 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/4.56, allocations: 11 kB / 1.012 GB, free: 28.9 MB / 474.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004548/4.564, allocations: 0.7861 MB / 1.013 GB, free: 28.82 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007446/4.572, allocations: 0.912 MB / 1.014 GB, free: 28.35 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03052/4.602, allocations: 7.506 MB / 1.021 GB, free: 27.64 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007755/4.603, allocations: 402.5 kB / 1.021 GB, free: 27.63 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00305/4.606, allocations: 0.5131 MB / 1.022 GB, free: 27.63 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02764/4.634, allocations: 8.002 MB / 1.03 GB, free: 27.19 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002566/4.634, allocations: 7.531 kB / 1.03 GB, free: 27.19 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002307/4.636, allocations: 194.7 kB / 1.03 GB, free: 27.19 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001122/4.637, allocations: 115.8 kB / 1.03 GB, free: 27.19 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02427/4.661, allocations: 7.975 MB / 1.038 GB, free: 27.17 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.106/4.767, allocations: 30.25 MB / 1.067 GB, free: 22.76 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0127/4.78, allocations: 5.812 MB / 1.073 GB, free: 22.12 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008564/4.788, allocations: 3.841 MB / 1.077 GB, free: 21.89 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004753/4.789, allocations: 49.83 kB / 1.077 GB, free: 21.89 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.872e-05/4.789, allocations: 105.6 kB / 1.077 GB, free: 21.85 MB / 474.8 MB Notification: Performance of pre-optimization done (n=377): time 8.556e-06/4.789, allocations: 0 / 1.077 GB, free: 21.85 MB / 474.8 MB Notification: Performance of matching and sorting (n=567): time 2.135/6.924, allocations: 242.4 MB / 1.314 GB, free: 55.12 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002255/6.924, allocations: 0.7588 MB / 1.314 GB, free: 54.26 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02223/6.947, allocations: 8.29 MB / 1.322 GB, free: 53.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002073/6.949, allocations: 136.7 kB / 1.323 GB, free: 53.73 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005621/6.954, allocations: 3.618 MB / 1.326 GB, free: 52.91 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.005652/6.96, allocations: 1.953 MB / 1.328 GB, free: 51.79 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001723/6.962, allocations: 149.5 kB / 1.328 GB, free: 51.79 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006592/6.963, allocations: 0.6105 MB / 1.329 GB, free: 51.48 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01772/6.98, allocations: 7.577 MB / 1.336 GB, free: 51.46 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01991/7, allocations: 9.844 MB / 1.346 GB, free: 47.19 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01953/7.02, allocations: 8.445 MB / 1.354 GB, free: 43.29 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.899e-05/7.02, allocations: 24 kB / 1.354 GB, free: 43.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=966) (initialization): time 0.6492/7.669, allocations: 49.57 MB / 1.402 GB, free: 64.08 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/7.669, allocations: 38.38 kB / 1.402 GB, free: 64.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001759/7.67, allocations: 74.75 kB / 1.402 GB, free: 64.08 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1754/7.845, allocations: 39.91 MB / 1.441 GB, free: 63.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0102/7.855, allocations: 1.366 MB / 1.443 GB, free: 63.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4031/8.258, allocations: 133.2 MB / 1.573 GB, free: 16.94 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03154/8.29, allocations: 1.029 MB / 1.574 GB, free: 15.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002516/8.293, allocations: 339.9 kB / 1.574 GB, free: 15.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 331 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (688): * Single equations (assignments): 686 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(34,8.7%) 106} * Non-linear torn systems: 1 {34 106} Notification: Performance of prepare postOptimizeDAE: time 0.002978/8.296, allocations: 0.5262 MB / 1.575 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007301/8.303, allocations: 0.81 MB / 1.575 GB, free: 14.39 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005555/8.308, allocations: 1.291 MB / 1.577 GB, free: 13.09 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.331e-05/8.309, allocations: 63.98 kB / 1.577 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.4e-05/8.309, allocations: 24 kB / 1.577 GB, free: 13 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.463e-05/8.309, allocations: 34.95 kB / 1.577 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7249/9.034, allocations: 65.67 MB / 1.641 GB, free: 62.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001809/9.034, allocations: 47.81 kB / 1.641 GB, free: 62.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00447/9.038, allocations: 0.6033 MB / 1.642 GB, free: 62.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1678/9.206, allocations: 33.33 MB / 1.674 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001995/9.208, allocations: 203 kB / 1.674 GB, free: 59.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3595/9.568, allocations: 93.52 MB / 1.766 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.284e-05/9.568, allocations: 83.86 kB / 1.766 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.6552/10.22, allocations: 68.56 MB / 1.833 GB, free: 72.21 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01378/10.24, allocations: 2.652 MB / 1.835 GB, free: 72.12 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004791/10.24, allocations: 185.5 kB / 1.836 GB, free: 72.12 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02948/10.27, allocations: 0.8305 MB / 1.836 GB, free: 72.1 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004102/10.28, allocations: 0.7404 MB / 1.837 GB, free: 72.04 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001416/10.28, allocations: 225.4 kB / 1.837 GB, free: 72.04 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01769/10.29, allocations: 6.372 MB / 1.843 GB, free: 71.75 MB / 0.5262 GB Notification: Performance of sort global known variables: time 8.81e-07/10.29, allocations: 4 kB / 1.843 GB, free: 71.75 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.06809/10.36, allocations: 12.4 MB / 1.856 GB, free: 71.75 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 227 * Number of states: 25 (state[1],deoxyhemoglobin.state[1],deoxyhemoglobin.totalHb.state[1],deoxyhemoglobin.T.Speciation.state[11],deoxyhemoglobin.T.Speciation.state[10],deoxyhemoglobin.T.Speciation.state[9],deoxyhemoglobin.T.Speciation.state[8],deoxyhemoglobin.T.Speciation.state[7],deoxyhemoglobin.T.Speciation.state[6],deoxyhemoglobin.T.Speciation.state[5],deoxyhemoglobin.T.Speciation.state[4],deoxyhemoglobin.T.Speciation.state[3],deoxyhemoglobin.T.Speciation.state[2],deoxyhemoglobin.T.Speciation.state[1],deoxyhemoglobin.R.Speciation.state[11],deoxyhemoglobin.R.Speciation.state[10],deoxyhemoglobin.R.Speciation.state[9],deoxyhemoglobin.R.Speciation.state[8],deoxyhemoglobin.R.Speciation.state[7],deoxyhemoglobin.R.Speciation.state[6],deoxyhemoglobin.R.Speciation.state[5],deoxyhemoglobin.R.Speciation.state[4],deoxyhemoglobin.R.Speciation.state[3],deoxyhemoglobin.R.Speciation.state[2],deoxyhemoglobin.R.Speciation.state[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (326): * Single equations (assignments): 324 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(34,8.7%) 106} * Non-linear torn systems: 1 {34 106} Notification: Performance of Backend phase and start with SimCode phase: time 0.2781/10.64, allocations: 79.54 MB / 1.933 GB, free: 44.61 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.08327/10.72, allocations: 21.21 MB / 1.954 GB, free: 34.92 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 5.647e-05/10.72, allocations: 8 kB / 1.954 GB, free: 34.91 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.04776/10.77, allocations: 11.3 MB / 1.965 GB, free: 26.08 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01793/10.79, allocations: 2.123 MB / 1.967 GB, free: 24.21 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06642/10.86, allocations: 22.04 MB / 1.989 GB, free: 1.645 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3908/11.25, allocations: 6.25 MB / 1.995 GB, free: 63.48 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.01302/11.26, allocations: 2.161 MB / 1.997 GB, free: 63.41 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008511/11.27, allocations: 3.279 MB / 2 GB, free: 63.4 MB / 0.5262 GB Notification: Performance of SimCode: time 1.904e-06/11.27, allocations: 3.25 kB / 2 GB, free: 63.4 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.172/12.44, allocations: 359.4 MB / 2.351 GB, free: 15.9 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002879/12.44, allocations: 241.8 kB / 2.351 GB, free: 15.56 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.3/32.75, allocations: 0 / 2.351 GB, free: 15.56 MB / 0.5418 GB