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.001459/0.001459, allocations: 102.1 kB / 16.35 MB, free: 5.875 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.00148/0.00148, allocations: 199.2 kB / 17.3 MB, free: 5.516 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09011/0.09011, allocations: 15.3 MB / 306.4 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 66.61 kB / 371.7 MB, free: 50.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08704/0.08837, allocations: 53.6 MB / 425.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.006013/0.09442, allocations: 7.544 MB / 432.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02335/0.1178, allocations: 23.33 MB / 456.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001401/0.1192, allocations: 15.94 kB / 456.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.1208, allocations: 492.4 kB / 456.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005336/0.1262, allocations: 1.94 MB / 458.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007411/0.1337, allocations: 2.912 MB / 461.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003322/0.137, allocations: 2.126 MB / 463.7 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002044/0.1391, allocations: 1.236 MB / 464.9 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002269/0.1414, allocations: 1.064 MB / 466 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002751/0.1442, allocations: 1.219 MB / 467.2 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005077/0.1447, allocations: 188 kB / 467.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01192/0.1566, allocations: 2.512 MB / 469.9 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009756/0.1576, allocations: 478.6 kB / 470.4 MB, free: 92 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001781/0.1594, allocations: 0.9374 MB / 471.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0153/0.1748, allocations: 4.679 MB / 476 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.1748, allocations: 0 / 476 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.25e-06/0.1748, allocations: 0 / 476 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.77e-05/0.1749, allocations: 3.938 kB / 476 MB, free: 10.45 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.006634/0.1815, allocations: 2.402 MB / 478.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.1816, allocations: 8.031 kB / 478.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002561/0.1842, allocations: 390.2 kB / 478.8 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.1862, allocations: 0.8931 MB / 479.7 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001967/0.1864, allocations: 166.9 kB / 479.8 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000372/0.1868, allocations: 160.3 kB / 480 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004501/0.1913, allocations: 2.025 MB / 482 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.4e-05/0.1914, allocations: 4 kB / 482 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/0.1916, allocations: 60 kB / 482.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.859e-05/0.1916, allocations: 32 kB / 482.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005796/0.1975, allocations: 2.697 MB / 484.8 MB, free: 1.469 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.01532/0.2128, allocations: 6.472 MB / 491.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007276/0.2201, allocations: 3.308 MB / 494.6 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/0.2215, allocations: 0.8871 MB / 495.5 MB, free: 6.477 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009764/0.2313, allocations: 7.208 MB / 0.4909 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.11e-05/0.2314, allocations: 43.56 kB / 0.491 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007264/0.2321, allocations: 174.6 kB / 0.4911 GB, free: 14.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=117): time 2.474e-06/0.2321, allocations: 0 / 0.4911 GB, free: 14.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.02034/0.2525, allocations: 5.405 MB / 0.4964 GB, free: 8.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.2526, allocations: 64.72 kB / 0.4965 GB, free: 8.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001306/0.2539, allocations: 1.03 MB / 0.4975 GB, free: 7.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001574/0.254, allocations: 45.7 kB / 0.4975 GB, free: 7.574 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004884/0.2545, allocations: 0.6777 MB / 0.4982 GB, free: 6.883 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000436/0.255, allocations: 492.9 kB / 0.4986 GB, free: 6.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005144/0.2555, allocations: 339.2 kB / 0.499 GB, free: 6.059 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.2556, allocations: 305.1 kB / 0.4993 GB, free: 5.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.2568, allocations: 0.652 MB / 0.4999 GB, free: 5.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.2582, allocations: 1.103 MB / 0.501 GB, free: 3.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002599/0.2608, allocations: 1.812 MB / 0.5027 GB, free: 1.809 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.2608, allocations: 4 kB / 0.5027 GB, free: 1.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.1797/0.4406, allocations: 2.405 MB / 0.5051 GB, free: 79.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.907e-05/0.4407, allocations: 8.5 kB / 0.5051 GB, free: 79.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/0.4407, allocations: 15.25 kB / 0.5051 GB, free: 79.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003048/0.4438, allocations: 483.4 kB / 0.5056 GB, free: 79.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00174/0.4455, allocations: 419.4 kB / 0.506 GB, free: 79.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0051/0.4507, allocations: 3.869 MB / 0.5098 GB, free: 76.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.4522, allocations: 58.45 kB / 0.5098 GB, free: 76.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002287/0.4524, allocations: 99.11 kB / 0.5099 GB, free: 76.35 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.000686/0.4531, allocations: 329.8 kB / 0.5102 GB, free: 76.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002555/0.4534, allocations: 124.9 kB / 0.5103 GB, free: 76.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006105/0.4595, allocations: 2.127 MB / 0.5124 GB, free: 75.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.4595, allocations: 15.75 kB / 0.5124 GB, free: 75.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.4595, allocations: 0 / 0.5124 GB, free: 75.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.001e-05/0.4595, allocations: 12.09 kB / 0.5124 GB, free: 75.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007883/0.4674, allocations: 3.533 MB / 0.5159 GB, free: 74.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.4675, allocations: 2.562 kB / 0.5159 GB, free: 74.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.4686, allocations: 271.2 kB / 0.5162 GB, free: 74.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002636/0.4712, allocations: 468.3 kB / 0.5166 GB, free: 74.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002073/0.4715, allocations: 52.91 kB / 0.5166 GB, free: 74.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004644/0.4761, allocations: 3.775 MB / 0.5203 GB, free: 70.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4761, allocations: 4.625 kB / 0.5203 GB, free: 70.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006937/0.4831, allocations: 2.745 MB / 0.523 GB, free: 69.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003512/0.4835, allocations: 186.6 kB / 0.5232 GB, free: 69.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.4836, allocations: 32.39 kB / 0.5232 GB, free: 69.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007295/0.4844, allocations: 29.97 kB / 0.5233 GB, free: 69.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002896/0.4847, allocations: 123.1 kB / 0.5234 GB, free: 69.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/0.4848, allocations: 58.23 kB / 0.5234 GB, free: 69.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007871/0.4856, allocations: 0.7082 MB / 0.5241 GB, free: 69.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4856, allocations: 0 / 0.5241 GB, free: 69.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002495/0.4881, allocations: 0.9447 MB / 0.525 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.001843/0.49, allocations: 1.091 MB / 0.5261 GB, free: 69.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00323/0.4932, allocations: 2.012 MB / 0.5281 GB, free: 68.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4932, allocations: 0.7656 kB / 0.5281 GB, free: 68.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001608/0.4948, allocations: 1.144 MB / 0.5292 GB, free: 67.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.496, allocations: 269.1 kB / 0.5294 GB, free: 67.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004018/0.5, allocations: 2.64 MB / 0.532 GB, free: 65.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.5005, allocations: 1.188 MB / 0.5332 GB, free: 64.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001018/0.5015, allocations: 324.6 kB / 0.5335 GB, free: 64.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004034/0.502, allocations: 211.3 kB / 0.5337 GB, free: 64.24 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.502, allocations: 0 / 0.5337 GB, free: 64.24 MB / 382.1 MB Notification: Performance of Templates: time 0.03973/0.5417, allocations: 33.76 MB / 0.5667 GB, free: 30.66 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 cvode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)