Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.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.AcidBaseBufferTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest") translateModel(Chemical.Examples.AcidBase.AcidBaseBufferTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest") [: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.07158/0.07158, allocations: 15.27 MB / 22.55 MB, free: 1.102 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.0009423/0.0009423, allocations: 187.5 kB / 27.31 MB, free: 6.188 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.115/1.115, allocations: 221.4 MB / 253.3 MB, free: 10.9 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.000808/0.000808, allocations: 96.66 kB / 308.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 6.082e-06/6.112e-06, allocations: 1.094 kB / 369 MB, free: 53.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07002/0.07004, allocations: 54.63 MB / 423.7 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2305/0.3005, allocations: 100.1 MB / 0.5115 GB, free: 8.328 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001492/0.3007, allocations: 72.56 kB / 0.5115 GB, free: 8.328 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System buffer.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.Buffer$buffer. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System simpleSolution.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System externalMoleFraction.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.ExternalMoleFraction$externalMoleFraction. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:2321:8-2321:67:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System externalMoleFraction.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Sources.ExternalMoleFraction$externalMoleFraction. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System liquidWater.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$liquidWater. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd: time 0.06593/0.3667, allocations: 31.38 MB / 0.5422 GB, free: 1.098 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.942e-05/0.3667, allocations: 15.22 kB / 0.5422 GB, free: 1.098 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.001828/0.3686, allocations: 1.097 MB / 0.5433 GB, free: 316 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.3686, allocations: 7.625 kB / 0.5433 GB, free: 316 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008647/0.3695, allocations: 241.2 kB / 0.5435 GB, free: 212 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00099/0.3705, allocations: 0.6046 MB / 0.5441 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.3705, allocations: 19.03 kB / 0.5441 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.3706, allocations: 45.94 kB / 0.5442 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001866/0.3725, allocations: 1.813 MB / 0.5459 GB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001132/0.3736, allocations: 0.9584 MB / 0.5469 GB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.3737, allocations: 0 / 0.5469 GB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.904e-05/0.3737, allocations: 4 kB / 0.5469 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.3737, allocations: 15.25 kB / 0.5469 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004923/0.3787, allocations: 3.497 MB / 0.5503 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006415/0.3793, allocations: 0.565 MB / 0.5508 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005468/0.3799, allocations: 0.5068 MB / 0.5513 GB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000237/0.3801, allocations: 168.8 kB / 0.5515 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.3802, allocations: 44.53 kB / 0.5515 GB, free: 13.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.164e-06/0.3802, allocations: 0 / 0.5515 GB, free: 13.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.02202/0.4022, allocations: 4.862 MB / 0.5563 GB, free: 11.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.4023, allocations: 59.53 kB / 0.5563 GB, free: 11.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008181/0.4031, allocations: 0.6833 MB / 0.557 GB, free: 10.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.442e-05/0.4032, allocations: 26.8 kB / 0.557 GB, free: 10.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.4033, allocations: 289.7 kB / 0.5573 GB, free: 10.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/0.4036, allocations: 292 kB / 0.5576 GB, free: 10.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.934e-05/0.4036, allocations: 0 / 0.5576 GB, free: 10.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.4038, allocations: 379.7 kB / 0.558 GB, free: 10.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008433/0.4046, allocations: 0.6774 MB / 0.5586 GB, free: 9.711 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009093/0.4055, allocations: 0.7903 MB / 0.5594 GB, free: 9.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/0.4077, allocations: 0.938 MB / 0.5603 GB, free: 8.703 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4077, allocations: 1.406 kB / 0.5603 GB, free: 8.703 MB / 378.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.006262/0.4139, allocations: 2.15 MB / 0.5624 GB, free: 7.535 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.414, allocations: 4.906 kB / 0.5624 GB, free: 7.535 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.414, allocations: 6.188 kB / 0.5624 GB, free: 7.531 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002611/0.4166, allocations: 322 kB / 0.5627 GB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008722/0.4175, allocations: 207.7 kB / 0.5629 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004883/0.4224, allocations: 3.646 MB / 0.5665 GB, free: 3.105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008365/0.4232, allocations: 43.78 kB / 0.5665 GB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.4234, allocations: 44.03 kB / 0.5666 GB, free: 3.02 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: buffer.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: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 98 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 4,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002034/0.4236, allocations: 124.9 kB / 0.5667 GB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.4237, allocations: 75.06 kB / 0.5668 GB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006994/0.4307, allocations: 1.968 MB / 0.5687 GB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006619/0.4374, allocations: 1.752 MB / 0.5704 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4374, allocations: 0 / 0.5704 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/0.4374, allocations: 3.984 kB / 0.5704 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008654/0.4461, allocations: 3.623 MB / 0.5739 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4461, allocations: 4 kB / 0.5739 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000641/0.4467, allocations: 167.7 kB / 0.5741 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004308/0.4511, allocations: 0.5061 MB / 0.5746 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.72e-05/0.4511, allocations: 15.98 kB / 0.5746 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006353/0.4575, allocations: 4.277 MB / 0.5788 GB, free: 6.109 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004961/0.4625, allocations: 1.967 MB / 0.5807 GB, free: 4.02 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007286/0.4698, allocations: 2.88 MB / 0.5835 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003118/0.4701, allocations: 164.2 kB / 0.5837 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/0.4703, allocations: 11.98 kB / 0.5837 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006316/0.4709, allocations: 27.83 kB / 0.5837 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.72e-05/0.471, allocations: 72.41 kB / 0.5838 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.444e-05/0.4711, allocations: 35.98 kB / 0.5838 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0006367/0.4718, allocations: 0.5341 MB / 0.5843 GB, free: 64 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.001504/0.4733, allocations: 0.4918 MB / 0.5848 GB, free: 15.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 3 ($STATESET1.x[2],$STATESET1.x[1],simpleSolution.mass) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 4,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001062/0.4743, allocations: 0.5621 MB / 0.5854 GB, free: 15.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002321/0.4767, allocations: 1.603 MB / 0.5869 GB, free: 13.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4767, allocations: 4 kB / 0.5869 GB, free: 13.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.4778, allocations: 0.847 MB / 0.5878 GB, free: 12.53 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.479, allocations: 241.4 kB / 0.588 GB, free: 12.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002849/0.4819, allocations: 1.591 MB / 0.5895 GB, free: 10.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008047/0.4827, allocations: 1.076 MB / 0.5906 GB, free: 9.512 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4827, allocations: 4 kB / 0.5906 GB, free: 9.508 MB / 410.7 MB Notification: Performance of Templates: time 0.03097/0.5137, allocations: 21.6 MB / 0.6117 GB, free: 4.031 MB / 426.7 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.makefile (rm -f Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.sim & ./Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe 2>&1)