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/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009065/0.009066, allocations: 103.1 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001478/0.001479, allocations: 193.8 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08756/0.08756, allocations: 15.31 MB / 305.8 MB, free: 15.37 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.89 kB / 425.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1184, allocations: 53.61 MB / 478.8 MB, free: 5.754 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.Phosphate): time 0.03729/0.1557, allocations: 28.32 MB / 0.4952 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2936/0.4493, allocations: 28.69 MB / 0.5232 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001831/0.4512, allocations: 26.84 kB / 0.5233 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002012/0.4532, allocations: 0.5726 MB / 0.5238 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01024/0.4635, allocations: 2.58 MB / 0.5263 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01405/0.4776, allocations: 3.514 MB / 0.5298 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005133/0.4827, allocations: 2.714 MB / 0.5324 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002613/0.4854, allocations: 1.629 MB / 0.534 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002787/0.4882, allocations: 1.414 MB / 0.5354 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003335/0.4915, allocations: 1.611 MB / 0.537 GB, free: 6.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006566/0.4922, allocations: 248.7 kB / 0.5372 GB, free: 6.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01362/0.5059, allocations: 3.147 MB / 0.5403 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001045/0.5069, allocations: 0.6156 MB / 0.5409 GB, free: 5.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001865/0.5088, allocations: 1.209 MB / 0.5421 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01688/0.5257, allocations: 5.928 MB / 0.5478 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.5258, allocations: 0 / 0.5478 GB, free: 15.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.5258, allocations: 0 / 0.5478 GB, free: 15.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.529e-05/0.5259, allocations: 0 / 0.5478 GB, free: 15.79 MB / 398.1 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.006861/0.5327, allocations: 2.995 MB / 0.5508 GB, free: 12.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.5328, allocations: 8.031 kB / 0.5508 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002089/0.5349, allocations: 468.2 kB / 0.5512 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/0.5369, allocations: 1.093 MB / 0.5523 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/0.5371, allocations: 251 kB / 0.5525 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003409/0.5375, allocations: 198.9 kB / 0.5527 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004042/0.5415, allocations: 2.504 MB / 0.5552 GB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.775e-05/0.5416, allocations: 6.625 kB / 0.5552 GB, free: 8.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001942/0.5418, allocations: 72 kB / 0.5552 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.253e-05/0.5418, allocations: 44 kB / 0.5553 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005063/0.5469, allocations: 3.188 MB / 0.5584 GB, free: 4.855 MB / 398.1 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.01438/0.5613, allocations: 8.333 MB / 0.5665 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009215/0.5705, allocations: 5.41 MB / 0.5718 GB, free: 6.738 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001956/0.5725, allocations: 1.282 MB / 0.5731 GB, free: 5.457 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01444/0.587, allocations: 10.23 MB / 0.5831 GB, free: 10.15 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.444e-05/0.5871, allocations: 54.53 kB / 0.5831 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009712/0.588, allocations: 242.2 kB / 0.5833 GB, free: 9.855 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 4.468e-06/0.588, allocations: 0 / 0.5833 GB, free: 9.855 MB / 430.1 MB Notification: Performance of matching and sorting (n=187): time 0.02857/0.6166, allocations: 7.561 MB / 0.5907 GB, free: 2.262 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.6167, allocations: 73.41 kB / 0.5908 GB, free: 2.18 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.618, allocations: 0.8972 MB / 0.5917 GB, free: 1.266 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003568/0.6183, allocations: 57.7 kB / 0.5917 GB, free: 1.203 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005373/0.6189, allocations: 0.8027 MB / 0.5925 GB, free: 396 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007194/0.6196, allocations: 0.6378 MB / 0.5931 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000613/0.6202, allocations: 415.8 kB / 0.5935 GB, free: 15.33 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.6203, allocations: 305.1 kB / 0.5938 GB, free: 15.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.6217, allocations: 0.7851 MB / 0.5946 GB, free: 14.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001758/0.6235, allocations: 1.375 MB / 0.5959 GB, free: 12.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003709/0.6272, allocations: 2.36 MB / 0.5982 GB, free: 10.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/0.6273, allocations: 7.984 kB / 0.5982 GB, free: 10.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01144/0.6387, allocations: 3.386 MB / 0.6016 GB, free: 6.668 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.6388, allocations: 12 kB / 0.6016 GB, free: 6.656 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.413e-05/0.6388, allocations: 18.66 kB / 0.6016 GB, free: 6.641 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003588/0.6424, allocations: 0.8128 MB / 0.6024 GB, free: 5.852 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/0.6444, allocations: 0.5252 MB / 0.6029 GB, free: 5.328 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005395/0.6498, allocations: 3.889 MB / 0.6067 GB, free: 1.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.6515, allocations: 74.61 kB / 0.6068 GB, free: 1.109 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002209/0.6517, allocations: 123.9 kB / 0.6069 GB, free: 0.9883 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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 (268): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0007467/0.6525, allocations: 399.8 kB / 0.6073 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003198/0.6528, allocations: 146.2 kB / 0.6074 GB, free: 456 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01168/0.6645, allocations: 3.326 MB / 0.6106 GB, free: 13.17 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.356e-05/0.6646, allocations: 16 kB / 0.6107 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.6646, allocations: 6.656 kB / 0.6107 GB, free: 13.15 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.043e-05/0.6646, allocations: 15.89 kB / 0.6107 GB, free: 13.14 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01478/0.6794, allocations: 5.228 MB / 0.6158 GB, free: 7.859 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-05/0.6795, allocations: 2.625 kB / 0.6158 GB, free: 7.859 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001848/0.6813, allocations: 363.5 kB / 0.6161 GB, free: 7.504 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003573/0.6849, allocations: 0.7983 MB / 0.6169 GB, free: 6.719 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000441/0.6854, allocations: 67.95 kB / 0.617 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005238/0.6906, allocations: 3.799 MB / 0.6207 GB, free: 2.594 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.6907, allocations: 0 / 0.6207 GB, free: 2.594 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/0.7041, allocations: 4.229 MB / 0.6248 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004676/0.7046, allocations: 207.2 kB / 0.625 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000262/0.7049, allocations: 38.59 kB / 0.6251 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009427/0.7058, allocations: 43.98 kB / 0.6251 GB, free: 14.06 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004827/0.7063, allocations: 197.7 kB / 0.6253 GB, free: 13.87 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/0.7065, allocations: 75.95 kB / 0.6254 GB, free: 13.79 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007627/0.7073, allocations: 0.5703 MB / 0.6259 GB, free: 13.21 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7073, allocations: 6.656 kB / 0.6259 GB, free: 13.21 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003103/0.7104, allocations: 1.175 MB / 0.6271 GB, free: 12.04 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (190): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002483/0.7129, allocations: 1.33 MB / 0.6284 GB, free: 10.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004802/0.7177, allocations: 2.56 MB / 0.6309 GB, free: 8.156 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.7177, allocations: 2.656 kB / 0.6309 GB, free: 8.156 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002656/0.7204, allocations: 1.498 MB / 0.6323 GB, free: 6.613 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.7219, allocations: 321.3 kB / 0.6326 GB, free: 6.336 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006158/0.7281, allocations: 3.339 MB / 0.6359 GB, free: 3.008 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00089/0.729, allocations: 1.333 MB / 0.6372 GB, free: 1.652 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00149/0.7305, allocations: 417.4 kB / 0.6376 GB, free: 1.254 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006232/0.7311, allocations: 271.2 kB / 0.6379 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of SimCode: time 4.21e-07/0.7311, allocations: 0 / 0.6379 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of Templates: time 0.06768/0.7988, allocations: 46.64 MB / 0.6834 GB, free: 2.621 MB / 0.5137 GB 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)