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.007445/0.007445, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001903/0.001903, allocations: 196 kB / 16.79 MB, free: 6.254 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.424/1.424, allocations: 222.9 MB / 240.5 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2057/0.2057, allocations: 15.32 MB / 305.9 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002272/0.002272, allocations: 55.91 kB / 370.3 MB, free: 4.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1396, allocations: 53.61 MB / 423.9 MB, free: 14.7 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.3472/0.4868, allocations: 29.11 MB / 453 MB, free: 39.65 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02564/0.5125, allocations: 28.61 MB / 481.6 MB, free: 24.06 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001812/0.5143, allocations: 42.53 kB / 481.7 MB, free: 24.04 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001698/0.5161, allocations: 0.5072 MB / 482.2 MB, free: 23.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007401/0.5235, allocations: 2.286 MB / 484.5 MB, free: 22.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009233/0.5328, allocations: 3.082 MB / 487.6 MB, free: 20.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003686/0.5365, allocations: 2.665 MB / 490.2 MB, free: 19.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002039/0.5385, allocations: 1.429 MB / 491.7 MB, free: 18.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0025/0.5411, allocations: 1.39 MB / 493 MB, free: 18.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00335/0.5444, allocations: 1.585 MB / 494.6 MB, free: 17.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001141/0.5456, allocations: 169.1 kB / 494.8 MB, free: 17.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.5568, allocations: 3.101 MB / 497.9 MB, free: 17.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001504/0.5584, allocations: 0.542 MB / 498.4 MB, free: 16.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002246/0.5606, allocations: 1.139 MB / 499.6 MB, free: 16.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006997/0.5677, allocations: 4.389 MB / 0.4922 GB, free: 14.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.5677, allocations: 0 / 0.4922 GB, free: 14.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5677, allocations: 4.547 kB / 0.4922 GB, free: 14.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.356e-05/0.5678, allocations: 0 / 0.4922 GB, free: 14.28 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.007702/0.5755, allocations: 2.99 MB / 0.4951 GB, free: 12.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.5756, allocations: 12.73 kB / 0.4951 GB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002493/0.5781, allocations: 466 kB / 0.4955 GB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002139/0.5802, allocations: 1.056 MB / 0.4966 GB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.5804, allocations: 252.8 kB / 0.4968 GB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004857/0.5809, allocations: 190 kB / 0.497 GB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004491/0.5854, allocations: 2.51 MB / 0.4994 GB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.926e-05/0.5855, allocations: 0.8906 kB / 0.4994 GB, free: 8.352 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002102/0.5857, allocations: 76 kB / 0.4995 GB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.368e-05/0.5857, allocations: 44 kB / 0.4996 GB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004518/0.5903, allocations: 3.192 MB / 0.5027 GB, free: 5.508 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.0136/0.6039, allocations: 8.357 MB / 0.5108 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009135/0.613, allocations: 5.411 MB / 0.5161 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002302/0.6154, allocations: 1.278 MB / 0.5174 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01534/0.6307, allocations: 10.26 MB / 0.5274 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.987e-05/0.6308, allocations: 51.88 kB / 0.5274 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001204/0.632, allocations: 230.3 kB / 0.5276 GB, free: 10.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=158): time 5.971e-06/0.6321, allocations: 0 / 0.5276 GB, free: 10.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=187): time 0.03151/0.6636, allocations: 7.558 MB / 0.535 GB, free: 2.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/0.6637, allocations: 69.41 kB / 0.5351 GB, free: 2.754 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.6649, allocations: 0.9012 MB / 0.536 GB, free: 1.836 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004092/0.6653, allocations: 53.7 kB / 0.536 GB, free: 1.777 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005395/0.6659, allocations: 0.8065 MB / 0.5368 GB, free: 0.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006502/0.6665, allocations: 0.6353 MB / 0.5374 GB, free: 320 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006309/0.6672, allocations: 415.8 kB / 0.5378 GB, free: 15.9 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.6673, allocations: 305.1 kB / 0.5381 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.6687, allocations: 0.7851 MB / 0.5389 GB, free: 14.81 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001899/0.6706, allocations: 1.375 MB / 0.5402 GB, free: 13.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00371/0.6743, allocations: 2.364 MB / 0.5425 GB, free: 10.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.6744, allocations: 4 kB / 0.5425 GB, free: 10.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01271/0.6871, allocations: 3.379 MB / 0.5458 GB, free: 7.152 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/0.6872, allocations: 12.94 kB / 0.5459 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/0.6872, allocations: 24 kB / 0.5459 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004102/0.6913, allocations: 0.8179 MB / 0.5467 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00233/0.6937, allocations: 0.5148 MB / 0.5472 GB, free: 5.773 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005793/0.6995, allocations: 3.524 MB / 0.5506 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002174/0.7017, allocations: 107.9 kB / 0.5507 GB, free: 1.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000374/0.7021, allocations: 123.9 kB / 0.5508 GB, free: 1.754 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.0009869/0.7031, allocations: 407.2 kB / 0.5512 GB, free: 1.348 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003943/0.7035, allocations: 146.1 kB / 0.5514 GB, free: 1.203 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01302/0.7165, allocations: 3.327 MB / 0.5546 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-05/0.7166, allocations: 16 kB / 0.5546 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/0.7166, allocations: 4 kB / 0.5546 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.624e-05/0.7167, allocations: 11.91 kB / 0.5547 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01672/0.7334, allocations: 5.226 MB / 0.5598 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.387e-05/0.7335, allocations: 8 kB / 0.5598 GB, free: 8.523 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00181/0.7353, allocations: 367.5 kB / 0.5601 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003905/0.7392, allocations: 0.7985 MB / 0.5609 GB, free: 7.355 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003553/0.7396, allocations: 67.95 kB / 0.561 GB, free: 7.289 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005099/0.7447, allocations: 3.421 MB / 0.5643 GB, free: 3.598 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.7448, allocations: 3.938 kB / 0.5643 GB, free: 3.594 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01377/0.7585, allocations: 4.227 MB / 0.5684 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005569/0.7591, allocations: 203.2 kB / 0.5686 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004347/0.7596, allocations: 39.98 kB / 0.5687 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.7608, allocations: 75.81 kB / 0.5687 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005374/0.7613, allocations: 193.7 kB / 0.5689 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001795/0.7615, allocations: 79.94 kB / 0.569 GB, free: 14.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007867/0.7623, allocations: 0.5742 MB / 0.5696 GB, free: 14.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7623, allocations: 0 / 0.5696 GB, free: 14.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003864/0.7662, allocations: 1.175 MB / 0.5707 GB, free: 12.98 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.003041/0.7693, allocations: 1.327 MB / 0.572 GB, free: 11.65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005337/0.7746, allocations: 2.558 MB / 0.5745 GB, free: 9.047 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.7747, allocations: 4 kB / 0.5745 GB, free: 9.043 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002862/0.7775, allocations: 1.495 MB / 0.576 GB, free: 7.504 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001797/0.7794, allocations: 294.9 kB / 0.5762 GB, free: 7.219 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007646/0.787, allocations: 4.217 MB / 0.5804 GB, free: 2.969 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009023/0.788, allocations: 1.318 MB / 0.5816 GB, free: 1.621 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.7891, allocations: 347.2 kB / 0.582 GB, free: 1.285 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.7891, allocations: 4 kB / 0.582 GB, free: 1.281 MB / 446.1 MB Notification: Performance of Templates: time 0.2368/1.026, allocations: 55.51 MB / 0.6362 GB, free: 122.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)