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.1053/0.1053, allocations: 15.26 MB / 31.21 MB, free: 3.223 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.001257/0.001257, allocations: 174.4 kB / 36.3 MB, free: 2.262 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.506/1.506, allocations: 223.2 MB / 264.5 MB, free: 6.207 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.0007885/0.0007886, allocations: 106 kB / 319.9 MB, free: 3.176 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000608/0.0006082, allocations: 10.44 kB / 385.2 MB, free: 50.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1066, allocations: 54.64 MB / 439.8 MB, free: 96 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3707/0.4773, allocations: 100.2 MB / 0.5274 GB, free: 15.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003652/0.4778, allocations: 71.95 kB / 0.5275 GB, free: 15.6 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.2992/0.7769, allocations: 83.42 MB / 0.609 GB, free: 12.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.777, allocations: 4 kB / 0.609 GB, free: 12.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002293/0.7772, allocations: 40 kB / 0.609 GB, free: 12.48 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.009644/0.7869, allocations: 2.649 MB / 0.6116 GB, free: 9.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.7869, allocations: 8.875 kB / 0.6116 GB, free: 9.762 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003764/0.7907, allocations: 0.5556 MB / 0.6121 GB, free: 9.203 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005606/0.7963, allocations: 1.546 MB / 0.6136 GB, free: 7.602 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003663/0.7967, allocations: 251 kB / 0.6139 GB, free: 7.332 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009647/0.7977, allocations: 192.3 kB / 0.6141 GB, free: 7.145 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01068/0.8084, allocations: 3.633 MB / 0.6176 GB, free: 3.477 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001058/0.8086, allocations: 3.938 kB / 0.6176 GB, free: 3.473 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006773/0.8093, allocations: 76 kB / 0.6177 GB, free: 3.398 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.342e-05/0.8093, allocations: 44 kB / 0.6177 GB, free: 3.355 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01219/0.8215, allocations: 5.167 MB / 0.6228 GB, free: 14.18 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.02452/0.8461, allocations: 11.06 MB / 0.6336 GB, free: 2.828 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008928/0.8551, allocations: 5.801 MB / 0.6392 GB, free: 12.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003332/0.8585, allocations: 1.995 MB / 0.6412 GB, free: 10.91 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009581/0.8594, allocations: 0.5681 MB / 0.6417 GB, free: 10.34 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.966e-05/0.8595, allocations: 56.56 kB / 0.6418 GB, free: 10.28 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002128/0.8617, allocations: 322.2 kB / 0.6421 GB, free: 9.961 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 1.14e-05/0.8617, allocations: 3.938 kB / 0.6421 GB, free: 9.957 MB / 442.7 MB Notification: Performance of matching and sorting (n=296): time 0.04753/0.9092, allocations: 15.45 MB / 0.6572 GB, free: 10.35 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.9093, allocations: 85.67 kB / 0.6573 GB, free: 10.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00194/0.9113, allocations: 1.244 MB / 0.6585 GB, free: 8.992 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005314/0.9118, allocations: 73.7 kB / 0.6586 GB, free: 8.914 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005736/0.9124, allocations: 0.7264 MB / 0.6593 GB, free: 8.18 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001194/0.9136, allocations: 0.9816 MB / 0.6602 GB, free: 7.184 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000303/0.9139, allocations: 52 kB / 0.6603 GB, free: 7.133 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002348/0.9142, allocations: 403.2 kB / 0.6607 GB, free: 6.734 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002904/0.9171, allocations: 1.828 MB / 0.6625 GB, free: 4.902 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003016/0.9201, allocations: 2.113 MB / 0.6645 GB, free: 2.711 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006053/0.9262, allocations: 4.113 MB / 0.6685 GB, free: 14.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.954e-06/0.9262, allocations: 0 / 0.6685 GB, free: 14.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=329) (initialization): time 0.01551/0.9417, allocations: 5.614 MB / 0.674 GB, free: 8.824 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.9418, allocations: 8 kB / 0.674 GB, free: 8.816 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/0.9418, allocations: 8 kB / 0.674 GB, free: 8.809 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005034/0.9468, allocations: 1.195 MB / 0.6752 GB, free: 7.602 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002785/0.9497, allocations: 0.5578 MB / 0.6757 GB, free: 7.043 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006922/0.9566, allocations: 4.683 MB / 0.6803 GB, free: 2.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002272/0.9589, allocations: 112.2 kB / 0.6804 GB, free: 1.961 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005372/0.9595, allocations: 115.9 kB / 0.6805 GB, free: 1.848 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.001427/0.9609, allocations: 445.9 kB / 0.681 GB, free: 1.402 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007064/0.9616, allocations: 201.5 kB / 0.6812 GB, free: 1.203 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2364/1.198, allocations: 5.985 MB / 0.687 GB, free: 94.17 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.756e-05/1.198, allocations: 30.94 kB / 0.687 GB, free: 94.17 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/1.198, allocations: 1.094 kB / 0.687 GB, free: 94.17 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.947e-05/1.198, allocations: 19.3 kB / 0.687 GB, free: 94.17 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02565/1.224, allocations: 12.74 MB / 0.6995 GB, free: 93.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.777e-05/1.224, allocations: 12.19 kB / 0.6995 GB, free: 93.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002621/1.227, allocations: 0.5404 MB / 0.7 GB, free: 93.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00486/1.232, allocations: 1.188 MB / 0.7012 GB, free: 93.23 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006747/1.232, allocations: 100.8 kB / 0.7013 GB, free: 93.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005807/1.238, allocations: 4.628 MB / 0.7058 GB, free: 90.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.299e-05/1.238, allocations: 16.97 kB / 0.7058 GB, free: 90.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01941/1.258, allocations: 8.698 MB / 0.7143 GB, free: 89.26 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008033/1.258, allocations: 287.7 kB / 0.7146 GB, free: 89.17 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008556/1.259, allocations: 70.55 kB / 0.7147 GB, free: 89.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002098/1.261, allocations: 105.6 kB / 0.7148 GB, free: 89.17 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007686/1.262, allocations: 289.7 kB / 0.715 GB, free: 89.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000417/1.263, allocations: 118.4 kB / 0.7151 GB, free: 89.16 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001381/1.264, allocations: 0.8556 MB / 0.716 GB, free: 89.05 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.264, allocations: 2.5 kB / 0.716 GB, free: 89.05 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004663/1.269, allocations: 1.388 MB / 0.7173 GB, free: 89.05 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.00352/1.272, allocations: 1.482 MB / 0.7188 GB, free: 88.92 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007552/1.28, allocations: 4.757 MB / 0.7234 GB, free: 88.52 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.48e-05/1.28, allocations: 6.281 kB / 0.7234 GB, free: 88.52 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004672/1.284, allocations: 2.761 MB / 0.7261 GB, free: 88.17 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005593/1.29, allocations: 0.6296 MB / 0.7267 GB, free: 88.16 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/1.3, allocations: 6.122 MB / 0.7327 GB, free: 85.04 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/1.302, allocations: 1.513 MB / 0.7342 GB, free: 84.29 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002427/1.304, allocations: 437.1 kB / 0.7346 GB, free: 84.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008366/1.305, allocations: 216.8 kB / 0.7348 GB, free: 84.21 MB / 474.7 MB Notification: Performance of SimCode: time 1.082e-06/1.305, allocations: 0 / 0.7348 GB, free: 84.21 MB / 474.7 MB Notification: Performance of Templates: time 0.07904/1.384, allocations: 61.11 MB / 0.7945 GB, free: 56.4 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)