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: "" <> buildModelFMU(Chemical.Examples.AcidBase.Dev.RedCellMembrane,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.Dev.RedCellMembrane,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Dev_RedCellMembrane",fmuType="me",version="2.0",platforms={"static"}) [: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.07343/0.07343, allocations: 15.26 MB / 22.54 MB, free: 1.109 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.0009403/0.0009403, allocations: 183.4 kB / 27.31 MB, free: 0 / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.135/1.135, allocations: 221.4 MB / 253.3 MB, free: 10.56 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.0008733/0.0008733, allocations: 92.66 kB / 308.4 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2023/0.2032, allocations: 60.74 MB / 369.1 MB, free: 53.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08209/0.2853, allocations: 54.63 MB / 423.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2583/0.5436, allocations: 102.8 MB / 0.5142 GB, free: 8.191 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/0.5438, allocations: 69.75 kB / 0.5143 GB, free: 8.191 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: 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 1.166/1.71, allocations: 347.9 MB / 0.854 GB, free: 40.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/1.71, allocations: 8.906 kB / 0.8541 GB, free: 40.86 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01122/1.721, allocations: 2.486 MB / 0.8565 GB, free: 40.34 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01475/1.736, allocations: 5.361 MB / 0.8617 GB, free: 39.75 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000392/1.736, allocations: 329.5 kB / 0.862 GB, free: 39.71 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002246/1.739, allocations: 453.8 kB / 0.8625 GB, free: 39.69 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02923/1.768, allocations: 21.31 MB / 0.8833 GB, free: 39.66 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02173/1.79, allocations: 10.99 MB / 0.894 GB, free: 39.16 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001609/1.79, allocations: 9.469 kB / 0.894 GB, free: 39.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007196/1.791, allocations: 0 / 0.894 GB, free: 39.16 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001126/1.791, allocations: 174.4 kB / 0.8942 GB, free: 39.16 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06948/1.86, allocations: 43.8 MB / 0.937 GB, free: 30.36 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009725/1.87, allocations: 8.418 MB / 0.9452 GB, free: 29.14 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008567/1.879, allocations: 8.054 MB / 0.953 GB, free: 25.48 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004208/1.883, allocations: 2.427 MB / 0.9554 GB, free: 24.81 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.507e-05/1.883, allocations: 127.6 kB / 0.9555 GB, free: 24.71 MB / 490.7 MB Notification: Performance of pre-optimization done (n=925): time 1.001e-05/1.883, allocations: 0 / 0.9555 GB, free: 24.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=1339): time 0.5564/2.439, allocations: 132.5 MB / 1.085 GB, free: 36.87 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.492e-05/2.439, allocations: 182.9 kB / 1.085 GB, free: 36.79 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00557/2.445, allocations: 3.821 MB / 1.089 GB, free: 36.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002434/2.447, allocations: 25.7 kB / 1.089 GB, free: 36.47 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008895/2.448, allocations: 1.839 MB / 1.091 GB, free: 35.76 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.008412/2.457, allocations: 4.328 MB / 1.095 GB, free: 32.91 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002701/2.46, allocations: 0 / 1.095 GB, free: 32.91 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006996/2.46, allocations: 0.7457 MB / 1.096 GB, free: 32.58 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02017/2.48, allocations: 15.03 MB / 1.11 GB, free: 32.55 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02153/2.502, allocations: 16.41 MB / 1.126 GB, free: 31.44 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03512/2.537, allocations: 17.88 MB / 1.144 GB, free: 30.53 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/2.537, allocations: 6.5 kB / 1.144 GB, free: 30.53 MB / 490.7 MB Notification: Performance of matching and sorting (n=1539) (initialization): time 0.07894/2.616, allocations: 39.09 MB / 1.182 GB, free: 15.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/2.616, allocations: 4 kB / 1.182 GB, free: 15.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-05/2.616, allocations: 34.77 kB / 1.182 GB, free: 15.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01439/2.631, allocations: 3.705 MB / 1.186 GB, free: 12.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01872/2.65, allocations: 2.915 MB / 1.188 GB, free: 11.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03122/2.681, allocations: 18.71 MB / 1.207 GB, free: 9.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.09326/2.774, allocations: 4.222 MB / 1.211 GB, free: 7.648 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005035/2.779, allocations: 1.039 MB / 1.212 GB, free: 7.215 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.004362/2.784, allocations: 300.2 kB / 1.212 GB, free: 7.059 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003921/2.787, allocations: 0.8024 MB / 1.213 GB, free: 6.246 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.259/3.047, allocations: 37.45 MB / 1.249 GB, free: 46.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.08766/3.134, allocations: 42.35 MB / 1.291 GB, free: 46.31 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.613e-05/3.134, allocations: 6.906 kB / 1.291 GB, free: 46.31 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006621/3.135, allocations: 74.16 kB / 1.291 GB, free: 46.31 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4452/3.58, allocations: 213.6 MB / 1.499 GB, free: 40.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001284/3.58, allocations: 68.97 kB / 1.5 GB, free: 40.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01284/3.593, allocations: 2.452 MB / 1.502 GB, free: 40.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2025/3.796, allocations: 48.66 MB / 1.549 GB, free: 37.41 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003115/3.799, allocations: 0.5228 MB / 1.55 GB, free: 37.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3224/4.121, allocations: 69.02 MB / 1.617 GB, free: 39.47 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.02078/4.142, allocations: 7.715 MB / 1.625 GB, free: 38.82 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1065/4.249, allocations: 77.23 MB / 1.7 GB, free: 20.1 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3386/4.587, allocations: 99.36 MB / 1.797 GB, free: 60.64 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005096/4.592, allocations: 1.606 MB / 1.799 GB, free: 60.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004459/4.597, allocations: 126 kB / 1.799 GB, free: 60.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.04909/4.646, allocations: 1.922 MB / 1.801 GB, free: 60.55 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003698/4.65, allocations: 1.255 MB / 1.802 GB, free: 60.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002104/4.652, allocations: 0.7896 MB / 1.803 GB, free: 60.54 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.003902/4.656, allocations: 2.86 MB / 1.806 GB, free: 60.36 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.05874/4.715, allocations: 24.89 MB / 1.83 GB, free: 60.36 MB / 0.5105 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.01655/4.731, allocations: 6.223 MB / 1.836 GB, free: 60.04 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.07155/4.803, allocations: 35.07 MB / 1.87 GB, free: 59.31 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.92e-05/4.803, allocations: 11 kB / 1.87 GB, free: 59.31 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0753/4.878, allocations: 37.61 MB / 1.907 GB, free: 47.65 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02233/4.901, allocations: 2.343 MB / 1.909 GB, free: 46.3 MB / 0.5105 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4354:9-4354:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/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] Error: Internal error SimCode: The model Chemical.Examples.AcidBase.Dev.RedCellMembrane could not be translated to FMU