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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.0009241/0.0009241, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009613/0.0009614, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2052/0.2052, allocations: 15.26 MB / 306.2 MB, free: 15.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003333, allocations: 8 kB / 371.4 MB, free: 3.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2662, allocations: 54.62 MB / 426 MB, free: 40.02 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65: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.0-master/package.mo:3011:6-3011:65: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.006457/0.2727, allocations: 7.924 MB / 433.9 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02374/0.2964, allocations: 24.14 MB / 458.1 MB, free: 20.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00185/0.2983, allocations: 42.97 kB / 458.1 MB, free: 20.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.3003, allocations: 0.5234 MB / 458.6 MB, free: 19.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006727/0.307, allocations: 2.527 MB / 461.1 MB, free: 18.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01104/0.3181, allocations: 3.13 MB / 464.3 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004227/0.3223, allocations: 1.77 MB / 466 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002419/0.3248, allocations: 1.3 MB / 467.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002857/0.3277, allocations: 1.034 MB / 468.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003332/0.331, allocations: 1.386 MB / 469.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00106/0.3321, allocations: 142.4 kB / 469.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01529/0.3474, allocations: 3.459 MB / 473.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002195/0.3497, allocations: 0.4906 MB / 473.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001873/0.3516, allocations: 387.1 kB / 474.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01194/0.3635, allocations: 3.502 MB / 477.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3636, allocations: 0 / 477.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3636, allocations: 0 / 477.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001399/0.3637, allocations: 0 / 477.7 MB, free: 11.93 MB / 350.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.009709/0.3735, allocations: 2.48 MB / 480.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.3735, allocations: 8.969 kB / 480.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003262/0.3768, allocations: 464.7 kB / 480.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002713/0.3795, allocations: 0.9509 MB / 481.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002599/0.3798, allocations: 254.5 kB / 481.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001136/0.3809, allocations: 186.9 kB / 482.1 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007/0.3879, allocations: 2.48 MB / 484.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.806e-05/0.388, allocations: 0 / 484.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004363/0.3885, allocations: 79.14 kB / 484.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.994e-05/0.3885, allocations: 46.22 kB / 484.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00615/0.3947, allocations: 3.181 MB / 487.8 MB, free: 7.547 MB / 350.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.01429/0.409, allocations: 8.217 MB / 496.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008938/0.418, allocations: 5.414 MB / 0.4897 GB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01432/0.4323, allocations: 9.975 MB / 0.4995 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.4324, allocations: 47.88 kB / 0.4995 GB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001241/0.4336, allocations: 234.4 kB / 0.4997 GB, free: 14.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=158): time 6.382e-06/0.4336, allocations: 0 / 0.4997 GB, free: 14.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=187): time 0.02935/0.463, allocations: 7.584 MB / 0.5071 GB, free: 6.984 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.4631, allocations: 77.41 kB / 0.5072 GB, free: 6.895 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/0.4645, allocations: 0.8818 MB / 0.5081 GB, free: 5.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003323/0.4649, allocations: 53.7 kB / 0.5081 GB, free: 5.934 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006028/0.4655, allocations: 0.8027 MB / 0.5089 GB, free: 5.117 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007069/0.4662, allocations: 0.6392 MB / 0.5095 GB, free: 4.469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.4664, allocations: 40 kB / 0.5096 GB, free: 4.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.4666, allocations: 390.2 kB / 0.5099 GB, free: 4.043 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001498/0.4681, allocations: 0.7851 MB / 0.5107 GB, free: 3.254 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.4699, allocations: 1.364 MB / 0.512 GB, free: 1.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001699/0.4717, allocations: 0.9585 MB / 0.513 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.4717, allocations: 4 kB / 0.513 GB, free: 0.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01179/0.4835, allocations: 3.376 MB / 0.5163 GB, free: 13.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.4835, allocations: 16 kB / 0.5163 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.168e-05/0.4836, allocations: 16 kB / 0.5163 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003793/0.4873, allocations: 0.8335 MB / 0.5171 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002037/0.4894, allocations: 0.5188 MB / 0.5176 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005396/0.4948, allocations: 3.577 MB / 0.5211 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001941/0.4968, allocations: 104 kB / 0.5212 GB, free: 7.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003413/0.4971, allocations: 123.9 kB / 0.5213 GB, free: 7.82 MB / 398.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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009157/0.4981, allocations: 397.1 kB / 0.5217 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003214/0.4984, allocations: 146.1 kB / 0.5219 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0121/0.5105, allocations: 3.351 MB / 0.5251 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.45e-05/0.5105, allocations: 16 kB / 0.5251 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/0.5106, allocations: 4 kB / 0.5251 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.527e-05/0.5106, allocations: 11.95 kB / 0.5252 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/0.5258, allocations: 5.211 MB / 0.5302 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.5259, allocations: 0 / 0.5302 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/0.5276, allocations: 363.5 kB / 0.5306 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003793/0.5314, allocations: 0.8062 MB / 0.5314 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00026/0.5316, allocations: 67.95 kB / 0.5314 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005057/0.5367, allocations: 3.481 MB / 0.5348 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5367, allocations: 0 / 0.5348 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01355/0.5503, allocations: 4.227 MB / 0.539 GB, free: 5.359 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006772/0.551, allocations: 211.2 kB / 0.5392 GB, free: 5.133 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004628/0.5515, allocations: 32 kB / 0.5392 GB, free: 5.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.5528, allocations: 71.86 kB / 0.5393 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004633/0.5533, allocations: 201.6 kB / 0.5395 GB, free: 4.836 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/0.5535, allocations: 75.95 kB / 0.5395 GB, free: 4.762 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008584/0.5543, allocations: 0.5703 MB / 0.5401 GB, free: 4.184 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5544, allocations: 3.938 kB / 0.5401 GB, free: 4.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003957/0.5583, allocations: 1.14 MB / 0.5412 GB, free: 3.039 MB / 414.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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003077/0.5614, allocations: 1.272 MB / 0.5425 GB, free: 1.758 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004849/0.5663, allocations: 2.546 MB / 0.5449 GB, free: 15.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.5663, allocations: 0 / 0.5449 GB, free: 15.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00278/0.5691, allocations: 1.495 MB / 0.5464 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/0.5706, allocations: 268.3 kB / 0.5467 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008073/0.5787, allocations: 4.084 MB / 0.5506 GB, free: 9.258 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001359/0.5801, allocations: 1.357 MB / 0.552 GB, free: 7.867 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002705/0.5829, allocations: 424.2 kB / 0.5524 GB, free: 7.449 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008948/0.5838, allocations: 271.1 kB / 0.5526 GB, free: 7.184 MB / 430.1 MB Notification: Performance of SimCode: time 1.814e-06/0.5838, allocations: 0 / 0.5526 GB, free: 7.184 MB / 430.1 MB Notification: Performance of Templates: time 0.2312/0.815, allocations: 42.03 MB / 0.5937 GB, free: 138.8 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: