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.1157/0.1157, allocations: 15.26 MB / 22.74 MB, free: 0.9727 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.001107/0.001107, allocations: 185 kB / 27.52 MB, free: 6.117 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.425/1.425, allocations: 221.5 MB / 253.7 MB, free: 10.39 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.001034/0.001034, allocations: 84.14 kB / 308.7 MB, free: 10.47 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.349e-05/1.351e-05, allocations: 3.125 kB / 369.6 MB, free: 53.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 54.63 MB / 424.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3877/0.4922, allocations: 99.49 MB / 0.5114 GB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.4925, allocations: 68.41 kB / 0.5115 GB, free: 12.29 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 - DAE generated: time 0.1995/0.692, allocations: 82.42 MB / 0.592 GB, free: 304 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.6921, allocations: 0 / 0.592 GB, free: 304 kB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000136/0.6922, allocations: 40 kB / 0.592 GB, free: 264 kB / 394.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.00636/0.6986, allocations: 2.459 MB / 0.5944 GB, free: 13.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.6986, allocations: 16 kB / 0.5944 GB, free: 13.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002427/0.7011, allocations: 0.5624 MB / 0.595 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003296/0.7044, allocations: 1.478 MB / 0.5964 GB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.7046, allocations: 190.4 kB / 0.5966 GB, free: 11.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004855/0.7051, allocations: 116 kB / 0.5967 GB, free: 11.35 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00659/0.7117, allocations: 4.997 MB / 0.6016 GB, free: 6.348 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004423/0.7161, allocations: 2.739 MB / 0.6043 GB, free: 3.574 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.657e-05/0.7162, allocations: 0 / 0.6043 GB, free: 3.574 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001823/0.7164, allocations: 0 / 0.6043 GB, free: 3.574 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.44e-05/0.7164, allocations: 48 kB / 0.6043 GB, free: 3.527 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01681/0.7332, allocations: 10.75 MB / 0.6148 GB, free: 8.594 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007995/0.7412, allocations: 5.676 MB / 0.6204 GB, free: 2.793 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002672/0.744, allocations: 1.901 MB / 0.6222 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009467/0.7449, allocations: 0.57 MB / 0.6228 GB, free: 344 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.745, allocations: 56.56 kB / 0.6228 GB, free: 280 kB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002012/0.747, allocations: 278 kB / 0.6231 GB, free: 4 kB / 426.7 MB Notification: Performance of pre-optimization done (n=231): time 9.157e-06/0.747, allocations: 0 / 0.6231 GB, free: 4 kB / 426.7 MB Notification: Performance of matching and sorting (n=304): time 0.05359/0.8006, allocations: 16.17 MB / 0.6389 GB, free: 15.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.8007, allocations: 81.69 kB / 0.639 GB, free: 15.75 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001737/0.8025, allocations: 0.9685 MB / 0.6399 GB, free: 14.78 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005855/0.8031, allocations: 25.7 kB / 0.6399 GB, free: 14.75 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006543/0.8038, allocations: 0.7336 MB / 0.6407 GB, free: 14 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00135/0.8051, allocations: 0.9774 MB / 0.6416 GB, free: 13.01 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004189/0.8056, allocations: 3.938 kB / 0.6416 GB, free: 13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002597/0.8058, allocations: 415.6 kB / 0.642 GB, free: 12.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003168/0.809, allocations: 2.137 MB / 0.6441 GB, free: 10.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003356/0.8124, allocations: 2.406 MB / 0.6464 GB, free: 7.973 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006493/0.8189, allocations: 2.773 MB / 0.6492 GB, free: 5.18 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-05/0.8189, allocations: 4 kB / 0.6492 GB, free: 5.176 MB / 458.7 MB Notification: Performance of matching and sorting (n=345) (initialization): time 0.01973/0.8387, allocations: 6.628 MB / 0.6556 GB, free: 14.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.8388, allocations: 9.562 kB / 0.6556 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.036e-05/0.8388, allocations: 4 kB / 0.6556 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004582/0.8434, allocations: 1.085 MB / 0.6567 GB, free: 13.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002795/0.8462, allocations: 0.5851 MB / 0.6573 GB, free: 12.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007133/0.8534, allocations: 4.548 MB / 0.6617 GB, free: 7.988 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/0.8577, allocations: 323.3 kB / 0.662 GB, free: 7.672 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007625/0.8585, allocations: 155.8 kB / 0.6622 GB, free: 7.52 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.0009546/0.8594, allocations: 156.6 kB / 0.6623 GB, free: 7.359 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006813/0.8601, allocations: 201.5 kB / 0.6625 GB, free: 7.16 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2937/1.154, allocations: 7.915 MB / 0.6702 GB, free: 103.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02367/1.178, allocations: 7.226 MB / 0.6773 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.727e-05/1.178, allocations: 5.281 kB / 0.6773 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.439e-05/1.178, allocations: 14.67 kB / 0.6773 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03064/1.208, allocations: 16.72 MB / 0.6936 GB, free: 102.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.017e-05/1.208, allocations: 21.19 kB / 0.6937 GB, free: 102.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00235/1.211, allocations: 0.5445 MB / 0.6942 GB, free: 102.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008695/1.219, allocations: 2.272 MB / 0.6964 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006216/1.22, allocations: 81.03 kB / 0.6965 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/1.233, allocations: 9.583 MB / 0.7058 GB, free: 99.03 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005395/1.239, allocations: 2.629 MB / 0.7084 GB, free: 97.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02349/1.262, allocations: 11.7 MB / 0.7198 GB, free: 95.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006829/1.263, allocations: 320.1 kB / 0.7201 GB, free: 95.66 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005025/1.264, allocations: 26.45 kB / 0.7202 GB, free: 95.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002538/1.266, allocations: 178.7 kB / 0.7203 GB, free: 95.65 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005379/1.267, allocations: 343.3 kB / 0.7207 GB, free: 95.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002166/1.267, allocations: 134.6 kB / 0.7208 GB, free: 95.64 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008019/1.268, allocations: 0.7407 MB / 0.7215 GB, free: 95.53 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.268, allocations: 3.5 kB / 0.7215 GB, free: 95.53 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004629/1.272, allocations: 1.939 MB / 0.7234 GB, free: 95.53 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.002312/1.275, allocations: 1.436 MB / 0.7248 GB, free: 95.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006462/1.281, allocations: 5.401 MB / 0.7301 GB, free: 93.64 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/1.281, allocations: 5.125 kB / 0.7301 GB, free: 93.64 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005469/1.287, allocations: 3.618 MB / 0.7336 GB, free: 92.27 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003029/1.29, allocations: 0.5454 MB / 0.7342 GB, free: 92.17 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006326/1.296, allocations: 4.901 MB / 0.7389 GB, free: 89.79 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009168/1.297, allocations: 1.651 MB / 0.7406 GB, free: 89.04 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001956/1.299, allocations: 477.1 kB / 0.741 GB, free: 89 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008688/1.3, allocations: 266.3 kB / 0.7413 GB, free: 88.98 MB / 474.7 MB Notification: Performance of SimCode: time 9.92e-07/1.3, allocations: 0 / 0.7413 GB, free: 88.98 MB / 474.7 MB Notification: Performance of Templates: time 0.07404/1.374, allocations: 64.36 MB / 0.8041 GB, free: 39.14 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)