Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane.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.Dev.RedCellMembrane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane") translateModel(Chemical.Examples.AcidBase.Dev.RedCellMembrane,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Dev.RedCellMembrane") [: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.06867/0.06867, allocations: 15.26 MB / 22.54 MB, free: 2.898 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.001143/0.001143, allocations: 182.4 kB / 27.31 MB, free: 4.297 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.106/1.106, allocations: 221.4 MB / 253.3 MB, free: 10.64 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.0008433/0.0008433, allocations: 96.42 kB / 308.4 MB, free: 10.61 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.531e-06/5.551e-06, allocations: 1.375 kB / 369 MB, free: 54.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06613/0.06614, allocations: 54.63 MB / 423.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2321/0.2982, allocations: 102.8 MB / 0.5141 GB, free: 8.297 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001554/0.2984, allocations: 74.88 kB / 0.5142 GB, free: 8.297 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. 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 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 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 albumin.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$albumin. 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 permeableUncharged.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$permeableUncharged. 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 permeableUncharged_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$permeableUncharged_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 chargedImpermeable_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$chargedImpermeable_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 Lac_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$Lac_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 Lac.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$Lac. 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.Components.Substance$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 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.Components.Substance$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. [/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 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 O2.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$O2. 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 O2_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$O2_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 K.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$K. 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 Na.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$Na. 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 Na_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$Na_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 K_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$K_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 H2PO4_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$H2PO4_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 ADP_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$ADP_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 ATP_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$ATP_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 HPO4_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$HPO4_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 globulins.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$globulins. 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 Ca.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$Ca. 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 Mg.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$Mg. 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 DPG.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$DPG. 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 GSH.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$GSH. 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 Hemoglobin.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$Hemoglobin. 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.9107/1.209, allocations: 338.6 MB / 0.8448 GB, free: 6.559 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005227/1.21, allocations: 156 kB / 0.845 GB, free: 6.406 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1818 * Number of variables: 1818 Notification: Performance of Generate backend data structure: time 0.1872/1.397, allocations: 9.116 MB / 0.8539 GB, free: 41.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/1.397, allocations: 8.219 kB / 0.8539 GB, free: 41.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00924/1.406, allocations: 2.496 MB / 0.8563 GB, free: 40.67 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009955/1.416, allocations: 5.357 MB / 0.8616 GB, free: 40.09 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002283/1.416, allocations: 326.5 kB / 0.8619 GB, free: 40.04 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009592/1.417, allocations: 454.1 kB / 0.8623 GB, free: 40.02 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02167/1.439, allocations: 21.32 MB / 0.8831 GB, free: 39.99 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01268/1.452, allocations: 10.98 MB / 0.8939 GB, free: 39.49 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001257/1.452, allocations: 5.812 kB / 0.8939 GB, free: 39.49 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004973/1.452, allocations: 10.08 kB / 0.8939 GB, free: 39.49 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-05/1.453, allocations: 173.7 kB / 0.894 GB, free: 39.49 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05502/1.508, allocations: 43.81 MB / 0.9368 GB, free: 30.68 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007728/1.515, allocations: 8.412 MB / 0.945 GB, free: 29.53 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006726/1.522, allocations: 8.06 MB / 0.9529 GB, free: 25.87 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003684/1.526, allocations: 2.416 MB / 0.9553 GB, free: 25.21 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.889e-05/1.526, allocations: 135.4 kB / 0.9554 GB, free: 25.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=925): time 1.082e-05/1.526, allocations: 1.125 kB / 0.9554 GB, free: 25.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=1339): time 0.4872/2.013, allocations: 132.4 MB / 1.085 GB, free: 39.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/2.013, allocations: 184.9 kB / 1.085 GB, free: 39.05 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004402/2.018, allocations: 3.825 MB / 1.089 GB, free: 38.76 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001296/2.019, allocations: 25.7 kB / 1.089 GB, free: 38.73 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007557/2.02, allocations: 1.839 MB / 1.09 GB, free: 38.02 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005871/2.026, allocations: 4.319 MB / 1.095 GB, free: 35.17 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001142/2.027, allocations: 0 / 1.095 GB, free: 35.17 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003563/2.027, allocations: 0.7577 MB / 1.095 GB, free: 34.83 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01519/2.042, allocations: 15.03 MB / 1.11 GB, free: 34.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01573/2.058, allocations: 16.4 MB / 1.126 GB, free: 33.69 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02907/2.087, allocations: 17.88 MB / 1.144 GB, free: 32.82 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.648e-05/2.087, allocations: 8.906 kB / 1.144 GB, free: 32.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=1539) (initialization): time 0.06429/2.151, allocations: 39.1 MB / 1.182 GB, free: 18.03 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/2.151, allocations: 4 kB / 1.182 GB, free: 18.03 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.936e-05/2.151, allocations: 28 kB / 1.182 GB, free: 18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01403/2.166, allocations: 3.703 MB / 1.185 GB, free: 15.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01611/2.182, allocations: 2.917 MB / 1.188 GB, free: 13.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02629/2.208, allocations: 18.72 MB / 1.207 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09002/2.298, allocations: 4.223 MB / 1.211 GB, free: 9.816 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004656/2.303, allocations: 1.043 MB / 1.212 GB, free: 9.383 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2.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: Hemoglobin.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: ADP_E.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real ADP_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: 127 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1297): * Single equations (assignments): 1288 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 36,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {3 99,1 3,1 26,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00538/2.308, allocations: 294.3 kB / 1.212 GB, free: 9.227 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003878/2.312, allocations: 0.8024 MB / 1.213 GB, free: 8.414 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2235/2.535, allocations: 37.28 MB / 1.249 GB, free: 49.14 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.06847/2.604, allocations: 42.35 MB / 1.291 GB, free: 48.54 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.991e-05/2.604, allocations: 10.59 kB / 1.291 GB, free: 48.54 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002499/2.604, allocations: 74.02 kB / 1.291 GB, free: 48.54 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3804/2.985, allocations: 213.8 MB / 1.499 GB, free: 45.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-05/2.985, allocations: 70.47 kB / 1.499 GB, free: 45.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0123/2.997, allocations: 2.452 MB / 1.502 GB, free: 45.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2013/3.198, allocations: 48.65 MB / 1.549 GB, free: 42.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003106/3.202, allocations: 0.5227 MB / 1.55 GB, free: 42.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2976/3.499, allocations: 69.03 MB / 1.617 GB, free: 41.08 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 231: H2O_E.SelfClustering_dG = $cse29 - blood_erythrocytes.temperature * $cse28; 262: H2O_E.amountOfBaseMolecules = exp(H2O_E.logn); 261: Cl_E.amountOfBaseMolecules = exp(Cl_E.logn); 260: ATP_E.amountOfBaseMolecules = exp(ATP_E.logn); 255: K_E.amountOfBaseMolecules = exp(K_E.logn); 254: H_E.amountOfBaseMolecules = exp(H_E.logn); 253: permeableUncharged_E.amountOfBaseMolecules = exp(permeableUncharged_E.logn); 252: Mg.amountOfBaseMolecules = exp(Mg.logn); 251: HPO4_E.amountOfBaseMolecules = exp(HPO4_E.logn); 249: ADP_E.amountOfBaseMolecules = exp(ADP_E.logn); 247: DPG.amountOfBaseMolecules = exp(DPG.logn); 245: chargedImpermeable_E.amountOfBaseMolecules = exp(chargedImpermeable_E.logn); 244: HCO3_E.amountOfBaseMolecules = exp(HCO3_E.logn); 242: CO2_E.amountOfBaseMolecules = exp(CO2_E.logn); 241: O2_E.amountOfBaseMolecules = exp(O2_E.logn); 239: Na_E.amountOfBaseMolecules = exp(Na_E.logn); 234: GSH.amountOfBaseMolecules = exp(GSH.logn); 233: Lac_E.amountOfBaseMolecules = exp(Lac_E.logn); 232: H2PO4_E.amountOfBaseMolecules = exp(H2PO4_E.logn); 72: HCO3_E.amountOfBaseMolecules + H2O_E.solution.nj + Cl_E.amountOfBaseMolecules + permeableUncharged_E.amountOfBaseMolecules + chargedImpermeable_E.amountOfBaseMolecules + Lac_E.amountOfBaseMolecules + H_E.amountOfBaseMolecules + CO2_E.amountOfBaseMolecules + O2_E.amountOfBaseMolecules + Na_E.amountOfBaseMolecules + K_E.amountOfBaseMolecules + H2PO4_E.amountOfBaseMolecules + ADP_E.amountOfBaseMolecules + ATP_E.amountOfBaseMolecules + HPO4_E.amountOfBaseMolecules + Mg.amountOfBaseMolecules + DPG.amountOfBaseMolecules + GSH.amountOfBaseMolecules - Hemoglobin.solution.n = 0.0; 230: H2O_E.SelfClustering_K = exp(-0.120272355042726 * H2O_E.SelfClustering_dG / blood_erythrocytes.temperature); 71: H2O_E.x = 0.5 * (2.0 * H2O_E.SelfClustering_K + Hemoglobin.solution.n / H2O_E.amountOfBaseMolecules - sqrt(4.0 * H2O_E.SelfClustering_K * Hemoglobin.solution.n / H2O_E.amountOfBaseMolecules + (Hemoglobin.solution.n / H2O_E.amountOfBaseMolecules) ^ 2.0)) / H2O_E.SelfClustering_K ^ 2.0; 267: $STATESET1.J[5] = H2O_E.x - H2O_E.amountOfFreeMolecule / Hemoglobin.solution.n; 69: H2O_E.solution.nj * (1.0 - H2O_E.SelfClustering_K * H2O_E.x) = H2O_E.amountOfFreeMolecule; for variables H2O_E.SelfClustering_dG(36), $STATESET1.J[4](4), ATP_E.amountOfBaseMolecules(7), K_E.amountOfBaseMolecules(12), H_E.amountOfBaseMolecules(13), permeableUncharged_E.amountOfBaseMolecules(14), Mg.amountOfBaseMolecules(15), HPO4_E.amountOfBaseMolecules(16), ADP_E.amountOfBaseMolecules(18), DPG.amountOfBaseMolecules(20), chargedImpermeable_E.amountOfBaseMolecules(22), HCO3_E.amountOfBaseMolecules(23), CO2_E.amountOfBaseMolecules(25), O2_E.amountOfBaseMolecules(26), Na_E.amountOfBaseMolecules(28), GSH.amountOfBaseMolecules(33), Lac_E.amountOfBaseMolecules(34), H2PO4_E.amountOfBaseMolecules(35), Hemoglobin.solution.n(195), H2O_E.SelfClustering_K(37), H2O_E.x(196), $cse211(155), H2O_E.amountOfFreeMolecule(198), Cl_E.u0(69) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01865/3.518, allocations: 7.719 MB / 1.625 GB, free: 40.43 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.09417/3.612, allocations: 77.23 MB / 1.7 GB, free: 21.83 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004285/3.616, allocations: 1.612 MB / 1.702 GB, free: 21.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003277/3.62, allocations: 128.5 kB / 1.702 GB, free: 21.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.04789/3.668, allocations: 1.923 MB / 1.704 GB, free: 21.26 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00283/3.67, allocations: 1.252 MB / 1.705 GB, free: 21.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001624/3.672, allocations: 0.7852 MB / 1.706 GB, free: 21.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003342/3.675, allocations: 2.86 MB / 1.709 GB, free: 21.02 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.04988/3.725, allocations: 24.08 MB / 1.732 GB, free: 21.02 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 322 * Number of states: 34 ($STATESET1.x[34],$STATESET1.x[33],$STATESET1.x[32],$STATESET1.x[31],$STATESET1.x[30],$STATESET1.x[29],$STATESET1.x[28],$STATESET1.x[27],$STATESET1.x[26],$STATESET1.x[25],$STATESET1.x[24],$STATESET1.x[23],$STATESET1.x[22],$STATESET1.x[21],$STATESET1.x[20],$STATESET1.x[19],$STATESET1.x[18],$STATESET1.x[17],$STATESET1.x[16],$STATESET1.x[15],$STATESET1.x[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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1193): * Single equations (assignments): 1189 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 36,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {42 259} Notification: Performance of Backend phase and start with SimCode phase: time 0.01045/3.736, allocations: 6.221 MB / 1.738 GB, free: 20.29 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0765/3.812, allocations: 36.47 MB / 1.774 GB, free: 13.85 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.591e-05/3.812, allocations: 8 kB / 1.774 GB, free: 13.84 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.2338/4.046, allocations: 37.65 MB / 1.811 GB, free: 55.12 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01884/4.065, allocations: 2.35 MB / 1.813 GB, free: 55.03 MB / 0.5105 GB [/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]