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.001518/0.001518, 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.00146/0.00146, allocations: 193.1 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07837/0.07837, allocations: 15.3 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 67.3 kB / 371.7 MB, free: 50.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08173/0.08296, allocations: 53.61 MB / 425.4 MB, free: 13.31 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.03318/0.1162, allocations: 28.11 MB / 453.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03068/0.1469, allocations: 28.7 MB / 482.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.148, allocations: 23.88 kB / 482.2 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001641/0.1497, allocations: 0.5739 MB / 482.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006993/0.1567, allocations: 2.58 MB / 485.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008586/0.1653, allocations: 3.515 MB / 488.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00349/0.1688, allocations: 2.712 MB / 491.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002113/0.1709, allocations: 1.637 MB / 493.2 MB, free: 9.367 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002026/0.173, allocations: 1.411 MB / 494.6 MB, free: 7.953 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002817/0.1758, allocations: 1.616 MB / 496.2 MB, free: 6.332 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009036/0.1767, allocations: 248 kB / 496.5 MB, free: 6.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01044/0.1872, allocations: 3.144 MB / 499.6 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001151/0.1884, allocations: 0.6038 MB / 0.4885 GB, free: 2.336 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002558/0.1909, allocations: 1.217 MB / 0.4897 GB, free: 1.113 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01322/0.2042, allocations: 5.913 MB / 0.4955 GB, free: 11.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2042, allocations: 0 / 0.4955 GB, free: 11.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2042, allocations: 4 kB / 0.4955 GB, free: 11.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.496e-05/0.2043, allocations: 0 / 0.4955 GB, free: 11.18 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.00595/0.2102, allocations: 2.977 MB / 0.4984 GB, free: 8.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.2103, allocations: 8.031 kB / 0.4984 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/0.2123, allocations: 469.7 kB / 0.4988 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001925/0.2142, allocations: 1.092 MB / 0.4999 GB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001933/0.2145, allocations: 255 kB / 0.5001 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003293/0.2148, allocations: 192.3 kB / 0.5003 GB, free: 6.074 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003875/0.2187, allocations: 2.508 MB / 0.5028 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.2187, allocations: 0 / 0.5028 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.2189, allocations: 76 kB / 0.5028 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.252e-05/0.219, allocations: 51.92 kB / 0.5029 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004807/0.2238, allocations: 3.192 MB / 0.506 GB, free: 216 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.166/0.3898, allocations: 8.325 MB / 0.5141 GB, free: 72.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008579/0.3984, allocations: 5.412 MB / 0.5194 GB, free: 70.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002212/0.4007, allocations: 1.278 MB / 0.5207 GB, free: 70.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01233/0.413, allocations: 10.23 MB / 0.5307 GB, free: 61.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.4131, allocations: 47.78 kB / 0.5307 GB, free: 61.72 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009283/0.414, allocations: 239.8 kB / 0.5309 GB, free: 61.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=158): time 5.741e-06/0.414, allocations: 0 / 0.5309 GB, free: 61.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=187): time 0.02652/0.4405, allocations: 7.558 MB / 0.5383 GB, free: 57.13 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.4406, allocations: 69.41 kB / 0.5384 GB, free: 57.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000884/0.4415, allocations: 0.9012 MB / 0.5393 GB, free: 56.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000254/0.4418, allocations: 60.36 kB / 0.5393 GB, free: 56.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/0.442, allocations: 0.7983 MB / 0.5401 GB, free: 55.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003415/0.4424, allocations: 0.6337 MB / 0.5407 GB, free: 54.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004699/0.4429, allocations: 415.8 kB / 0.5411 GB, free: 54.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.715e-05/0.4429, allocations: 301.1 kB / 0.5414 GB, free: 53.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.4441, allocations: 0.7915 MB / 0.5422 GB, free: 53.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.4455, allocations: 1.377 MB / 0.5435 GB, free: 51.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002646/0.4481, allocations: 2.362 MB / 0.5458 GB, free: 48.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.4481, allocations: 4 kB / 0.5458 GB, free: 48.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.011/0.4591, allocations: 3.379 MB / 0.5491 GB, free: 45.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.4592, allocations: 12 kB / 0.5491 GB, free: 45.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.889e-05/0.4592, allocations: 23.44 kB / 0.5492 GB, free: 45.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003616/0.4628, allocations: 0.8279 MB / 0.55 GB, free: 44.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001834/0.4647, allocations: 0.5175 MB / 0.5505 GB, free: 44.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004476/0.4692, allocations: 3.886 MB / 0.5543 GB, free: 40.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/0.4709, allocations: 67.98 kB / 0.5543 GB, free: 40.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001895/0.4711, allocations: 123.9 kB / 0.5545 GB, free: 39.89 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.0006635/0.4718, allocations: 403.7 kB / 0.5548 GB, free: 39.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002903/0.4721, allocations: 150.1 kB / 0.555 GB, free: 39.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01116/0.4832, allocations: 3.324 MB / 0.5582 GB, free: 36.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.009e-05/0.4833, allocations: 23.98 kB / 0.5583 GB, free: 36.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.4833, allocations: 0 / 0.5583 GB, free: 36.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-05/0.4833, allocations: 10.62 kB / 0.5583 GB, free: 36.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/0.4966, allocations: 5.232 MB / 0.5634 GB, free: 30.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.4966, allocations: 5.344 kB / 0.5634 GB, free: 30.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001475/0.4981, allocations: 363.4 kB / 0.5637 GB, free: 30.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003502/0.5016, allocations: 0.7997 MB / 0.5645 GB, free: 29.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.5019, allocations: 67.94 kB / 0.5646 GB, free: 29.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004147/0.506, allocations: 3.79 MB / 0.5683 GB, free: 25.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.5061, allocations: 0 / 0.5683 GB, free: 25.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0119/0.518, allocations: 4.229 MB / 0.5724 GB, free: 21.35 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003242/0.5183, allocations: 199.2 kB / 0.5726 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002316/0.5186, allocations: 41.19 kB / 0.5726 GB, free: 21.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009395/0.5195, allocations: 43.92 kB / 0.5727 GB, free: 21.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000416/0.5199, allocations: 201.6 kB / 0.5729 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/0.5201, allocations: 79.95 kB / 0.5729 GB, free: 20.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005776/0.5207, allocations: 0.5742 MB / 0.5735 GB, free: 20.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5207, allocations: 2.656 kB / 0.5735 GB, free: 20.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002574/0.5233, allocations: 1.18 MB / 0.5747 GB, free: 19.15 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.002061/0.5253, allocations: 1.329 MB / 0.576 GB, free: 18.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003967/0.5293, allocations: 2.564 MB / 0.5785 GB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.5293, allocations: 2.688 kB / 0.5785 GB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002212/0.5315, allocations: 1.49 MB / 0.5799 GB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.533, allocations: 316.9 kB / 0.5802 GB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005335/0.5383, allocations: 3.347 MB / 0.5835 GB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005908/0.5389, allocations: 1.33 MB / 0.5848 GB, free: 9.098 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00141/0.5403, allocations: 412.6 kB / 0.5852 GB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005275/0.5409, allocations: 275.1 kB / 0.5854 GB, free: 8.547 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5409, allocations: 2.656 kB / 0.5854 GB, free: 8.547 MB / 382.1 MB Notification: Performance of Templates: time 0.05928/0.6002, allocations: 45.61 MB / 0.63 GB, free: 11.63 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 gbode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)