Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.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.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, 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.001262/0.001262, allocations: 197.8 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.34/1.34, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2135/0.2135, allocations: 15.31 MB / 305.3 MB, free: 15.33 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 63.89 kB / 369.6 MB, free: 4.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1037, allocations: 53.6 MB / 423.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.009057/0.1128, allocations: 8.544 MB / 431.8 MB, free: 6.223 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2243/0.3372, allocations: 23.26 MB / 455.1 MB, free: 37.49 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001401/0.3386, allocations: 33.72 kB / 455.1 MB, free: 37.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001959/0.3406, allocations: 437.8 kB / 455.5 MB, free: 37.26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005265/0.3459, allocations: 1.729 MB / 457.2 MB, free: 36.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006783/0.3527, allocations: 2.553 MB / 459.8 MB, free: 35.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00232/0.3551, allocations: 2.062 MB / 461.9 MB, free: 34.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0012/0.3563, allocations: 1.073 MB / 462.9 MB, free: 34.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001165/0.3575, allocations: 1.048 MB / 464 MB, free: 33.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001442/0.3589, allocations: 1.19 MB / 465.2 MB, free: 33.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003974/0.3594, allocations: 130 kB / 465.3 MB, free: 33.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007136/0.3665, allocations: 2.464 MB / 467.8 MB, free: 32.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008314/0.3674, allocations: 422.3 kB / 468.2 MB, free: 32.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001424/0.3688, allocations: 0.8915 MB / 469.1 MB, free: 32.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008928/0.3778, allocations: 4.396 MB / 473.5 MB, free: 30.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3778, allocations: 0 / 473.5 MB, free: 30.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3778, allocations: 5.312 kB / 473.5 MB, free: 30.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.973e-05/0.3779, allocations: 0 / 473.5 MB, free: 30.38 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: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.006261/0.3841, allocations: 2.408 MB / 475.9 MB, free: 28.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.3842, allocations: 9.281 kB / 475.9 MB, free: 28.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002148/0.3864, allocations: 390.6 kB / 476.3 MB, free: 28.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001687/0.3881, allocations: 0.8585 MB / 477.1 MB, free: 28.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.3883, allocations: 169.9 kB / 477.3 MB, free: 28.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004444/0.3887, allocations: 149.6 kB / 477.4 MB, free: 28.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004591/0.3933, allocations: 2.033 MB / 479.5 MB, free: 27.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.349e-05/0.3934, allocations: 0 / 479.5 MB, free: 27.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001716/0.3936, allocations: 57.16 kB / 479.5 MB, free: 27.31 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.675e-05/0.3936, allocations: 35.11 kB / 479.6 MB, free: 27.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004972/0.3986, allocations: 2.704 MB / 482.3 MB, free: 26.48 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.01492/0.4135, allocations: 6.501 MB / 488.8 MB, free: 22.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005375/0.4189, allocations: 3.304 MB / 492.1 MB, free: 21.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001511/0.4205, allocations: 0.884 MB / 493 MB, free: 21.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009859/0.4304, allocations: 7.233 MB / 0.4885 GB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.4304, allocations: 44.81 kB / 0.4885 GB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009577/0.4314, allocations: 165.2 kB / 0.4887 GB, free: 15.42 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 5.68e-06/0.4314, allocations: 0 / 0.4887 GB, free: 15.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.02235/0.4538, allocations: 5.411 MB / 0.4939 GB, free: 12.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.4538, allocations: 68.72 kB / 0.494 GB, free: 12.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.4549, allocations: 1.024 MB / 0.495 GB, free: 11.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002423/0.4552, allocations: 53.7 kB / 0.4951 GB, free: 11.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.4555, allocations: 0.6778 MB / 0.4957 GB, free: 10.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004012/0.4559, allocations: 488.9 kB / 0.4962 GB, free: 10.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005665/0.4565, allocations: 331.3 kB / 0.4965 GB, free: 9.949 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.085e-05/0.4565, allocations: 301.1 kB / 0.4968 GB, free: 9.652 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.4575, allocations: 0.652 MB / 0.4974 GB, free: 9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.4587, allocations: 1.107 MB / 0.4985 GB, free: 7.703 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002238/0.461, allocations: 1.804 MB / 0.5003 GB, free: 5.707 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/0.461, allocations: 7.938 kB / 0.5003 GB, free: 5.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006536/0.4675, allocations: 2.411 MB / 0.5026 GB, free: 3.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.56e-05/0.4676, allocations: 19.92 kB / 0.5027 GB, free: 3.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.8e-05/0.4677, allocations: 12 kB / 0.5027 GB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002895/0.4706, allocations: 486 kB / 0.5031 GB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001575/0.4722, allocations: 423.4 kB / 0.5035 GB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005097/0.4773, allocations: 3.489 MB / 0.5069 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001869/0.4792, allocations: 83.97 kB / 0.507 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003919/0.4796, allocations: 94.33 kB / 0.5071 GB, free: 14.42 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (212): * Single equations (assignments): 209 * 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 {(2,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.001098/0.4807, allocations: 341.2 kB / 0.5074 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004844/0.4812, allocations: 126.4 kB / 0.5076 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007678/0.4889, allocations: 2.135 MB / 0.5096 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.091e-05/0.489, allocations: 12 kB / 0.5097 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.489, allocations: 0 / 0.5097 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.819e-05/0.489, allocations: 11.97 kB / 0.5097 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009506/0.4985, allocations: 3.538 MB / 0.5131 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.908e-06/0.4986, allocations: 4 kB / 0.5131 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/0.4999, allocations: 279.6 kB / 0.5134 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002914/0.5028, allocations: 462.2 kB / 0.5138 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002599/0.5031, allocations: 51.95 kB / 0.5139 GB, free: 7.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004982/0.5081, allocations: 3.402 MB / 0.5172 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5081, allocations: 0 / 0.5172 GB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007779/0.5159, allocations: 2.751 MB / 0.5199 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004769/0.5164, allocations: 183.8 kB / 0.5201 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004006/0.5168, allocations: 31.94 kB / 0.5201 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.5179, allocations: 51.97 kB / 0.5201 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000343/0.5183, allocations: 125.1 kB / 0.5203 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.5185, allocations: 55.97 kB / 0.5203 GB, free: 488 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00093/0.5194, allocations: 0.7069 MB / 0.521 GB, free: 15.76 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5194, allocations: 0 / 0.521 GB, free: 15.76 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003096/0.5225, allocations: 0.9368 MB / 0.5219 GB, free: 14.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (solution.temperature,HCO3.logn,H.logn,CO2_liquid.logn,liquidWater.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 (144): * Single equations (assignments): 141 * 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 {(2,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.002498/0.525, allocations: 1.093 MB / 0.523 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004023/0.5291, allocations: 2.001 MB / 0.5249 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.5291, allocations: 0 / 0.5249 GB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002158/0.5313, allocations: 1.143 MB / 0.5261 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.5329, allocations: 244 kB / 0.5263 GB, free: 10.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005539/0.5384, allocations: 3.296 MB / 0.5295 GB, free: 6.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008601/0.5393, allocations: 1.187 MB / 0.5307 GB, free: 5.703 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001597/0.5409, allocations: 324.5 kB / 0.531 GB, free: 5.391 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005366/0.5415, allocations: 206.7 kB / 0.5312 GB, free: 5.191 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5415, allocations: 4 kB / 0.5312 GB, free: 5.188 MB / 398.1 MB Notification: Performance of Templates: time 0.0506/0.5921, allocations: 32.54 MB / 0.563 GB, free: 4.762 MB / 430.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.makefile (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.sim & ./Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)