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.001128/0.001133, allocations: 111.1 kB / 16.37 MB, free: 6.012 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.001052/0.001052, allocations: 189.5 kB / 17.31 MB, free: 5.613 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.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0759/0.0759, allocations: 15.3 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 59.7 kB / 371.7 MB, free: 50.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.08466, allocations: 53.63 MB / 425.4 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.006252/0.09095, allocations: 7.52 MB / 432.9 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02249/0.1135, allocations: 23.35 MB / 456.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009935/0.1145, allocations: 15.94 kB / 456.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001163/0.1157, allocations: 476.4 kB / 456.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005008/0.1207, allocations: 1.948 MB / 458.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007228/0.128, allocations: 2.908 MB / 461.6 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002998/0.131, allocations: 2.13 MB / 463.7 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001292/0.1323, allocations: 1.239 MB / 464.9 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001056/0.1334, allocations: 1.06 MB / 466 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001498/0.1349, allocations: 1.211 MB / 467.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000256/0.1351, allocations: 196 kB / 467.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006993/0.1421, allocations: 2.508 MB / 469.9 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005798/0.1427, allocations: 470.7 kB / 470.4 MB, free: 80 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001093/0.1438, allocations: 0.9529 MB / 471.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009195/0.1531, allocations: 4.683 MB / 476 MB, free: 10.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1531, allocations: 0 / 476 MB, free: 10.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1531, allocations: 0 / 476 MB, free: 10.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.035e-05/0.1531, allocations: 0 / 476 MB, free: 10.42 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.00453/0.1577, allocations: 2.402 MB / 478.4 MB, free: 7.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.1577, allocations: 12.03 kB / 478.4 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001706/0.1594, allocations: 390.2 kB / 478.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.161, allocations: 0.8854 MB / 479.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.1611, allocations: 170.8 kB / 479.9 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002669/0.1614, allocations: 152.3 kB / 480 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003074/0.1645, allocations: 2.029 MB / 482 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.52e-05/0.1645, allocations: 0 / 482 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.1647, allocations: 63.98 kB / 482.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.729e-05/0.1647, allocations: 36 kB / 482.1 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003962/0.1687, allocations: 2.697 MB / 484.8 MB, free: 1.441 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.01098/0.1797, allocations: 6.464 MB / 491.3 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005135/0.1849, allocations: 3.301 MB / 494.6 MB, free: 7.348 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001312/0.1862, allocations: 0.8871 MB / 495.5 MB, free: 6.461 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00967/0.1959, allocations: 7.216 MB / 0.4909 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/0.1959, allocations: 47.55 kB / 0.491 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007301/0.1967, allocations: 170.6 kB / 0.4911 GB, free: 14.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=117): time 3.366e-06/0.1967, allocations: 0 / 0.4911 GB, free: 14.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02187/0.2186, allocations: 5.404 MB / 0.4964 GB, free: 8.734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.2187, allocations: 68.72 kB / 0.4965 GB, free: 8.652 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/0.2201, allocations: 1.03 MB / 0.4975 GB, free: 7.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002459/0.2203, allocations: 49.7 kB / 0.4975 GB, free: 7.543 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004923/0.2208, allocations: 0.6776 MB / 0.4982 GB, free: 6.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004727/0.2213, allocations: 488.9 kB / 0.4987 GB, free: 6.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005177/0.2219, allocations: 331.3 kB / 0.499 GB, free: 6.039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.222, allocations: 309.1 kB / 0.4993 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.2231, allocations: 0.6481 MB / 0.4999 GB, free: 5.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.2245, allocations: 1.107 MB / 0.501 GB, free: 3.789 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002538/0.2271, allocations: 1.8 MB / 0.5027 GB, free: 1.797 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.2271, allocations: 8 kB / 0.5027 GB, free: 1.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.1661/0.3931, allocations: 2.406 MB / 0.5051 GB, free: 79.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.3932, allocations: 12.59 kB / 0.5051 GB, free: 79.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.3932, allocations: 14.95 kB / 0.5051 GB, free: 79.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002852/0.3961, allocations: 488.6 kB / 0.5056 GB, free: 79.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.3977, allocations: 420.8 kB / 0.506 GB, free: 79.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004809/0.4025, allocations: 3.87 MB / 0.5098 GB, free: 76.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.4038, allocations: 56.39 kB / 0.5098 GB, free: 76.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001714/0.404, allocations: 95.3 kB / 0.5099 GB, free: 76.37 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.000579/0.4046, allocations: 338.1 kB / 0.5102 GB, free: 76.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002344/0.4048, allocations: 119.8 kB / 0.5103 GB, free: 76.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006043/0.4109, allocations: 2.13 MB / 0.5124 GB, free: 75.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.4109, allocations: 15.38 kB / 0.5124 GB, free: 75.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4109, allocations: 0.5156 kB / 0.5124 GB, free: 75.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.82e-05/0.4109, allocations: 7.031 kB / 0.5124 GB, free: 75.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007507/0.4184, allocations: 3.542 MB / 0.5159 GB, free: 74.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.4185, allocations: 1.406 kB / 0.5159 GB, free: 74.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.4195, allocations: 276.9 kB / 0.5162 GB, free: 74.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002623/0.4222, allocations: 465.8 kB / 0.5166 GB, free: 74.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001128/0.4223, allocations: 48.48 kB / 0.5167 GB, free: 74.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004233/0.4265, allocations: 3.774 MB / 0.5203 GB, free: 70.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.4266, allocations: 1.062 kB / 0.5203 GB, free: 70.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006932/0.4335, allocations: 2.751 MB / 0.523 GB, free: 69.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003472/0.4339, allocations: 182.7 kB / 0.5232 GB, free: 69.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.434, allocations: 26.56 kB / 0.5232 GB, free: 69.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007368/0.4348, allocations: 34.53 kB / 0.5233 GB, free: 69.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002754/0.4351, allocations: 118.8 kB / 0.5234 GB, free: 69.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.4352, allocations: 65.17 kB / 0.5234 GB, free: 69.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008678/0.4361, allocations: 0.7036 MB / 0.5241 GB, free: 69.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4361, allocations: 3.906 kB / 0.5241 GB, free: 69.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002305/0.4384, allocations: 0.939 MB / 0.5251 GB, free: 69.24 MB / 382.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.001627/0.44, allocations: 1.102 MB / 0.5261 GB, free: 69.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002958/0.443, allocations: 2.006 MB / 0.5281 GB, free: 68.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.443, allocations: 0.875 kB / 0.5281 GB, free: 68.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001593/0.4446, allocations: 1.145 MB / 0.5292 GB, free: 67.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.4457, allocations: 259.5 kB / 0.5295 GB, free: 67.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003905/0.4496, allocations: 2.645 MB / 0.532 GB, free: 65.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.4501, allocations: 1.182 MB / 0.5332 GB, free: 64.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001001/0.4511, allocations: 324.8 kB / 0.5335 GB, free: 64.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000402/0.4515, allocations: 207.3 kB / 0.5337 GB, free: 64.2 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4515, allocations: 0 / 0.5337 GB, free: 64.2 MB / 382.1 MB Notification: Performance of Templates: time 0.03657/0.4881, allocations: 33.77 MB / 0.5667 GB, free: 30.61 MB / 382.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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)