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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.0819/0.0819, allocations: 15.29 MB / 31.09 MB, free: 3.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.001101, allocations: 197.1 kB / 36.14 MB, free: 2.141 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 264 MB, free: 5.008 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 110.4 kB / 318.4 MB, free: 3.457 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 51.7 kB / 382.7 MB, free: 48.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08948/0.09117, allocations: 53.61 MB / 436.3 MB, free: 1.062 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.008683/0.09989, allocations: 8.53 MB / 444.9 MB, free: 8.492 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02413/0.1241, allocations: 23.09 MB / 467.9 MB, free: 1.316 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001227/0.1253, allocations: 31.75 kB / 468 MB, free: 1.285 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001143/0.1265, allocations: 429.5 kB / 468.4 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00427/0.1308, allocations: 1.681 MB / 470.1 MB, free: 15.17 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006432/0.1372, allocations: 2.561 MB / 472.6 MB, free: 12.6 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002289/0.1395, allocations: 2.079 MB / 474.7 MB, free: 10.51 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.1406, allocations: 1.082 MB / 475.8 MB, free: 9.391 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009762/0.1416, allocations: 1.052 MB / 476.9 MB, free: 8.336 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.1429, allocations: 1.18 MB / 478 MB, free: 7.152 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002244/0.1431, allocations: 128 kB / 478.2 MB, free: 7.027 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00622/0.1493, allocations: 2.406 MB / 480.6 MB, free: 4.617 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004062/0.1498, allocations: 422.6 kB / 481 MB, free: 4.203 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008962/0.1507, allocations: 0.8865 MB / 481.9 MB, free: 3.312 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007329/0.158, allocations: 4.336 MB / 486.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.158, allocations: 0 / 486.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.158, allocations: 0 / 486.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.03e-05/0.1581, allocations: 0 / 486.2 MB, free: 14.96 MB / 362.7 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.004203/0.1623, allocations: 2.393 MB / 488.6 MB, free: 12.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.1623, allocations: 12.88 kB / 488.6 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001491/0.1638, allocations: 394.2 kB / 489 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001288/0.1651, allocations: 0.8581 MB / 489.8 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.1653, allocations: 170.8 kB / 490 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002226/0.1655, allocations: 152.3 kB / 490.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002776/0.1683, allocations: 2.037 MB / 492.2 MB, free: 8.812 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.1683, allocations: 0 / 492.2 MB, free: 8.812 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001426/0.1684, allocations: 60 kB / 492.3 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.579e-05/0.1685, allocations: 36 kB / 492.3 MB, free: 8.719 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003573/0.1721, allocations: 2.693 MB / 495 MB, free: 6.02 MB / 362.7 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.009719/0.1818, allocations: 6.48 MB / 0.4897 GB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004566/0.1864, allocations: 3.311 MB / 0.4929 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001196/0.1876, allocations: 0.8871 MB / 0.4938 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008962/0.1966, allocations: 7.228 MB / 0.5009 GB, free: 3.008 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.1966, allocations: 43.56 kB / 0.5009 GB, free: 2.957 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006378/0.1972, allocations: 170.7 kB / 0.5011 GB, free: 2.789 MB / 378.7 MB Notification: Performance of pre-optimization done (n=117): time 2.324e-06/0.1973, allocations: 0 / 0.5011 GB, free: 2.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=140): time 0.1846/0.3819, allocations: 5.384 MB / 0.5063 GB, free: 71.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.3819, allocations: 66.59 kB / 0.5064 GB, free: 71.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.383, allocations: 1.04 MB / 0.5074 GB, free: 71.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.582e-05/0.3831, allocations: 50.45 kB / 0.5075 GB, free: 71.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.3834, allocations: 0.679 MB / 0.5081 GB, free: 71.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/0.3836, allocations: 490.1 kB / 0.5086 GB, free: 70.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004211/0.3841, allocations: 333.5 kB / 0.5089 GB, free: 70.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.661e-05/0.3841, allocations: 301.1 kB / 0.5092 GB, free: 70.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009501/0.3851, allocations: 0.6501 MB / 0.5098 GB, free: 70.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.3863, allocations: 1.106 MB / 0.5109 GB, free: 70.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002157/0.3884, allocations: 1.801 MB / 0.5127 GB, free: 69.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.866e-06/0.3884, allocations: 4.219 kB / 0.5127 GB, free: 69.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006176/0.3946, allocations: 2.42 MB / 0.515 GB, free: 69.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.3947, allocations: 13.19 kB / 0.515 GB, free: 69.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.808e-05/0.3947, allocations: 14.64 kB / 0.5151 GB, free: 69.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002751/0.3975, allocations: 487.3 kB / 0.5155 GB, free: 69.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.3989, allocations: 418.8 kB / 0.5159 GB, free: 69.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004385/0.4033, allocations: 3.49 MB / 0.5193 GB, free: 66.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.4046, allocations: 82.7 kB / 0.5194 GB, free: 66.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/0.4048, allocations: 97.41 kB / 0.5195 GB, free: 66.43 MB / 378.7 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.0005229/0.4053, allocations: 340.2 kB / 0.5198 GB, free: 66.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.4055, allocations: 123.6 kB / 0.5199 GB, free: 66.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006071/0.4116, allocations: 2.138 MB / 0.522 GB, free: 65.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/0.4116, allocations: 15.22 kB / 0.5221 GB, free: 65.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.4116, allocations: 5.125 kB / 0.5221 GB, free: 65.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.4117, allocations: 7.406 kB / 0.5221 GB, free: 65.31 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007438/0.4191, allocations: 3.536 MB / 0.5255 GB, free: 63.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.4191, allocations: 0.6094 kB / 0.5255 GB, free: 63.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.4202, allocations: 275.8 kB / 0.5258 GB, free: 63.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002565/0.4228, allocations: 473.3 kB / 0.5262 GB, free: 63.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001297/0.4229, allocations: 45.25 kB / 0.5263 GB, free: 63.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004111/0.427, allocations: 3.407 MB / 0.5296 GB, free: 60.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4271, allocations: 3.391 kB / 0.5296 GB, free: 60.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02423/0.4513, allocations: 11.56 MB / 0.5409 GB, free: 52.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002008/0.4515, allocations: 185.2 kB / 0.5411 GB, free: 52.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.4517, allocations: 23.94 kB / 0.5411 GB, free: 52.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007635/0.4525, allocations: 54.22 kB / 0.5411 GB, free: 52.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002809/0.4528, allocations: 125.5 kB / 0.5413 GB, free: 52.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.4529, allocations: 59.53 kB / 0.5413 GB, free: 52.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006436/0.4535, allocations: 0.7084 MB / 0.542 GB, free: 52.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4535, allocations: 0 / 0.542 GB, free: 52.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002749/0.4563, allocations: 1.107 MB / 0.5431 GB, free: 51.77 MB / 378.7 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.001459/0.4577, allocations: 1.071 MB / 0.5441 GB, free: 50.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002891/0.4606, allocations: 2.007 MB / 0.5461 GB, free: 48.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4607, allocations: 0 / 0.5461 GB, free: 48.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.4621, allocations: 1.136 MB / 0.5472 GB, free: 47.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.4633, allocations: 236.8 kB / 0.5474 GB, free: 47.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00447/0.4677, allocations: 4.198 MB / 0.5515 GB, free: 43.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/0.4682, allocations: 1.23 MB / 0.5527 GB, free: 41.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00136/0.4696, allocations: 344.9 kB / 0.5531 GB, free: 41.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004713/0.4701, allocations: 215.3 kB / 0.5533 GB, free: 41.45 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4701, allocations: 3.938 kB / 0.5533 GB, free: 41.44 MB / 378.7 MB Notification: Performance of Templates: time 0.04054/0.5106, allocations: 36.46 MB / 0.5889 GB, free: 5.16 MB / 378.7 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)