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.1197/0.1197, allocations: 15.26 MB / 30.21 MB, free: 3.32 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.001465/0.001465, allocations: 177.8 kB / 35.29 MB, free: 2.383 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.419/1.419, allocations: 223.2 MB / 263.4 MB, free: 6.449 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.00101/0.00101, allocations: 102.8 kB / 318.8 MB, free: 3.438 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003062, allocations: 8.031 kB / 383.9 MB, free: 50.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09253/0.09285, allocations: 54.64 MB / 438.6 MB, free: 404 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3467/0.4396, allocations: 103.4 MB / 0.5292 GB, free: 15.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.4398, allocations: 71.72 kB / 0.5293 GB, free: 15.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.141/0.5808, allocations: 65.27 MB / 0.593 GB, free: 11.54 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5809, allocations: 0 / 0.593 GB, free: 11.54 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.4e-05/0.5809, allocations: 32 kB / 0.5931 GB, free: 11.51 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.004387/0.5853, allocations: 1.974 MB / 0.595 GB, free: 9.582 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.5854, allocations: 8.031 kB / 0.595 GB, free: 9.574 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001712/0.5871, allocations: 453.8 kB / 0.5954 GB, free: 9.184 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001956/0.5891, allocations: 0.972 MB / 0.5964 GB, free: 8.398 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.5892, allocations: 170.2 kB / 0.5966 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/0.5895, allocations: 151.8 kB / 0.5967 GB, free: 8.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003793/0.5933, allocations: 2.833 MB / 0.5995 GB, free: 5.199 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.5933, allocations: 0 / 0.5995 GB, free: 5.199 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/0.5935, allocations: 60 kB / 0.5995 GB, free: 5.141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.69e-05/0.5935, allocations: 36 kB / 0.5996 GB, free: 5.105 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005072/0.5986, allocations: 4.122 MB / 0.6036 GB, free: 0.9766 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.01293/0.6115, allocations: 8.282 MB / 0.6117 GB, free: 8.473 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004994/0.6165, allocations: 3.831 MB / 0.6154 GB, free: 4.547 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006379/0.6172, allocations: 417 kB / 0.6158 GB, free: 4.141 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.6173, allocations: 56.56 kB / 0.6159 GB, free: 4.078 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001368/0.6186, allocations: 214.5 kB / 0.6161 GB, free: 3.867 MB / 410.7 MB Notification: Performance of pre-optimization done (n=170): time 3.968e-06/0.6186, allocations: 0 / 0.6161 GB, free: 3.867 MB / 410.7 MB Notification: Performance of matching and sorting (n=219): time 0.03269/0.6513, allocations: 11.03 MB / 0.6268 GB, free: 8.734 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.6514, allocations: 81.34 kB / 0.6269 GB, free: 8.645 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001223/0.6527, allocations: 0.9609 MB / 0.6279 GB, free: 7.676 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002667/0.6529, allocations: 65.7 kB / 0.6279 GB, free: 7.605 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003566/0.6533, allocations: 0.5246 MB / 0.6284 GB, free: 7.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006885/0.654, allocations: 0.7315 MB / 0.6291 GB, free: 6.328 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/0.6541, allocations: 40 kB / 0.6292 GB, free: 6.289 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.6543, allocations: 377.9 kB / 0.6295 GB, free: 5.914 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/0.6562, allocations: 1.402 MB / 0.6309 GB, free: 4.508 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002055/0.6583, allocations: 1.628 MB / 0.6325 GB, free: 2.809 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002061/0.6604, allocations: 1.529 MB / 0.634 GB, free: 1.285 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.6604, allocations: 0 / 0.634 GB, free: 1.285 MB / 426.7 MB Notification: Performance of matching and sorting (n=256) (initialization): time 0.009686/0.6701, allocations: 3.994 MB / 0.6379 GB, free: 13.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/0.6702, allocations: 10.34 kB / 0.6379 GB, free: 13.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.6702, allocations: 4 kB / 0.6379 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004491/0.6747, allocations: 0.764 MB / 0.6387 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002301/0.677, allocations: 443.4 kB / 0.6391 GB, free: 12.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006886/0.6839, allocations: 4.514 MB / 0.6435 GB, free: 7.238 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002037/0.686, allocations: 87.88 kB / 0.6436 GB, free: 7.152 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002909/0.6863, allocations: 87.94 kB / 0.6436 GB, free: 7.066 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.000981/0.6873, allocations: 347.9 kB / 0.644 GB, free: 6.719 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003777/0.6877, allocations: 130.4 kB / 0.6441 GB, free: 6.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009752/0.6974, allocations: 4.037 MB / 0.648 GB, free: 2.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.56e-05/0.6975, allocations: 27.98 kB / 0.6481 GB, free: 2.492 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.6975, allocations: 7.938 kB / 0.6481 GB, free: 2.484 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.673e-05/0.6976, allocations: 11.95 kB / 0.6481 GB, free: 2.473 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01645/0.714, allocations: 8.274 MB / 0.6562 GB, free: 10.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.162e-05/0.7141, allocations: 12 kB / 0.6562 GB, free: 10.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001852/0.716, allocations: 407.4 kB / 0.6566 GB, free: 9.621 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004327/0.7203, allocations: 0.7488 MB / 0.6573 GB, free: 8.859 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003568/0.7207, allocations: 75.91 kB / 0.6574 GB, free: 8.785 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006834/0.7275, allocations: 4.462 MB / 0.6617 GB, free: 4.031 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/0.7276, allocations: 7.938 kB / 0.6617 GB, free: 4.023 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01309/0.7407, allocations: 6.279 MB / 0.6679 GB, free: 13.44 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005411/0.7413, allocations: 223.3 kB / 0.6681 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003207/0.7416, allocations: 52 kB / 0.6681 GB, free: 13.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.7429, allocations: 75.95 kB / 0.6682 GB, free: 13.08 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003367/0.7432, allocations: 193.5 kB / 0.6684 GB, free: 12.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000168/0.7434, allocations: 83.95 kB / 0.6685 GB, free: 12.81 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0009199/0.7443, allocations: 0.7646 MB / 0.6692 GB, free: 12.04 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.7443, allocations: 0 / 0.6692 GB, free: 12.04 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003215/0.7475, allocations: 1.081 MB / 0.6703 GB, free: 10.96 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.002296/0.7498, allocations: 1.224 MB / 0.6715 GB, free: 9.723 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005828/0.7557, allocations: 3.593 MB / 0.675 GB, free: 6.09 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.7557, allocations: 0 / 0.675 GB, free: 6.09 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003274/0.759, allocations: 2.031 MB / 0.677 GB, free: 4.012 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001573/0.7606, allocations: 271.4 kB / 0.6772 GB, free: 3.746 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2087/0.9694, allocations: 4.423 MB / 0.6815 GB, free: 106.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008313/0.9702, allocations: 1.286 MB / 0.6828 GB, free: 106 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001449/0.9717, allocations: 300 kB / 0.6831 GB, free: 106 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004996/0.9722, allocations: 166 kB / 0.6832 GB, free: 106 MB / 474.7 MB Notification: Performance of SimCode: time 9.12e-07/0.9722, allocations: 0 / 0.6832 GB, free: 106 MB / 474.7 MB Notification: Performance of Templates: time 0.05562/1.028, allocations: 39.77 MB / 0.7221 GB, free: 104 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)