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: translateModel(Chemical.Examples.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.127/0.127, allocations: 15.26 MB / 22.73 MB, free: 0.9727 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.001352/0.001352, allocations: 185 kB / 27.52 MB, free: 6.117 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.577/1.577, allocations: 221.5 MB / 253.7 MB, free: 10.35 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.0009316/0.0009313, allocations: 79.91 kB / 308.7 MB, free: 10.45 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.63e-05/1.631e-05, allocations: 2.719 kB / 369.6 MB, free: 53.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.09038, allocations: 54.64 MB / 424.2 MB, free: 13.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3886/0.479, allocations: 104.7 MB / 0.5166 GB, free: 14.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001905/0.4792, allocations: 71.59 kB / 0.5166 GB, free: 14.09 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.3489/0.8281, allocations: 140.7 MB / 0.654 GB, free: 1.398 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.8282, allocations: 0 / 0.654 GB, free: 1.398 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002378/0.8284, allocations: 83.92 kB / 0.6541 GB, free: 1.316 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.01001/0.8384, allocations: 3.982 MB / 0.658 GB, free: 13.27 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.8385, allocations: 20.02 kB / 0.658 GB, free: 13.25 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004005/0.8425, allocations: 1.001 MB / 0.659 GB, free: 12.24 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005288/0.8478, allocations: 2.344 MB / 0.6612 GB, free: 9.824 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000209/0.848, allocations: 193.6 kB / 0.6614 GB, free: 9.621 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007573/0.8488, allocations: 199.8 kB / 0.6616 GB, free: 9.426 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01193/0.8607, allocations: 8.657 MB / 0.6701 GB, free: 0.7617 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2395/1.1, allocations: 4.483 MB / 0.6744 GB, free: 61.2 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.14e-05/1.1, allocations: 1.344 kB / 0.6744 GB, free: 61.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000233/1.101, allocations: 1.375 kB / 0.6745 GB, free: 61.2 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.079e-05/1.101, allocations: 80.47 kB / 0.6745 GB, free: 61.2 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.02459/1.125, allocations: 17.33 MB / 0.6914 GB, free: 58.04 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008483/1.134, allocations: 7.109 MB / 0.6984 GB, free: 56.98 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003646/1.137, allocations: 3.101 MB / 0.7014 GB, free: 56.95 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001422/1.139, allocations: 0.926 MB / 0.7023 GB, free: 56.92 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/1.139, allocations: 73.42 kB / 0.7024 GB, free: 56.88 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002781/1.142, allocations: 399.4 kB / 0.7028 GB, free: 56.81 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 8.175e-06/1.142, allocations: 0 / 0.7028 GB, free: 56.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=582): time 0.1166/1.258, allocations: 41.2 MB / 0.743 GB, free: 54.27 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/1.259, allocations: 113.4 kB / 0.7431 GB, free: 54.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002764/1.261, allocations: 1.835 MB / 0.7449 GB, free: 53.51 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001/1.262, allocations: 29.45 kB / 0.7449 GB, free: 53.48 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007667/1.263, allocations: 1.293 MB / 0.7462 GB, free: 52.59 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001991/1.265, allocations: 1.856 MB / 0.748 GB, free: 51.36 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004235/1.266, allocations: 2.656 kB / 0.748 GB, free: 51.36 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002399/1.266, allocations: 0.5004 MB / 0.7485 GB, free: 50.96 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005346/1.271, allocations: 4.575 MB / 0.753 GB, free: 49.23 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005388/1.277, allocations: 5.105 MB / 0.758 GB, free: 47.04 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/1.287, allocations: 5.732 MB / 0.7636 GB, free: 45.05 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-05/1.287, allocations: 2.531 kB / 0.7636 GB, free: 45.05 MB / 474.7 MB Notification: Performance of matching and sorting (n=663) (initialization): time 0.03537/1.323, allocations: 13.72 MB / 0.777 GB, free: 40.55 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/1.323, allocations: 11.59 kB / 0.777 GB, free: 40.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.624e-05/1.323, allocations: 9.906 kB / 0.777 GB, free: 40.55 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01165/1.334, allocations: 2.77 MB / 0.7797 GB, free: 39.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005248/1.34, allocations: 1.014 MB / 0.7807 GB, free: 39.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02572/1.365, allocations: 19.79 MB / 0.8 GB, free: 20.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01322/1.379, allocations: 1.036 MB / 0.801 GB, free: 20.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001348/1.38, allocations: 318.3 kB / 0.8013 GB, free: 20.29 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.001716/1.382, allocations: 193.9 kB / 0.8015 GB, free: 20.16 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001203/1.383, allocations: 367.5 kB / 0.8018 GB, free: 19.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02628/1.409, allocations: 13.29 MB / 0.8148 GB, free: 8.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02692/1.436, allocations: 13.35 MB / 0.8279 GB, free: 13.71 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.098e-05/1.436, allocations: 4 kB / 0.8279 GB, free: 13.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002519/1.437, allocations: 32.62 kB / 0.8279 GB, free: 13.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3278/1.764, allocations: 40.77 MB / 0.8677 GB, free: 84.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.666e-05/1.764, allocations: 25.03 kB / 0.8677 GB, free: 84.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003886/1.768, allocations: 0.8573 MB / 0.8686 GB, free: 84.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03069/1.799, allocations: 7.88 MB / 0.8763 GB, free: 84.83 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001091/1.8, allocations: 159.1 kB / 0.8764 GB, free: 84.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02695/1.827, allocations: 20.55 MB / 0.8965 GB, free: 78.07 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.01132/1.839, allocations: 4.086 MB / 0.9005 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03403/1.873, allocations: 22.51 MB / 0.9225 GB, free: 72.52 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/1.874, allocations: 0.5767 MB / 0.923 GB, free: 72.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009364/1.875, allocations: 40.41 kB / 0.9231 GB, free: 72.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007298/1.882, allocations: 0.5238 MB / 0.9236 GB, free: 72.23 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000846/1.883, allocations: 0.5415 MB / 0.9241 GB, free: 72.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004504/1.884, allocations: 268 kB / 0.9244 GB, free: 72.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001546/1.885, allocations: 1.397 MB / 0.9257 GB, free: 72.06 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.81e-07/1.885, allocations: 2.25 kB / 0.9257 GB, free: 72.06 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01112/1.896, allocations: 4.24 MB / 0.9299 GB, free: 72.06 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.004414/1.901, allocations: 2.35 MB / 0.9322 GB, free: 71.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01634/1.917, allocations: 11.58 MB / 0.9435 GB, free: 70.99 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.673e-05/1.917, allocations: 7.469 kB / 0.9435 GB, free: 70.99 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01527/1.933, allocations: 8.292 MB / 0.9516 GB, free: 70.22 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006398/1.939, allocations: 1.007 MB / 0.9526 GB, free: 70.16 MB / 0.4948 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3851:9-3851:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/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]