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.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.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.001176/0.001176, allocations: 99.86 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.001438/0.001438, 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.433/1.433, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2034/0.2034, allocations: 15.26 MB / 306.2 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002812/0.0002812, allocations: 11.94 kB / 371.4 MB, free: 4.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2839, allocations: 54.62 MB / 426 MB, free: 40 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.006316/0.2903, allocations: 6.823 MB / 432.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01695/0.3073, allocations: 19.66 MB / 452.5 MB, free: 24.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001333/0.3086, allocations: 31.72 kB / 452.5 MB, free: 24.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001158/0.3098, allocations: 451.8 kB / 452.9 MB, free: 23.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005026/0.3148, allocations: 1.941 MB / 454.9 MB, free: 22.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006683/0.3216, allocations: 2.612 MB / 457.5 MB, free: 21.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002696/0.3243, allocations: 1.395 MB / 458.9 MB, free: 20.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.3256, allocations: 0.9811 MB / 459.9 MB, free: 20.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001205/0.3268, allocations: 0.7813 MB / 460.6 MB, free: 19.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/0.3282, allocations: 1.048 MB / 461.7 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002327/0.3284, allocations: 105.7 kB / 461.8 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008741/0.3372, allocations: 2.77 MB / 464.6 MB, free: 18.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006928/0.3379, allocations: 366.7 kB / 464.9 MB, free: 18.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006669/0.3386, allocations: 324.3 kB / 465.2 MB, free: 18.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006075/0.3447, allocations: 2.762 MB / 468 MB, free: 17.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3447, allocations: 0 / 468 MB, free: 17.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3447, allocations: 0 / 468 MB, free: 17.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.091e-05/0.3448, allocations: 1.031 kB / 468 MB, free: 17.59 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: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.004956/0.3497, allocations: 2.014 MB / 470 MB, free: 16.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.3498, allocations: 9.625 kB / 470 MB, free: 16.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001799/0.3516, allocations: 399.4 kB / 470.4 MB, free: 16.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/0.3529, allocations: 0.7794 MB / 471.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.3531, allocations: 164.1 kB / 471.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002648/0.3533, allocations: 154.1 kB / 471.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003138/0.3565, allocations: 2.006 MB / 473.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/0.3565, allocations: 0.8438 kB / 473.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001557/0.3567, allocations: 64.25 kB / 473.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.262e-05/0.3567, allocations: 35.25 kB / 473.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004098/0.3608, allocations: 2.686 MB / 476.3 MB, free: 13.9 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.01067/0.3715, allocations: 6.371 MB / 482.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005175/0.3767, allocations: 3.308 MB / 486 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008527/0.3853, allocations: 7.023 MB / 493 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.3853, allocations: 43.56 kB / 493 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007854/0.3861, allocations: 170.6 kB / 493.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=117): time 3.306e-06/0.3862, allocations: 0 / 493.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=140): time 0.02037/0.4065, allocations: 5.438 MB / 498.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.4066, allocations: 64.72 kB / 498.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.4078, allocations: 1.022 MB / 499.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.4079, allocations: 45.7 kB / 499.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004301/0.4084, allocations: 0.6777 MB / 0.4887 GB, free: 10.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003855/0.4088, allocations: 489 kB / 0.4892 GB, free: 9.758 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.886e-05/0.4089, allocations: 32 kB / 0.4892 GB, free: 9.727 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.409, allocations: 373.9 kB / 0.4896 GB, free: 9.355 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.4101, allocations: 0.648 MB / 0.4902 GB, free: 8.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.4114, allocations: 1.095 MB / 0.4913 GB, free: 7.422 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.4126, allocations: 0.7794 MB / 0.492 GB, free: 6.641 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.4126, allocations: 4 kB / 0.492 GB, free: 6.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006472/0.4191, allocations: 2.411 MB / 0.4944 GB, free: 4.207 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.4192, allocations: 12 kB / 0.4944 GB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/0.4192, allocations: 12 kB / 0.4944 GB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002958/0.4221, allocations: 0.5059 MB / 0.4949 GB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.4236, allocations: 415.4 kB / 0.4953 GB, free: 3.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005492/0.4291, allocations: 3.548 MB / 0.4988 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.4305, allocations: 87.92 kB / 0.4989 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001734/0.4307, allocations: 91.95 kB / 0.499 GB, free: 15.27 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 (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 {(2,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.0006297/0.4313, allocations: 329.8 kB / 0.4993 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002134/0.4316, allocations: 122.5 kB / 0.4994 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006552/0.4381, allocations: 2.156 MB / 0.5015 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.4381, allocations: 12 kB / 0.5015 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.4382, allocations: 4 kB / 0.5015 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.4382, allocations: 11.97 kB / 0.5015 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008128/0.4463, allocations: 3.527 MB / 0.505 GB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.4463, allocations: 0 / 0.505 GB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001127/0.4475, allocations: 263.7 kB / 0.5052 GB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002792/0.4503, allocations: 490.1 kB / 0.5057 GB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.4504, allocations: 51.92 kB / 0.5057 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00479/0.4552, allocations: 3.457 MB / 0.5091 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4552, allocations: 0 / 0.5091 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00684/0.4621, allocations: 2.747 MB / 0.5118 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004069/0.4625, allocations: 199.5 kB / 0.512 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.4627, allocations: 31.98 kB / 0.512 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008004/0.4635, allocations: 51.97 kB / 0.5121 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/0.4637, allocations: 121.1 kB / 0.5122 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.4639, allocations: 55.97 kB / 0.5122 GB, free: 1.273 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008115/0.4647, allocations: 0.7029 MB / 0.5129 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4647, allocations: 0 / 0.5129 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002591/0.4673, allocations: 0.9134 MB / 0.5138 GB, free: 15.64 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 (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 {(2,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.00177/0.4691, allocations: 1.069 MB / 0.5148 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003313/0.4724, allocations: 1.993 MB / 0.5168 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4724, allocations: 0 / 0.5168 GB, free: 12.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00178/0.4742, allocations: 1.135 MB / 0.5179 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.4752, allocations: 225.8 kB / 0.5181 GB, free: 11.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004668/0.4799, allocations: 3.249 MB / 0.5213 GB, free: 7.848 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007067/0.4807, allocations: 1.226 MB / 0.5225 GB, free: 6.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001363/0.482, allocations: 317.3 kB / 0.5228 GB, free: 6.281 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004448/0.4825, allocations: 203.3 kB / 0.523 GB, free: 6.082 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4825, allocations: 11.88 kB / 0.523 GB, free: 6.07 MB / 398.1 MB Notification: Performance of Templates: time 0.04341/0.5259, allocations: 31.02 MB / 0.5533 GB, free: 7.156 MB / 430.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: