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.001178/0.001184, allocations: 105.2 kB / 16.35 MB, free: 5.824 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.00131/0.00131, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08262/0.08262, allocations: 15.31 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 63.14 kB / 371.7 MB, free: 51.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1106, allocations: 53.61 MB / 425.3 MB, free: 13.43 MB / 302.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.03876/0.1494, allocations: 28.12 MB / 453.5 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03049/0.1799, allocations: 28.7 MB / 482.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001257/0.1812, allocations: 23.88 kB / 482.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001556/0.1827, allocations: 0.5739 MB / 482.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006661/0.1894, allocations: 2.576 MB / 485.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008892/0.1983, allocations: 3.511 MB / 488.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004115/0.2025, allocations: 2.712 MB / 491.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002099/0.2046, allocations: 1.641 MB / 493.2 MB, free: 9.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001829/0.2064, allocations: 1.411 MB / 494.6 MB, free: 8.066 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002768/0.2092, allocations: 1.608 MB / 496.2 MB, free: 6.453 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008046/0.2101, allocations: 251.9 kB / 496.5 MB, free: 6.207 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01165/0.2217, allocations: 3.148 MB / 499.6 MB, free: 3.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001133/0.2229, allocations: 0.6077 MB / 0.4885 GB, free: 2.445 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002015/0.2249, allocations: 1.214 MB / 0.4897 GB, free: 1.227 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01367/0.2386, allocations: 5.906 MB / 0.4955 GB, free: 11.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.2387, allocations: 0 / 0.4955 GB, free: 11.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2387, allocations: 0 / 0.4955 GB, free: 11.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.124e-05/0.2388, allocations: 4 kB / 0.4955 GB, free: 11.3 MB / 382.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.007395/0.2462, allocations: 2.985 MB / 0.4984 GB, free: 8.254 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.636e-05/0.2462, allocations: 8.031 kB / 0.4984 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002299/0.2486, allocations: 465.7 kB / 0.4988 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002102/0.2507, allocations: 1.099 MB / 0.4999 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.2509, allocations: 251 kB / 0.5001 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003469/0.2512, allocations: 192.3 kB / 0.5003 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004431/0.2557, allocations: 2.508 MB / 0.5028 GB, free: 3.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.752e-05/0.2558, allocations: 4 kB / 0.5028 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002865/0.256, allocations: 72 kB / 0.5028 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.82e-05/0.2561, allocations: 47.94 kB / 0.5029 GB, free: 3.523 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005114/0.2612, allocations: 3.188 MB / 0.506 GB, free: 340 kB / 382.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.2001/0.4614, allocations: 8.33 MB / 0.5141 GB, free: 72.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008339/0.4697, allocations: 5.413 MB / 0.5194 GB, free: 70.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001971/0.4717, allocations: 1.276 MB / 0.5207 GB, free: 70.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.483, allocations: 10.23 MB / 0.5307 GB, free: 61.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.4831, allocations: 51.72 kB / 0.5307 GB, free: 61.77 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009331/0.484, allocations: 239.5 kB / 0.5309 GB, free: 61.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=158): time 5.921e-06/0.4841, allocations: 3.219 kB / 0.5309 GB, free: 61.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=187): time 0.02676/0.5108, allocations: 7.553 MB / 0.5383 GB, free: 57.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.5109, allocations: 73.41 kB / 0.5384 GB, free: 57.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.512, allocations: 0.9037 MB / 0.5393 GB, free: 56.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000371/0.5124, allocations: 57.7 kB / 0.5393 GB, free: 56.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003662/0.5128, allocations: 0.7942 MB / 0.5401 GB, free: 55.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005553/0.5134, allocations: 0.6405 MB / 0.5407 GB, free: 54.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006682/0.514, allocations: 415.8 kB / 0.5411 GB, free: 54.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.965e-05/0.5141, allocations: 303.8 kB / 0.5414 GB, free: 54.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.5153, allocations: 0.785 MB / 0.5422 GB, free: 53.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001444/0.5168, allocations: 1.375 MB / 0.5435 GB, free: 51.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002746/0.5196, allocations: 2.36 MB / 0.5458 GB, free: 49.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/0.5196, allocations: 4 kB / 0.5458 GB, free: 49.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01089/0.5305, allocations: 3.385 MB / 0.5491 GB, free: 45.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.5305, allocations: 12 kB / 0.5491 GB, free: 45.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/0.5306, allocations: 16 kB / 0.5492 GB, free: 45.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003572/0.5341, allocations: 0.826 MB / 0.55 GB, free: 44.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/0.536, allocations: 0.5188 MB / 0.5505 GB, free: 44.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004543/0.5406, allocations: 3.893 MB / 0.5543 GB, free: 40.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.5424, allocations: 71.98 kB / 0.5543 GB, free: 40.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004413/0.5428, allocations: 118.6 kB / 0.5545 GB, free: 39.98 MB / 382.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.0009495/0.5438, allocations: 409 kB / 0.5548 GB, free: 39.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003998/0.5442, allocations: 142.2 kB / 0.555 GB, free: 39.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01077/0.555, allocations: 3.334 MB / 0.5582 GB, free: 36.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.555, allocations: 16 kB / 0.5583 GB, free: 36.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.555, allocations: 6.656 kB / 0.5583 GB, free: 36.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.857e-05/0.5551, allocations: 8.812 kB / 0.5583 GB, free: 36.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01241/0.5675, allocations: 5.227 MB / 0.5634 GB, free: 30.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.5675, allocations: 2.719 kB / 0.5634 GB, free: 30.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.5688, allocations: 367.5 kB / 0.5637 GB, free: 30.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003328/0.5722, allocations: 0.792 MB / 0.5645 GB, free: 29.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002419/0.5724, allocations: 71.94 kB / 0.5646 GB, free: 29.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004229/0.5767, allocations: 3.792 MB / 0.5683 GB, free: 25.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5767, allocations: 0 / 0.5683 GB, free: 25.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01211/0.5888, allocations: 4.229 MB / 0.5724 GB, free: 21.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004658/0.5893, allocations: 207.2 kB / 0.5726 GB, free: 21.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005183/0.5899, allocations: 38.66 kB / 0.5726 GB, free: 21.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.5911, allocations: 43.92 kB / 0.5727 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004636/0.5916, allocations: 201.6 kB / 0.5729 GB, free: 20.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001824/0.5918, allocations: 79.94 kB / 0.5729 GB, free: 20.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006637/0.5925, allocations: 0.5781 MB / 0.5735 GB, free: 20.28 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5925, allocations: 2.625 kB / 0.5735 GB, free: 20.28 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002902/0.5954, allocations: 1.165 MB / 0.5747 GB, free: 19.25 MB / 382.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.002331/0.5977, allocations: 1.333 MB / 0.576 GB, free: 18.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004082/0.6018, allocations: 2.566 MB / 0.5785 GB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.6018, allocations: 0 / 0.5785 GB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002238/0.6041, allocations: 1.494 MB / 0.5799 GB, free: 14.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.6055, allocations: 314.3 kB / 0.5802 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006019/0.6115, allocations: 3.358 MB / 0.5835 GB, free: 10.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007086/0.6123, allocations: 1.326 MB / 0.5848 GB, free: 9.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001247/0.6135, allocations: 414.8 kB / 0.5852 GB, free: 8.887 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005227/0.614, allocations: 268.1 kB / 0.5854 GB, free: 8.633 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6141, allocations: 0 / 0.5854 GB, free: 8.633 MB / 382.1 MB Notification: Performance of Templates: time 0.05969/0.6737, allocations: 45.62 MB / 0.63 GB, free: 11.72 MB / 430.1 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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)