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.001417/0.001417, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001763/0.001763, allocations: 199.2 kB / 16.14 MB, free: 6.703 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.316/1.316, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1958/0.1958, allocations: 15.31 MB / 305.3 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 67.89 kB / 369.7 MB, free: 4.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1086, allocations: 53.61 MB / 423.3 MB, free: 14.75 MB / 366.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.4049/0.5136, allocations: 28.45 MB / 451.7 MB, free: 38.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02852/0.5421, allocations: 28.61 MB / 480.3 MB, free: 23.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003131/0.5453, allocations: 41.28 kB / 480.4 MB, free: 23.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001901/0.5473, allocations: 0.5149 MB / 480.9 MB, free: 23.26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009159/0.5564, allocations: 2.288 MB / 483.2 MB, free: 21.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01049/0.5669, allocations: 3.075 MB / 486.2 MB, free: 20.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003851/0.5708, allocations: 2.672 MB / 488.9 MB, free: 18.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00181/0.5726, allocations: 1.428 MB / 490.3 MB, free: 18.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002139/0.5748, allocations: 1.393 MB / 491.7 MB, free: 17.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002428/0.5772, allocations: 1.59 MB / 493.3 MB, free: 17.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005275/0.5778, allocations: 169.1 kB / 493.5 MB, free: 17.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01337/0.5912, allocations: 3.101 MB / 496.6 MB, free: 16.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001124/0.5923, allocations: 0.5461 MB / 497.1 MB, free: 16.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001776/0.5941, allocations: 1.139 MB / 498.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01477/0.6089, allocations: 5.577 MB / 0.492 GB, free: 13.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.6089, allocations: 0 / 0.492 GB, free: 13.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6089, allocations: 0 / 0.492 GB, free: 13.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.017e-05/0.609, allocations: 4 kB / 0.492 GB, free: 13.26 MB / 366.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.007099/0.6161, allocations: 2.983 MB / 0.495 GB, free: 11.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.6162, allocations: 8.031 kB / 0.495 GB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002237/0.6184, allocations: 470.7 kB / 0.4954 GB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001806/0.6202, allocations: 1.055 MB / 0.4964 GB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.6204, allocations: 249 kB / 0.4967 GB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004062/0.6208, allocations: 194.2 kB / 0.4969 GB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00409/0.6249, allocations: 2.504 MB / 0.4993 GB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.297e-05/0.625, allocations: 4 kB / 0.4993 GB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002021/0.6252, allocations: 76 kB / 0.4994 GB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.538e-05/0.6252, allocations: 47.98 kB / 0.4994 GB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004693/0.6299, allocations: 3.185 MB / 0.5025 GB, free: 4.648 MB / 366.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.01395/0.6439, allocations: 8.347 MB / 0.5107 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009544/0.6535, allocations: 5.427 MB / 0.516 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002603/0.6561, allocations: 1.274 MB / 0.5172 GB, free: 5.508 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01618/0.6723, allocations: 10.25 MB / 0.5273 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.6724, allocations: 51.88 kB / 0.5273 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00115/0.6736, allocations: 230.3 kB / 0.5275 GB, free: 9.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=158): time 4.048e-06/0.6736, allocations: 0 / 0.5275 GB, free: 9.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=187): time 0.03036/0.704, allocations: 7.57 MB / 0.5349 GB, free: 2.219 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/0.7041, allocations: 73.41 kB / 0.535 GB, free: 2.133 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.7053, allocations: 0.8934 MB / 0.5359 GB, free: 1.223 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004072/0.7057, allocations: 57.7 kB / 0.5359 GB, free: 1.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005541/0.7063, allocations: 0.8026 MB / 0.5367 GB, free: 352 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007365/0.707, allocations: 0.6355 MB / 0.5373 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006126/0.7076, allocations: 411.8 kB / 0.5377 GB, free: 15.29 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.7078, allocations: 305.1 kB / 0.538 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.7092, allocations: 0.789 MB / 0.5388 GB, free: 14.19 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00183/0.711, allocations: 1.375 MB / 0.5401 GB, free: 12.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003481/0.7145, allocations: 2.356 MB / 0.5424 GB, free: 9.945 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.7145, allocations: 4 kB / 0.5424 GB, free: 9.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.0124/0.7269, allocations: 3.383 MB / 0.5457 GB, free: 6.539 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.727, allocations: 12 kB / 0.5457 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-05/0.727, allocations: 19.94 kB / 0.5458 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003876/0.7309, allocations: 0.8223 MB / 0.5466 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002161/0.7331, allocations: 0.5188 MB / 0.5471 GB, free: 5.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005481/0.7386, allocations: 3.516 MB / 0.5505 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.7407, allocations: 111.9 kB / 0.5506 GB, free: 1.262 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002718/0.7409, allocations: 123.9 kB / 0.5507 GB, free: 1.141 MB / 414.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.0008973/0.7419, allocations: 401 kB / 0.5511 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003752/0.7422, allocations: 154.1 kB / 0.5513 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/0.7546, allocations: 3.327 MB / 0.5545 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-05/0.7547, allocations: 23.98 kB / 0.5545 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.7547, allocations: 0 / 0.5545 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.547e-05/0.7548, allocations: 11.95 kB / 0.5545 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01526/0.77, allocations: 5.234 MB / 0.5596 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.689e-05/0.7701, allocations: 0 / 0.5596 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/0.7718, allocations: 367.5 kB / 0.56 GB, free: 7.547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003828/0.7756, allocations: 0.7945 MB / 0.5608 GB, free: 6.742 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003242/0.776, allocations: 63.95 kB / 0.5608 GB, free: 6.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004934/0.7809, allocations: 3.421 MB / 0.5642 GB, free: 2.988 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.7809, allocations: 0 / 0.5642 GB, free: 2.988 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/0.795, allocations: 4.243 MB / 0.5683 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005646/0.7956, allocations: 203.5 kB / 0.5685 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004354/0.796, allocations: 36 kB / 0.5685 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.7971, allocations: 75.8 kB / 0.5686 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005347/0.7977, allocations: 205.6 kB / 0.5688 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001689/0.7979, allocations: 75.95 kB / 0.5689 GB, free: 14.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007618/0.7986, allocations: 0.5742 MB / 0.5694 GB, free: 13.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7986, allocations: 0 / 0.5694 GB, free: 13.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003618/0.8023, allocations: 1.171 MB / 0.5706 GB, free: 12.36 MB / 446.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.003249/0.8055, allocations: 1.319 MB / 0.5719 GB, free: 11.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005234/0.8108, allocations: 2.563 MB / 0.5744 GB, free: 8.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.8108, allocations: 0 / 0.5744 GB, free: 8.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002672/0.8135, allocations: 1.494 MB / 0.5758 GB, free: 6.891 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.8152, allocations: 296 kB / 0.5761 GB, free: 6.602 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007519/0.8227, allocations: 4.163 MB / 0.5802 GB, free: 2.414 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.8239, allocations: 1.329 MB / 0.5815 GB, free: 1.055 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002331/0.8262, allocations: 416.2 kB / 0.5819 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00084/0.8271, allocations: 271.3 kB / 0.5821 GB, free: 392 kB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8271, allocations: 0 / 0.5821 GB, free: 392 kB / 446.1 MB Notification: Performance of Templates: time 0.2573/1.084, allocations: 43.94 MB / 0.6251 GB, free: 129.2 MB / 462.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 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)