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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.06479/0.06479, allocations: 15.26 MB / 22.54 MB, free: 1.105 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009008/0.0009009, allocations: 187.5 kB / 27.31 MB, free: 0 / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.094/1.094, allocations: 221.4 MB / 253.3 MB, free: 10.67 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.0008407/0.0008407, allocations: 92.67 kB / 308.4 MB, free: 10.7 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 6.552e-06/6.582e-06, allocations: 4.906 kB / 369 MB, free: 53.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0691/0.06912, allocations: 54.62 MB / 423.7 MB, free: 14.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2295/0.2987, allocations: 102.6 MB / 0.5139 GB, free: 8.363 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001485/0.2989, allocations: 67.3 kB / 0.514 GB, free: 8.363 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.145/0.4438, allocations: 64.24 MB / 0.5767 GB, free: 10.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.657e-05/0.4439, allocations: 32 kB / 0.5767 GB, free: 10.17 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.004826/0.4488, allocations: 1.903 MB / 0.5786 GB, free: 8.223 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.4488, allocations: 8.031 kB / 0.5786 GB, free: 8.215 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/0.4507, allocations: 469 kB / 0.579 GB, free: 7.754 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002072/0.4528, allocations: 0.9831 MB / 0.58 GB, free: 6.738 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.4529, allocations: 118.3 kB / 0.5801 GB, free: 6.609 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002682/0.4532, allocations: 87.91 kB / 0.5802 GB, free: 6.523 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004984/0.4582, allocations: 4 MB / 0.5841 GB, free: 2.516 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002999/0.4612, allocations: 2.106 MB / 0.5862 GB, free: 384 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.027e-05/0.4612, allocations: 4 kB / 0.5862 GB, free: 380 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.4614, allocations: 0 / 0.5862 GB, free: 380 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.796e-05/0.4614, allocations: 32 kB / 0.5862 GB, free: 348 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01204/0.4734, allocations: 8.144 MB / 0.5941 GB, free: 8.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003071/0.4765, allocations: 2.693 MB / 0.5968 GB, free: 5.391 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/0.478, allocations: 1.342 MB / 0.5981 GB, free: 4.055 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005051/0.4785, allocations: 419.2 kB / 0.5985 GB, free: 3.656 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.4786, allocations: 48.56 kB / 0.5985 GB, free: 3.598 MB / 410.7 MB Notification: Performance of pre-optimization done (n=170): time 2.705e-06/0.4786, allocations: 0 / 0.5985 GB, free: 3.598 MB / 410.7 MB Notification: Performance of matching and sorting (n=225): time 0.03558/0.5142, allocations: 11.29 MB / 0.6096 GB, free: 8.336 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.5142, allocations: 73.41 kB / 0.6096 GB, free: 8.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008911/0.5151, allocations: 0.8747 MB / 0.6105 GB, free: 7.371 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.5152, allocations: 25.7 kB / 0.6105 GB, free: 7.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002385/0.5155, allocations: 441 kB / 0.6109 GB, free: 6.898 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005674/0.5161, allocations: 0.7195 MB / 0.6116 GB, free: 6.168 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.5162, allocations: 3.938 kB / 0.6116 GB, free: 6.164 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.5164, allocations: 434.9 kB / 0.6121 GB, free: 5.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001963/0.5184, allocations: 1.589 MB / 0.6136 GB, free: 4.137 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002168/0.5205, allocations: 1.808 MB / 0.6154 GB, free: 2.262 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0043/0.5249, allocations: 2.139 MB / 0.6175 GB, free: 124 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.5249, allocations: 0 / 0.6175 GB, free: 124 kB / 426.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01128/0.5362, allocations: 4.768 MB / 0.6221 GB, free: 11.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.5362, allocations: 8 kB / 0.6221 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.5362, allocations: 4 kB / 0.6221 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003701/0.5399, allocations: 0.6708 MB / 0.6228 GB, free: 10.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/0.5419, allocations: 482.8 kB / 0.6232 GB, free: 10.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005791/0.5477, allocations: 4.265 MB / 0.6274 GB, free: 5.641 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/0.5499, allocations: 143.7 kB / 0.6275 GB, free: 5.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002532/0.5502, allocations: 115.9 kB / 0.6277 GB, free: 5.387 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_liquid.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: CO2_liquid.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (241): * Single equations (assignments): 235 * Array equations: 2 * 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.0003657/0.5506, allocations: 135.4 kB / 0.6278 GB, free: 5.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002542/0.5508, allocations: 126.4 kB / 0.6279 GB, free: 5.125 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01435/0.5652, allocations: 5.219 MB / 0.633 GB, free: 15.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01291/0.5781, allocations: 4.699 MB / 0.6376 GB, free: 11.17 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.5782, allocations: 7.844 kB / 0.6376 GB, free: 11.16 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-05/0.5782, allocations: 11.95 kB / 0.6376 GB, free: 11.15 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02046/0.5987, allocations: 10.59 MB / 0.648 GB, free: 432 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.5987, allocations: 8 kB / 0.648 GB, free: 424 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/0.6004, allocations: 419.3 kB / 0.6484 GB, free: 4 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007136/0.6076, allocations: 1.365 MB / 0.6497 GB, free: 14.63 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001771/0.6078, allocations: 51.92 kB / 0.6497 GB, free: 14.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01148/0.6192, allocations: 7.229 MB / 0.6568 GB, free: 7.098 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006088/0.6253, allocations: 2.39 MB / 0.6591 GB, free: 4.586 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1184/0.7438, allocations: 7.802 MB / 0.6668 GB, free: 153.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003376/0.7441, allocations: 241.7 kB / 0.667 GB, free: 153.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002441/0.7444, allocations: 21.33 kB / 0.667 GB, free: 153.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/0.7459, allocations: 85.25 kB / 0.6671 GB, free: 153.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/0.7461, allocations: 173.3 kB / 0.6673 GB, free: 153.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001552/0.7463, allocations: 95.05 kB / 0.6673 GB, free: 153.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0005649/0.7468, allocations: 0.6851 MB / 0.668 GB, free: 153.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002747/0.7496, allocations: 1.343 MB / 0.6693 GB, free: 153.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * Number of states: 6 ($STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 217 * 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,7 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001583/0.7512, allocations: 1.206 MB / 0.6705 GB, free: 153.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004914/0.7561, allocations: 4 MB / 0.6744 GB, free: 152.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.7561, allocations: 4.812 kB / 0.6744 GB, free: 152.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003138/0.7593, allocations: 2.417 MB / 0.6768 GB, free: 152.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.7604, allocations: 238.6 kB / 0.677 GB, free: 152.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004482/0.7649, allocations: 3.5 MB / 0.6804 GB, free: 151.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/0.7661, allocations: 1.551 MB / 0.6819 GB, free: 150.9 MB / 474.7 MB Notification: Performance of SimCode: time 2.61e-07/0.7661, allocations: 3.562 kB / 0.6819 GB, free: 150.9 MB / 474.7 MB Notification: Performance of Templates: time 0.05083/0.8169, allocations: 45.53 MB / 0.7264 GB, free: 149.1 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)