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.1017/0.1017, allocations: 15.26 MB / 31.21 MB, free: 3.094 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.001025/0.001025, allocations: 181.5 kB / 36.3 MB, free: 2.246 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.576/1.576, allocations: 223.3 MB / 264.5 MB, free: 6.234 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.0008119/0.0008119, allocations: 99.69 kB / 319.9 MB, free: 3.18 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005546/0.0005547, allocations: 11.64 kB / 385.2 MB, free: 50.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1365, allocations: 54.64 MB / 439.8 MB, free: 104 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3959/0.5326, allocations: 103.4 MB / 0.5305 GB, free: 15.56 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001828/0.5328, allocations: 71.44 kB / 0.5306 GB, free: 15.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1429/0.6757, allocations: 64.95 MB / 0.594 GB, free: 11.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6757, allocations: 4 kB / 0.594 GB, free: 11.56 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.361e-05/0.6758, allocations: 32 kB / 0.594 GB, free: 11.53 MB / 394.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.00483/0.6806, allocations: 1.96 MB / 0.5959 GB, free: 9.617 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.6807, allocations: 8.875 kB / 0.5959 GB, free: 9.609 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001753/0.6824, allocations: 440.3 kB / 0.5964 GB, free: 9.234 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001938/0.6844, allocations: 1.012 MB / 0.5974 GB, free: 8.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001491/0.6846, allocations: 166.8 kB / 0.5975 GB, free: 8.164 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002436/0.6848, allocations: 152.3 kB / 0.5977 GB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004052/0.6889, allocations: 2.834 MB / 0.6004 GB, free: 5.145 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.539e-05/0.6889, allocations: 11.88 kB / 0.6004 GB, free: 5.133 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001507/0.6891, allocations: 60 kB / 0.6005 GB, free: 5.074 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.093e-05/0.6891, allocations: 39.98 kB / 0.6005 GB, free: 5.035 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005411/0.6945, allocations: 4.114 MB / 0.6046 GB, free: 0.9141 MB / 394.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.01267/0.7072, allocations: 8.294 MB / 0.6127 GB, free: 8.398 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004904/0.7121, allocations: 3.827 MB / 0.6164 GB, free: 4.488 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001895/0.7141, allocations: 1.404 MB / 0.6178 GB, free: 3.082 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006326/0.7147, allocations: 417 kB / 0.6182 GB, free: 2.672 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/0.7148, allocations: 48.56 kB / 0.6182 GB, free: 2.617 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001196/0.716, allocations: 222.5 kB / 0.6184 GB, free: 2.398 MB / 410.7 MB Notification: Performance of pre-optimization done (n=170): time 3.818e-06/0.716, allocations: 0 / 0.6184 GB, free: 2.398 MB / 410.7 MB Notification: Performance of matching and sorting (n=219): time 0.02961/0.7456, allocations: 11.02 MB / 0.6292 GB, free: 7.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.7457, allocations: 73.41 kB / 0.6293 GB, free: 7.184 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.747, allocations: 1.051 MB / 0.6303 GB, free: 6.125 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002317/0.7472, allocations: 61.7 kB / 0.6303 GB, free: 6.059 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003721/0.7476, allocations: 0.5245 MB / 0.6309 GB, free: 5.523 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006468/0.7483, allocations: 0.7315 MB / 0.6316 GB, free: 4.781 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.7484, allocations: 43.94 kB / 0.6316 GB, free: 4.738 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.7486, allocations: 385.8 kB / 0.632 GB, free: 4.355 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001993/0.7506, allocations: 1.406 MB / 0.6333 GB, free: 2.945 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002136/0.7527, allocations: 1.631 MB / 0.6349 GB, free: 1.238 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004163/0.7569, allocations: 3.07 MB / 0.6379 GB, free: 14.11 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.7569, allocations: 4 kB / 0.6379 GB, free: 14.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=256) (initialization): time 0.008908/0.7658, allocations: 3.993 MB / 0.6418 GB, free: 10.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.7659, allocations: 14.33 kB / 0.6419 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.7659, allocations: 4 kB / 0.6419 GB, free: 10.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003666/0.7696, allocations: 0.7562 MB / 0.6426 GB, free: 9.305 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.7714, allocations: 443.4 kB / 0.643 GB, free: 8.871 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006133/0.7776, allocations: 4.475 MB / 0.6474 GB, free: 4.102 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.7794, allocations: 83.81 kB / 0.6475 GB, free: 4.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000284/0.7797, allocations: 96 kB / 0.6476 GB, free: 3.926 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (239): * Single equations (assignments): 235 * 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: 3 * 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: 2 {1 10,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000961/0.7806, allocations: 341.3 kB / 0.6479 GB, free: 3.582 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003877/0.781, allocations: 134.3 kB / 0.648 GB, free: 3.449 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009328/0.7904, allocations: 4.025 MB / 0.6519 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.081e-05/0.7904, allocations: 24 kB / 0.652 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.7904, allocations: 3.938 kB / 0.652 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-05/0.7905, allocations: 15.89 kB / 0.652 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01417/0.8047, allocations: 8.282 MB / 0.6601 GB, free: 6.898 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/0.8047, allocations: 4 kB / 0.6601 GB, free: 6.895 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/0.8063, allocations: 407.4 kB / 0.6605 GB, free: 6.496 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003633/0.81, allocations: 0.7564 MB / 0.6612 GB, free: 5.727 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002458/0.8102, allocations: 67.97 kB / 0.6613 GB, free: 5.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005876/0.8161, allocations: 4.427 MB / 0.6656 GB, free: 0.9414 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.395e-06/0.8162, allocations: 11.94 kB / 0.6656 GB, free: 0.9297 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01126/0.8274, allocations: 5.926 MB / 0.6714 GB, free: 10.88 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005132/0.828, allocations: 219.6 kB / 0.6716 GB, free: 10.65 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002373/0.8282, allocations: 55.98 kB / 0.6717 GB, free: 10.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.8293, allocations: 79.88 kB / 0.6717 GB, free: 10.52 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003419/0.8297, allocations: 197.5 kB / 0.6719 GB, free: 10.32 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001583/0.8298, allocations: 79.97 kB / 0.672 GB, free: 10.25 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0009606/0.8308, allocations: 0.7685 MB / 0.6727 GB, free: 9.473 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.8308, allocations: 0 / 0.6727 GB, free: 9.473 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003489/0.8343, allocations: 1.081 MB / 0.6738 GB, free: 8.391 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (228): * Single equations (assignments): 224 * 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: 3 * 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: 2 {1 3,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.002467/0.8368, allocations: 1.222 MB / 0.675 GB, free: 7.16 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005693/0.8425, allocations: 3.593 MB / 0.6785 GB, free: 3.527 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.8425, allocations: 4 kB / 0.6785 GB, free: 3.523 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003139/0.8457, allocations: 2.023 MB / 0.6805 GB, free: 1.453 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.8481, allocations: 308.4 kB / 0.6808 GB, free: 1.156 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1992/1.047, allocations: 4.431 MB / 0.6851 GB, free: 106.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007244/1.048, allocations: 1.257 MB / 0.6863 GB, free: 105.5 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001434/1.049, allocations: 301.6 kB / 0.6866 GB, free: 105.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004754/1.05, allocations: 166.4 kB / 0.6868 GB, free: 105.5 MB / 474.7 MB Notification: Performance of SimCode: time 1.363e-06/1.05, allocations: 0 / 0.6868 GB, free: 105.5 MB / 474.7 MB Notification: Performance of Templates: time 0.05898/1.109, allocations: 40.61 MB / 0.7264 GB, free: 103.4 MB / 474.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)