Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.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.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") [: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.06469/0.06469, allocations: 15.27 MB / 22.54 MB, free: 1.105 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.0008811/0.0008811, allocations: 187.7 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.089/1.089, allocations: 221.4 MB / 253.3 MB, free: 10.32 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.0008466/0.0008466, allocations: 96.42 kB / 308.4 MB, free: 10.62 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.33e-06/5.35e-06, allocations: 1.438 kB / 369 MB, free: 53.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06941/0.06943, allocations: 54.63 MB / 423.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2286/0.298, allocations: 99.42 MB / 0.5108 GB, free: 8.215 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001446/0.2982, allocations: 67.34 kB / 0.5109 GB, free: 8.215 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 solution.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 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 H3PO4.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$H3PO4. 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.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. 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.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. 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 PO4.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$PO4. 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 OH.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$OH. 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.1909/0.4891, allocations: 82.64 MB / 0.5916 GB, free: 10.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001135/0.4893, allocations: 44 kB / 0.5916 GB, free: 10.85 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.006265/0.4955, allocations: 2.546 MB / 0.5941 GB, free: 8.266 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.4956, allocations: 8.031 kB / 0.5941 GB, free: 8.258 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002363/0.4979, allocations: 0.5819 MB / 0.5947 GB, free: 7.672 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003116/0.5011, allocations: 1.487 MB / 0.5962 GB, free: 6.156 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.5012, allocations: 190.5 kB / 0.5963 GB, free: 5.945 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003669/0.5016, allocations: 115.9 kB / 0.5964 GB, free: 5.832 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006328/0.508, allocations: 5.017 MB / 0.6013 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004018/0.512, allocations: 2.746 MB / 0.604 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.492e-05/0.512, allocations: 0 / 0.604 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.5122, allocations: 4 kB / 0.604 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.49e-05/0.5122, allocations: 44 kB / 0.6041 GB, free: 13.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01636/0.5286, allocations: 10.87 MB / 0.6147 GB, free: 2.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004941/0.5336, allocations: 3.906 MB / 0.6185 GB, free: 15.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002127/0.5357, allocations: 1.901 MB / 0.6204 GB, free: 13.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007569/0.5365, allocations: 0.5737 MB / 0.6209 GB, free: 12.58 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.5365, allocations: 56.56 kB / 0.621 GB, free: 12.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 3.697e-06/0.5365, allocations: 0 / 0.621 GB, free: 12.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=304): time 0.05021/0.5868, allocations: 16.32 MB / 0.6369 GB, free: 12.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.5868, allocations: 81.69 kB / 0.637 GB, free: 12.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.5882, allocations: 0.9724 MB / 0.6379 GB, free: 11.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003836/0.5886, allocations: 29.7 kB / 0.638 GB, free: 11.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003047/0.5889, allocations: 0.5149 MB / 0.6385 GB, free: 10.58 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001029/0.59, allocations: 0.9697 MB / 0.6394 GB, free: 9.594 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/0.5902, allocations: 0 / 0.6394 GB, free: 9.594 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.5904, allocations: 411.5 kB / 0.6398 GB, free: 9.188 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002793/0.5932, allocations: 2.165 MB / 0.6419 GB, free: 7.02 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002942/0.5961, allocations: 2.434 MB / 0.6443 GB, free: 4.512 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005809/0.602, allocations: 2.846 MB / 0.6471 GB, free: 1.645 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.602, allocations: 0 / 0.6471 GB, free: 1.645 MB / 458.7 MB Notification: Performance of matching and sorting (n=345) (initialization): time 0.01839/0.6204, allocations: 6.804 MB / 0.6537 GB, free: 10.79 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.6204, allocations: 4.688 kB / 0.6537 GB, free: 10.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.6204, allocations: 8 kB / 0.6537 GB, free: 10.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004704/0.6251, allocations: 1.104 MB / 0.6548 GB, free: 9.66 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002697/0.6279, allocations: 0.5968 MB / 0.6554 GB, free: 9.062 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006084/0.634, allocations: 4.493 MB / 0.6598 GB, free: 4.312 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003558/0.6375, allocations: 227.7 kB / 0.66 GB, free: 4.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003803/0.6379, allocations: 151.8 kB / 0.6601 GB, free: 3.941 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: H.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 302 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 14,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000503/0.6384, allocations: 144.5 kB / 0.6603 GB, free: 3.793 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004256/0.6389, allocations: 193.6 kB / 0.6605 GB, free: 3.602 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.13/0.7688, allocations: 8.055 MB / 0.6683 GB, free: 140.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02059/0.7895, allocations: 7.295 MB / 0.6755 GB, free: 140.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/0.7895, allocations: 5.938 kB / 0.6755 GB, free: 140.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.46e-05/0.7896, allocations: 21.11 kB / 0.6755 GB, free: 140.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03004/0.8196, allocations: 16.72 MB / 0.6918 GB, free: 139.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/0.8197, allocations: 11.69 kB / 0.6918 GB, free: 139.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002247/0.8219, allocations: 0.56 MB / 0.6924 GB, free: 139.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009248/0.8312, allocations: 2.241 MB / 0.6946 GB, free: 139.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002593/0.8315, allocations: 84.36 kB / 0.6946 GB, free: 139.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01355/0.845, allocations: 9.406 MB / 0.7038 GB, free: 136.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005803/0.8509, allocations: 2.547 MB / 0.7063 GB, free: 135.5 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02442/0.8753, allocations: 11.89 MB / 0.7179 GB, free: 133.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006433/0.876, allocations: 314 kB / 0.7182 GB, free: 133.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005617/0.8765, allocations: 26.12 kB / 0.7183 GB, free: 133.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002559/0.8791, allocations: 131.7 kB / 0.7184 GB, free: 133.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003738/0.8795, allocations: 235.6 kB / 0.7186 GB, free: 133.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/0.8798, allocations: 138 kB / 0.7187 GB, free: 133.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0007908/0.8806, allocations: 0.7458 MB / 0.7195 GB, free: 133.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004338/0.8849, allocations: 1.914 MB / 0.7213 GB, free: 133.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 53 * Number of states: 8 ($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 (297): * Single equations (assignments): 293 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 2 {1 14,9 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002245/0.8872, allocations: 1.468 MB / 0.7228 GB, free: 133.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008288/0.8955, allocations: 5.538 MB / 0.7282 GB, free: 131.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/0.8955, allocations: 4.906 kB / 0.7282 GB, free: 131.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00573/0.9012, allocations: 3.525 MB / 0.7316 GB, free: 130.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003367/0.9046, allocations: 0.5241 MB / 0.7321 GB, free: 130.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007924/0.9125, allocations: 5.047 MB / 0.7371 GB, free: 127.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001792/0.9144, allocations: 1.941 MB / 0.739 GB, free: 127 MB / 474.7 MB Notification: Performance of SimCode: time 4.51e-07/0.9144, allocations: 0 / 0.739 GB, free: 127 MB / 474.7 MB Notification: Performance of Templates: time 0.07591/0.9903, allocations: 68.72 MB / 0.8061 GB, free: 80.04 MB / 474.7 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile (rm -f Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Phosphate.sim & ./Chemical_Chemical.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)