Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07348/0.07348, allocations: 15.26 MB / 22.73 MB, free: 0.9492 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009703/0.0009702, allocations: 188.9 kB / 27.52 MB, free: 6.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.191/1.191, allocations: 221.5 MB / 253.7 MB, free: 10.36 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008029/0.0008029, allocations: 94.58 kB / 308.7 MB, free: 10.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.076e-05/1.078e-05, allocations: 3.422 kB / 369.7 MB, free: 53.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07134/0.07136, allocations: 54.64 MB / 424.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3037/0.3751, allocations: 104.7 MB / 0.5167 GB, free: 12.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001612/0.3753, allocations: 70.56 kB / 0.5167 GB, free: 12.28 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System blood_erythrocytes.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution$blood_erythrocytes. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System blood_plasma.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution$blood_plasma. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System HCO3.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$HCO3. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System CO2_gas.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.ExternalIdealGasSubstance$CO2_gas. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System CO2.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$CO2. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2O.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H2O. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System HCO3_E.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$HCO3_E. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System CO2_E.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$CO2_E. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2O_E.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H2O_E. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System Cl_E.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$Cl_E. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System Cl.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$Cl. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H_E.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.Buffer$H_E. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System others_E.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$others_E. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System others_P.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$others_P. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.Buffer$H. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.3184/0.6937, allocations: 140.7 MB / 0.6541 GB, free: 0.7539 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.6938, allocations: 0 / 0.6541 GB, free: 0.7539 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001502/0.6939, allocations: 76 kB / 0.6542 GB, free: 0.6797 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.009438/0.7034, allocations: 3.998 MB / 0.6581 GB, free: 12.62 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.458e-05/0.7034, allocations: 16.02 kB / 0.6581 GB, free: 12.6 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003979/0.7074, allocations: 1.005 MB / 0.6591 GB, free: 11.59 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005158/0.7126, allocations: 2.351 MB / 0.6614 GB, free: 9.164 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.7128, allocations: 189.7 kB / 0.6615 GB, free: 8.965 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004768/0.7133, allocations: 199.9 kB / 0.6617 GB, free: 8.77 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01077/0.724, allocations: 8.653 MB / 0.6702 GB, free: 112 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2153/0.9394, allocations: 4.484 MB / 0.6746 GB, free: 60.97 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.518e-05/0.9395, allocations: 1.906 kB / 0.6746 GB, free: 60.97 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002215/0.9397, allocations: 1.219 kB / 0.6746 GB, free: 60.97 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-05/0.9398, allocations: 78.33 kB / 0.6746 GB, free: 60.97 MB / 474.7 MB 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.02145/0.9612, allocations: 17.32 MB / 0.6916 GB, free: 57.82 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006373/0.9676, allocations: 7.106 MB / 0.6985 GB, free: 56.75 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002533/0.9701, allocations: 3.103 MB / 0.7015 GB, free: 56.73 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001083/0.9712, allocations: 0.9241 MB / 0.7024 GB, free: 56.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.9713, allocations: 73.67 kB / 0.7025 GB, free: 56.65 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002056/0.9733, allocations: 407.5 kB / 0.7029 GB, free: 56.59 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 5.43e-06/0.9734, allocations: 3.344 kB / 0.7029 GB, free: 56.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=582): time 0.1017/1.075, allocations: 41.2 MB / 0.7431 GB, free: 54.04 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/1.075, allocations: 110 kB / 0.7432 GB, free: 53.97 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001933/1.077, allocations: 1.836 MB / 0.745 GB, free: 53.34 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006251/1.078, allocations: 28.98 kB / 0.7451 GB, free: 53.31 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005995/1.078, allocations: 1.289 MB / 0.7463 GB, free: 52.42 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001396/1.08, allocations: 1.862 MB / 0.7481 GB, free: 51.19 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003642/1.08, allocations: 0 / 0.7481 GB, free: 51.19 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/1.08, allocations: 0.4953 MB / 0.7486 GB, free: 50.79 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0044/1.085, allocations: 4.585 MB / 0.7531 GB, free: 49.06 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004689/1.089, allocations: 5.102 MB / 0.7581 GB, free: 46.87 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009417/1.099, allocations: 5.733 MB / 0.7637 GB, free: 44.88 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.284e-05/1.099, allocations: 6.406 kB / 0.7637 GB, free: 44.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=663) (initialization): time 0.02634/1.125, allocations: 13.71 MB / 0.7771 GB, free: 40.38 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.199e-05/1.125, allocations: 11.06 kB / 0.7771 GB, free: 40.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.613e-05/1.125, allocations: 7.031 kB / 0.7771 GB, free: 40.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01074/1.136, allocations: 2.769 MB / 0.7798 GB, free: 39.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004655/1.141, allocations: 1.02 MB / 0.7808 GB, free: 38.94 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02348/1.164, allocations: 19.79 MB / 0.8001 GB, free: 20.26 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01278/1.177, allocations: 1.025 MB / 0.8011 GB, free: 19.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007615/1.178, allocations: 327.6 kB / 0.8014 GB, free: 19.61 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pH_p:VARIABLE() type: Real HendersonHasselbalch2.du:VARIABLE(unit = "J/mol" protected = true ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H_E.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_E.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real CO2_E.solution.v:DUMMY_STATE(flow=false unit = "V" ) "Electric potential in the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (516): * Single equations (assignments): 505 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 28,(1,100.0%) 3,(2,100.0%) 6,(1,100.0%) 3} * Non-linear torn systems: 5 {4 53,1 3,2 5,1 12,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009654/1.179, allocations: 200.7 kB / 0.8016 GB, free: 19.48 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02354/1.202, allocations: 12.55 MB / 0.8139 GB, free: 8.957 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001141/1.203, allocations: 359.5 kB / 0.8142 GB, free: 8.602 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02599/1.229, allocations: 13.44 MB / 0.8273 GB, free: 13.94 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02741/1.257, allocations: 13.32 MB / 0.8404 GB, free: 2.801 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/1.257, allocations: 10.56 kB / 0.8404 GB, free: 2.793 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001276/1.257, allocations: 30.14 kB / 0.8404 GB, free: 2.793 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2656/1.523, allocations: 40.69 MB / 0.8801 GB, free: 86.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.918e-05/1.523, allocations: 27.03 kB / 0.8802 GB, free: 86.21 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003108/1.526, allocations: 0.8606 MB / 0.881 GB, free: 86.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02748/1.553, allocations: 7.874 MB / 0.8887 GB, free: 86.15 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000764/1.554, allocations: 151 kB / 0.8888 GB, free: 86.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02608/1.58, allocations: 20.57 MB / 0.9089 GB, free: 79.39 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:376:7-379:62:writable] Error: Model is structurally singular, error found sorting equations 128: H2O.SelfClustering_dG = $cse38 - blood_plasma.temperature * $cse37; 130: H2O.amountOfBaseMolecules = exp(H2O.logn); 139: CO2.amountOfBaseMolecules = exp(CO2.logn); 138: others_P.amountOfBaseMolecules = exp(others_P.logn); 137: Cl.amountOfBaseMolecules = exp(Cl.logn); 135: HCO3.amountOfBaseMolecules = exp(HCO3.logn); 70: HCO3.amountOfBaseMolecules + CO2.amountOfBaseMolecules + H2O.solution.nj + Cl.amountOfBaseMolecules + others_P.amountOfBaseMolecules - H.solution.n = 0.0; 127: H2O.SelfClustering_K = exp((-0.120272355042726) * H2O.SelfClustering_dG / blood_plasma.temperature); 69: H2O.x = 0.5 * (2.0 * H2O.SelfClustering_K + H.solution.n / H2O.amountOfBaseMolecules - sqrt(4.0 * H2O.SelfClustering_K * H.solution.n / H2O.amountOfBaseMolecules + (H.solution.n / H2O.amountOfBaseMolecules) ^ 2.0)) / H2O.SelfClustering_K ^ 2.0; 144: $STATESET1.J[5] = H2O.x - H2O.amountOfFreeMolecule / H.solution.n; 68: H2O.solution.nj * (1.0 - H2O.SelfClustering_K * H2O.x) = H2O.amountOfFreeMolecule; for variables H2O.SelfClustering_dG(16), H2O.amountOfBaseMolecules(14), CO2.amountOfBaseMolecules(5), others_P.amountOfBaseMolecules(6), Cl.amountOfBaseMolecules(7), HCO3.amountOfBaseMolecules(9), H.solution.n(74), H2O.SelfClustering_K(17), H2O.x(75), H_E.xref(94), H2O.amountOfFreeMolecule(76), HCO3.solution.Ij(68) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01038/1.591, allocations: 4.078 MB / 0.9129 GB, free: 78.87 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02897/1.62, allocations: 22.51 MB / 0.9349 GB, free: 73.84 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/1.621, allocations: 0.5759 MB / 0.9354 GB, free: 73.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007283/1.622, allocations: 43.81 kB / 0.9355 GB, free: 73.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006913/1.629, allocations: 0.5204 MB / 0.936 GB, free: 73.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006864/1.629, allocations: 0.5356 MB / 0.9365 GB, free: 73.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004019/1.63, allocations: 272.2 kB / 0.9368 GB, free: 73.57 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001492/1.631, allocations: 1.398 MB / 0.9381 GB, free: 73.43 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/1.631, allocations: 2.844 kB / 0.9381 GB, free: 73.43 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009156/1.64, allocations: 4.237 MB / 0.9423 GB, free: 73.43 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 113 * Number of states: 14 ($STATESET1.x[13],$STATESET1.x[12],$STATESET1.x[11],$STATESET1.x[10],$STATESET1.x[9],$STATESET1.x[8],$STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],blood_plasma.mass) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (455): * Single equations (assignments): 449 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(3,77.8%) 28,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 2 {2 8,21 137} Notification: Performance of Backend phase and start with SimCode phase: time 0.03255/1.673, allocations: 32.28 MB / 0.9738 GB, free: 55.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01333/1.686, allocations: 11.58 MB / 0.9851 GB, free: 50.05 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-05/1.686, allocations: 4 kB / 0.9851 GB, free: 50.05 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0121/1.698, allocations: 8.292 MB / 0.9932 GB, free: 43.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005141/1.704, allocations: 1.009 MB / 0.9942 GB, free: 42.47 MB / 0.4948 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3851:9-3851:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]