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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.0665/0.0665, allocations: 15.27 MB / 22.54 MB, free: 1.102 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.0009195/0.0009195, allocations: 187.5 kB / 27.31 MB, free: 20 kB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.096/1.096, allocations: 221.4 MB / 253.3 MB, free: 10.72 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.0009034/0.0009034, allocations: 108 kB / 308.4 MB, free: 10.62 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.15e-06/5.16e-06, allocations: 0 / 369 MB, free: 54.13 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06897/0.06899, allocations: 54.63 MB / 423.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2349/0.304, allocations: 104.7 MB / 0.5159 GB, free: 8.328 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001637/0.3042, allocations: 71.22 kB / 0.516 GB, free: 8.328 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: time 0.3381/0.6423, allocations: 141.3 MB / 0.654 GB, free: 13.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002202/0.6425, allocations: 75.94 kB / 0.654 GB, free: 13.43 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: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.01031/0.6528, allocations: 4.084 MB / 0.658 GB, free: 9.301 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.6529, allocations: 8.031 kB / 0.658 GB, free: 9.293 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00453/0.6574, allocations: 1.048 MB / 0.6591 GB, free: 8.238 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005875/0.6633, allocations: 2.383 MB / 0.6614 GB, free: 5.828 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002339/0.6636, allocations: 185.7 kB / 0.6616 GB, free: 5.633 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009084/0.6645, allocations: 199.8 kB / 0.6617 GB, free: 5.438 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1361/0.8006, allocations: 8.682 MB / 0.6702 GB, free: 96.25 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005735/0.8063, allocations: 4.484 MB / 0.6746 GB, free: 96.02 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.875e-05/0.8064, allocations: 3.5 kB / 0.6746 GB, free: 96.02 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002283/0.8067, allocations: 0 / 0.6746 GB, free: 96.02 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.486e-05/0.8067, allocations: 76.09 kB / 0.6747 GB, free: 96.02 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02236/0.8291, allocations: 17.55 MB / 0.6918 GB, free: 92.87 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002999/0.8321, allocations: 3.266 MB / 0.695 GB, free: 92.86 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00276/0.8349, allocations: 3.096 MB / 0.698 GB, free: 92.83 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00104/0.8359, allocations: 0.9232 MB / 0.6989 GB, free: 92.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.836, allocations: 70.67 kB / 0.699 GB, free: 92.76 MB / 474.7 MB Notification: Performance of pre-optimization done (n=391): time 4.919e-06/0.836, allocations: 0 / 0.699 GB, free: 92.76 MB / 474.7 MB Notification: Performance of matching and sorting (n=582): time 0.1162/0.9522, allocations: 41.61 MB / 0.7396 GB, free: 90.26 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.9523, allocations: 109.2 kB / 0.7397 GB, free: 90.19 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003132/0.9555, allocations: 1.847 MB / 0.7415 GB, free: 89.98 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008951/0.9564, allocations: 25.7 kB / 0.7416 GB, free: 89.95 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004616/0.9568, allocations: 0.8607 MB / 0.7424 GB, free: 89.59 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002165/0.959, allocations: 1.859 MB / 0.7442 GB, free: 88.43 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007078/0.9597, allocations: 0 / 0.7442 GB, free: 88.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002282/0.96, allocations: 0.4972 MB / 0.7447 GB, free: 88.03 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005435/0.9654, allocations: 4.612 MB / 0.7492 GB, free: 86.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005555/0.971, allocations: 5.137 MB / 0.7542 GB, free: 84.11 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/0.9819, allocations: 5.847 MB / 0.7599 GB, free: 82.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.786e-05/0.9819, allocations: 3.625 kB / 0.7599 GB, free: 82.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=663) (initialization): time 0.03417/1.016, allocations: 14.03 MB / 0.7736 GB, free: 77.63 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/1.016, allocations: 3.875 kB / 0.7736 GB, free: 77.63 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.691e-05/1.016, allocations: 11.72 kB / 0.7737 GB, free: 77.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0128/1.029, allocations: 2.799 MB / 0.7764 GB, free: 77.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005449/1.034, allocations: 1.044 MB / 0.7774 GB, free: 76.99 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02737/1.062, allocations: 19.65 MB / 0.7966 GB, free: 63.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01269/1.075, allocations: 0.7516 MB / 0.7973 GB, free: 63.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00141/1.076, allocations: 325.2 kB / 0.7976 GB, free: 63.11 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.001682/1.078, allocations: 187.3 kB / 0.7978 GB, free: 62.99 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/1.079, allocations: 359.4 kB / 0.7982 GB, free: 62.74 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02794/1.107, allocations: 13.64 MB / 0.8115 GB, free: 51.58 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02673/1.134, allocations: 13.55 MB / 0.8247 GB, free: 40.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.58e-05/1.134, allocations: 12.28 kB / 0.8247 GB, free: 40.29 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.655e-05/1.134, allocations: 37.34 kB / 0.8248 GB, free: 40.29 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05453/1.188, allocations: 40.7 MB / 0.8645 GB, free: 7.348 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-05/1.188, allocations: 32 kB / 0.8645 GB, free: 7.316 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003634/1.192, allocations: 0.8704 MB / 0.8654 GB, free: 6.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03201/1.224, allocations: 7.816 MB / 0.873 GB, free: 1.918 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009773/1.225, allocations: 151.9 kB / 0.8732 GB, free: 1.844 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1524/1.377, allocations: 21.43 MB / 0.8941 GB, free: 83.66 MB / 474.7 MB [/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: HCO3.amountOfBaseMolecules = exp(HCO3.logn); 138: Cl.amountOfBaseMolecules = exp(Cl.logn); 137: others_P.amountOfBaseMolecules = exp(others_P.logn); 135: CO2.amountOfBaseMolecules = exp(CO2.logn); 42: 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); 41: 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; 145: $STATESET1.J[6] = H2O.x - H2O.amountOfFreeMolecule / H.solution.n; 40: H2O.solution.nj * (1.0 - H2O.SelfClustering_K * H2O.x) = H2O.amountOfFreeMolecule; for variables H2O.SelfClustering_dG(16), H2O.amountOfBaseMolecules(14), HCO3.amountOfBaseMolecules(5), Cl.amountOfBaseMolecules(6), others_P.amountOfBaseMolecules(7), CO2.amountOfBaseMolecules(9), H.solution.n(102), H2O.SelfClustering_K(17), H2O.x(103), $cse80(129), H2O.amountOfFreeMolecule(104), H_E.z(40) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01186/1.389, allocations: 4.153 MB / 0.8982 GB, free: 83.14 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03131/1.421, allocations: 22.89 MB / 0.9205 GB, free: 78.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001314/1.422, allocations: 0.5698 MB / 0.9211 GB, free: 77.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009565/1.423, allocations: 42.88 kB / 0.9211 GB, free: 77.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006806/1.43, allocations: 380.6 kB / 0.9215 GB, free: 77.89 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006726/1.43, allocations: 466.3 kB / 0.9219 GB, free: 77.87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004857/1.431, allocations: 279.4 kB / 0.9222 GB, free: 77.87 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001377/1.432, allocations: 1.403 MB / 0.9235 GB, free: 77.72 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009182/1.442, allocations: 4.235 MB / 0.9277 GB, free: 77.72 MB / 474.7 MB 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.003757/1.445, allocations: 2.395 MB / 0.93 GB, free: 77.56 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01769/1.463, allocations: 11.69 MB / 0.9414 GB, free: 76.74 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/1.463, allocations: 3.938 kB / 0.9414 GB, free: 76.74 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01214/1.475, allocations: 7.833 MB / 0.9491 GB, free: 76.17 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004999/1.48, allocations: 0.9629 MB / 0.95 GB, free: 76.15 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4354:9-4354:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]