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.0008112/0.0008112, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009027/0.0009028, allocations: 172.7 kB / 15.95 MB, free: 208 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.286/1.286, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1821/0.1821, allocations: 15.28 MB / 306.4 MB, free: 15.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000307/0.000307, allocations: 8.219 kB / 371.5 MB, free: 3.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2532, allocations: 54.62 MB / 426.1 MB, free: 40.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.006182/0.2594, allocations: 7.579 MB / 433.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01647/0.2759, allocations: 21.43 MB / 455.1 MB, free: 22.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.2772, allocations: 31.62 kB / 455.1 MB, free: 22.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.2782, allocations: 433.6 kB / 455.6 MB, free: 22.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004103/0.2823, allocations: 1.758 MB / 457.3 MB, free: 21.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00548/0.2878, allocations: 2.374 MB / 459.7 MB, free: 19.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001931/0.2898, allocations: 1.95 MB / 461.7 MB, free: 18.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009373/0.2907, allocations: 0.9928 MB / 462.6 MB, free: 18.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008364/0.2916, allocations: 0.8617 MB / 463.5 MB, free: 18.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.2926, allocations: 1.092 MB / 464.6 MB, free: 17.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001797/0.2928, allocations: 106.5 kB / 464.7 MB, free: 17.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006049/0.2989, allocations: 2.362 MB / 467.1 MB, free: 17.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003889/0.2993, allocations: 375.1 kB / 467.4 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000403/0.2997, allocations: 316.5 kB / 467.7 MB, free: 16.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00467/0.3043, allocations: 3.521 MB / 471.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3044, allocations: 4 kB / 471.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3044, allocations: 0 / 471.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.465e-05/0.3044, allocations: 1.125 kB / 471.3 MB, free: 15.46 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.004346/0.3088, allocations: 2.034 MB / 473.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.3088, allocations: 10.16 kB / 473.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00162/0.3104, allocations: 399.2 kB / 473.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.3118, allocations: 0.8172 MB / 474.5 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.312, allocations: 166.5 kB / 474.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002805/0.3123, allocations: 149.1 kB / 474.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003375/0.3157, allocations: 2.018 MB / 476.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.853e-05/0.3157, allocations: 4 kB / 476.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/0.3159, allocations: 60.88 kB / 476.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.3159, allocations: 34.28 kB / 476.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003865/0.3198, allocations: 2.686 MB / 479.6 MB, free: 11.75 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.009808/0.3296, allocations: 6.427 MB / 486.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004532/0.3341, allocations: 3.301 MB / 489.4 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/0.3352, allocations: 0.8825 MB / 490.2 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00769/0.3429, allocations: 7.08 MB / 497.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/0.343, allocations: 51.56 kB / 497.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007336/0.3437, allocations: 150.8 kB / 497.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=117): time 3.246e-06/0.3438, allocations: 0 / 497.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01957/0.3633, allocations: 5.432 MB / 0.4912 GB, free: 7.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.3634, allocations: 64.72 kB / 0.4912 GB, free: 7.785 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001264/0.3647, allocations: 1.03 MB / 0.4922 GB, free: 6.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.3648, allocations: 49.7 kB / 0.4923 GB, free: 6.676 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/0.3652, allocations: 0.6777 MB / 0.4929 GB, free: 5.984 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003853/0.3656, allocations: 489 kB / 0.4934 GB, free: 5.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.039e-05/0.3657, allocations: 39.94 kB / 0.4934 GB, free: 5.461 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3659, allocations: 369.9 kB / 0.4938 GB, free: 5.094 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/0.3669, allocations: 0.6442 MB / 0.4944 GB, free: 4.449 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/0.3682, allocations: 1.099 MB / 0.4955 GB, free: 3.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001256/0.3695, allocations: 0.7833 MB / 0.4963 GB, free: 2.375 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.732e-06/0.3695, allocations: 4 kB / 0.4963 GB, free: 2.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006124/0.3756, allocations: 2.411 MB / 0.4986 GB, free: 15.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.381e-05/0.3757, allocations: 12 kB / 0.4986 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.3757, allocations: 12 kB / 0.4986 GB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002627/0.3783, allocations: 0.4981 MB / 0.4991 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/0.3797, allocations: 415.4 kB / 0.4995 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005146/0.3849, allocations: 3.525 MB / 0.503 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.3863, allocations: 91.86 kB / 0.5031 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/0.3865, allocations: 95.95 kB / 0.5031 GB, free: 11.04 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.0006304/0.3872, allocations: 329.8 kB / 0.5035 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.3874, allocations: 118.5 kB / 0.5036 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006277/0.3936, allocations: 2.144 MB / 0.5057 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.3937, allocations: 12 kB / 0.5057 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3937, allocations: 8 kB / 0.5057 GB, free: 8.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.3937, allocations: 7.969 kB / 0.5057 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00765/0.4014, allocations: 3.534 MB / 0.5091 GB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.4014, allocations: 0 / 0.5091 GB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.4025, allocations: 271.7 kB / 0.5094 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002546/0.405, allocations: 490 kB / 0.5099 GB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001247/0.4052, allocations: 51.97 kB / 0.5099 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004584/0.4097, allocations: 3.421 MB / 0.5133 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.4098, allocations: 3.953 kB / 0.5133 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006586/0.4164, allocations: 2.743 MB / 0.5159 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003862/0.4168, allocations: 195.5 kB / 0.5161 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.417, allocations: 28 kB / 0.5162 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007293/0.4177, allocations: 59.91 kB / 0.5162 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002546/0.418, allocations: 125 kB / 0.5163 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.4181, allocations: 55.97 kB / 0.5164 GB, free: 13.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008273/0.4189, allocations: 0.703 MB / 0.5171 GB, free: 12.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4189, allocations: 0 / 0.5171 GB, free: 12.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002809/0.4217, allocations: 0.9369 MB / 0.518 GB, free: 11.41 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.002104/0.4238, allocations: 1.095 MB / 0.5191 GB, free: 10.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003396/0.4272, allocations: 1.993 MB / 0.521 GB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4273, allocations: 0 / 0.521 GB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001777/0.429, allocations: 1.139 MB / 0.5221 GB, free: 7.086 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/0.4303, allocations: 245.7 kB / 0.5223 GB, free: 6.848 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004691/0.435, allocations: 3.254 MB / 0.5255 GB, free: 3.559 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007057/0.4357, allocations: 1.191 MB / 0.5267 GB, free: 2.332 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001403/0.4371, allocations: 321.4 kB / 0.527 GB, free: 2.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004642/0.4376, allocations: 211.2 kB / 0.5272 GB, free: 1.812 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4376, allocations: 4 kB / 0.5272 GB, free: 1.809 MB / 398.1 MB Notification: Performance of Templates: time 0.04546/0.4831, allocations: 31.47 MB / 0.5579 GB, free: 2.449 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)