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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.0869/0.0869, allocations: 15.26 MB / 30.21 MB, free: 3.297 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009401/0.00094, allocations: 181.1 kB / 35.29 MB, free: 2.379 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.426/1.426, allocations: 223.2 MB / 263.4 MB, free: 6.949 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.0009293/0.0009293, allocations: 88.33 kB / 318.8 MB, free: 3.824 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003223, allocations: 7.156 kB / 383.9 MB, free: 50.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0965/0.09683, allocations: 54.64 MB / 438.6 MB, free: 440 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3815/0.4783, allocations: 100.2 MB / 0.5262 GB, free: 15.53 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4786, allocations: 70.3 kB / 0.5262 GB, free: 15.53 MB / 378.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 - DAE generated: time 0.1905/0.6691, allocations: 83.86 MB / 0.6081 GB, free: 12.42 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6691, allocations: 0 / 0.6081 GB, free: 12.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.013e-05/0.6692, allocations: 43.98 kB / 0.6082 GB, free: 12.38 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.005692/0.6749, allocations: 2.668 MB / 0.6108 GB, free: 9.648 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.675, allocations: 8.031 kB / 0.6108 GB, free: 9.641 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001974/0.6769, allocations: 0.5585 MB / 0.6113 GB, free: 9.078 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002988/0.68, allocations: 1.491 MB / 0.6128 GB, free: 7.531 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001969/0.6802, allocations: 250.5 kB / 0.613 GB, free: 7.262 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003022/0.6805, allocations: 195.9 kB / 0.6132 GB, free: 7.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004834/0.6853, allocations: 3.617 MB / 0.6167 GB, free: 3.418 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.067e-05/0.6854, allocations: 4 kB / 0.6167 GB, free: 3.414 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/0.6855, allocations: 72 kB / 0.6168 GB, free: 3.344 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.311e-05/0.6856, allocations: 48 kB / 0.6169 GB, free: 3.297 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006361/0.692, allocations: 5.167 MB / 0.6219 GB, free: 14.12 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01696/0.7089, allocations: 11.05 MB / 0.6327 GB, free: 2.781 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007867/0.7168, allocations: 5.81 MB / 0.6384 GB, free: 12.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007799/0.7176, allocations: 0.5669 MB / 0.6389 GB, free: 12.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.7177, allocations: 60.5 kB / 0.639 GB, free: 12.21 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001849/0.7195, allocations: 322.2 kB / 0.6393 GB, free: 11.89 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 4.078e-06/0.7195, allocations: 0 / 0.6393 GB, free: 11.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=296): time 0.04649/0.766, allocations: 15.45 MB / 0.6544 GB, free: 12.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/0.7661, allocations: 81.73 kB / 0.6545 GB, free: 12.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001525/0.7677, allocations: 1.101 MB / 0.6555 GB, free: 11.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004179/0.7681, allocations: 69.7 kB / 0.6556 GB, free: 11.02 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000515/0.7686, allocations: 0.7341 MB / 0.6563 GB, free: 10.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008227/0.7695, allocations: 0.9699 MB / 0.6573 GB, free: 9.293 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.7696, allocations: 56 kB / 0.6573 GB, free: 9.238 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.7698, allocations: 403.2 kB / 0.6577 GB, free: 8.84 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002501/0.7723, allocations: 1.832 MB / 0.6595 GB, free: 7.004 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002653/0.775, allocations: 2.109 MB / 0.6615 GB, free: 4.816 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002727/0.7777, allocations: 1.982 MB / 0.6635 GB, free: 2.816 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.7777, allocations: 4 kB / 0.6635 GB, free: 2.812 MB / 458.7 MB Notification: Performance of matching and sorting (n=329) (initialization): time 0.01608/0.7938, allocations: 5.61 MB / 0.669 GB, free: 13.14 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.7939, allocations: 11.98 kB / 0.669 GB, free: 13.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.7939, allocations: 4 kB / 0.669 GB, free: 13.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005601/0.7995, allocations: 1.198 MB / 0.6701 GB, free: 11.92 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002735/0.8023, allocations: 0.5616 MB / 0.6707 GB, free: 11.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007103/0.8094, allocations: 4.713 MB / 0.6753 GB, free: 6.348 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002221/0.8116, allocations: 107.9 kB / 0.6754 GB, free: 6.242 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002556/0.8119, allocations: 119.8 kB / 0.6755 GB, free: 6.125 MB / 474.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (306): * Single equations (assignments): 302 * 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,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.00097/0.8129, allocations: 437.8 kB / 0.6759 GB, free: 5.688 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003641/0.8132, allocations: 205.4 kB / 0.6761 GB, free: 5.484 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2071/1.02, allocations: 5.991 MB / 0.682 GB, free: 92.53 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.723e-05/1.02, allocations: 32.33 kB / 0.682 GB, free: 92.53 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/1.021, allocations: 1.656 kB / 0.682 GB, free: 92.53 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001037/1.021, allocations: 25.47 kB / 0.682 GB, free: 92.53 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02466/1.045, allocations: 12.74 MB / 0.6945 GB, free: 91.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.571e-05/1.045, allocations: 10.38 kB / 0.6945 GB, free: 91.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002454/1.048, allocations: 0.537 MB / 0.695 GB, free: 91.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005527/1.053, allocations: 1.199 MB / 0.6962 GB, free: 91.61 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004536/1.054, allocations: 96.02 kB / 0.6963 GB, free: 91.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005882/1.06, allocations: 4.659 MB / 0.7008 GB, free: 88.45 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.388e-05/1.06, allocations: 19.55 kB / 0.7008 GB, free: 88.45 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01815/1.078, allocations: 9.276 MB / 0.7099 GB, free: 86.79 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005902/1.079, allocations: 280.3 kB / 0.7102 GB, free: 86.68 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003155/1.079, allocations: 74.14 kB / 0.7102 GB, free: 86.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/1.08, allocations: 113.1 kB / 0.7103 GB, free: 86.67 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004533/1.081, allocations: 287.2 kB / 0.7106 GB, free: 86.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001845/1.081, allocations: 121.5 kB / 0.7107 GB, free: 86.66 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008998/1.082, allocations: 0.8542 MB / 0.7116 GB, free: 86.55 MB / 474.7 MB Notification: Performance of sort global known variables: time 2e-07/1.082, allocations: 0 / 0.7116 GB, free: 86.55 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003182/1.085, allocations: 1.386 MB / 0.7129 GB, free: 86.55 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 8 (solution.temperature,H.logn,H3PO4.logn,H2PO4.logn,HPO4.logn,PO4.logn,H2O.logn,OH.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (306): * Single equations (assignments): 302 * 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 3,1 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.00213/1.087, allocations: 1.493 MB / 0.7144 GB, free: 86.45 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005601/1.093, allocations: 4.753 MB / 0.719 GB, free: 86.05 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/1.093, allocations: 1.969 kB / 0.719 GB, free: 86.05 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003273/1.096, allocations: 2.759 MB / 0.7217 GB, free: 85.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/1.098, allocations: 0.5878 MB / 0.7223 GB, free: 85.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007022/1.105, allocations: 6.109 MB / 0.7283 GB, free: 83.22 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007478/1.106, allocations: 1.558 MB / 0.7298 GB, free: 82.48 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001623/1.108, allocations: 436.7 kB / 0.7302 GB, free: 82.43 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005717/1.108, allocations: 217.7 kB / 0.7304 GB, free: 82.42 MB / 474.7 MB Notification: Performance of SimCode: time 6.52e-07/1.108, allocations: 0 / 0.7304 GB, free: 82.42 MB / 474.7 MB Notification: Performance of Templates: time 0.06744/1.176, allocations: 59.89 MB / 0.7889 GB, free: 59.64 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)