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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1226/0.1226, allocations: 15.26 MB / 22.73 MB, free: 0.9531 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.001101/0.001101, allocations: 185 kB / 27.52 MB, free: 6.113 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.483/1.483, allocations: 221.5 MB / 253.7 MB, free: 11.03 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.0009158/0.0009158, allocations: 94.33 kB / 308.8 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.349e-05/1.349e-05, allocations: 2.75 kB / 369.6 MB, free: 53.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08957/0.0896, allocations: 54.64 MB / 424.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3791/0.4688, allocations: 100.2 MB / 0.5121 GB, free: 12.47 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001486/0.469, allocations: 67.06 kB / 0.5121 GB, free: 12.47 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 - DAE generated: time 0.06867/0.5376, allocations: 31.47 MB / 0.5429 GB, free: 21.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5377, allocations: 0 / 0.5429 GB, free: 21.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.612e-05/0.5377, allocations: 15.5 kB / 0.5429 GB, free: 21.47 MB / 378.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.002056/0.5398, allocations: 1.083 MB / 0.5439 GB, free: 20.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.5398, allocations: 13.48 kB / 0.544 GB, free: 20.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008675/0.5407, allocations: 239.5 kB / 0.5442 GB, free: 20.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009896/0.5417, allocations: 0.594 MB / 0.5448 GB, free: 20.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.5418, allocations: 23.44 kB / 0.5448 GB, free: 20.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.5419, allocations: 42.59 kB / 0.5448 GB, free: 20.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001959/0.5439, allocations: 1.804 MB / 0.5466 GB, free: 19.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.5451, allocations: 0.9594 MB / 0.5475 GB, free: 19.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.5451, allocations: 0 / 0.5475 GB, free: 19.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.028e-05/0.5451, allocations: 0 / 0.5475 GB, free: 19.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.5452, allocations: 19.38 kB / 0.5475 GB, free: 19.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004595/0.5498, allocations: 3.489 MB / 0.5509 GB, free: 18.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.5512, allocations: 1.295 MB / 0.5522 GB, free: 18.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004673/0.5516, allocations: 0.4989 MB / 0.5527 GB, free: 18.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002079/0.5518, allocations: 168.7 kB / 0.5529 GB, free: 18.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.5519, allocations: 39.03 kB / 0.5529 GB, free: 18.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 1.833e-06/0.5519, allocations: 0 / 0.5529 GB, free: 18.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.01887/0.5708, allocations: 4.792 MB / 0.5576 GB, free: 16.17 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.5708, allocations: 59.78 kB / 0.5576 GB, free: 16.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007211/0.5716, allocations: 0.6881 MB / 0.5583 GB, free: 15.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.609e-05/0.5717, allocations: 33.64 kB / 0.5583 GB, free: 15.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001903/0.5719, allocations: 363.1 kB / 0.5587 GB, free: 15.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.5721, allocations: 286.7 kB / 0.559 GB, free: 15.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-05/0.5721, allocations: 3.938 kB / 0.559 GB, free: 15.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.5723, allocations: 382.2 kB / 0.5593 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007589/0.573, allocations: 0.6741 MB / 0.56 GB, free: 14.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008361/0.5739, allocations: 0.7846 MB / 0.5608 GB, free: 13.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002071/0.576, allocations: 0.9173 MB / 0.5616 GB, free: 13.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.576, allocations: 7.938 kB / 0.5617 GB, free: 13.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.005537/0.5815, allocations: 2.119 MB / 0.5637 GB, free: 11.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.5816, allocations: 8 kB / 0.5637 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.5816, allocations: 0 / 0.5637 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002361/0.584, allocations: 314.2 kB / 0.564 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008706/0.5848, allocations: 207.7 kB / 0.5642 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004873/0.5897, allocations: 3.686 MB / 0.5678 GB, free: 7.496 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009174/0.5907, allocations: 51.78 kB / 0.5679 GB, free: 7.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/0.5908, allocations: 39.97 kB / 0.5679 GB, free: 7.406 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.0002473/0.5911, allocations: 128.9 kB / 0.568 GB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.5913, allocations: 71.16 kB / 0.5681 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006662/0.5979, allocations: 1.928 MB / 0.57 GB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005945/0.6039, allocations: 1.739 MB / 0.5717 GB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.6039, allocations: 0 / 0.5717 GB, free: 3.496 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/0.604, allocations: 3.984 kB / 0.5717 GB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00935/0.6133, allocations: 3.558 MB / 0.5752 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/0.6134, allocations: 12.56 kB / 0.5752 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006352/0.614, allocations: 167.7 kB / 0.5753 GB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003917/0.618, allocations: 0.4934 MB / 0.5758 GB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001201/0.6181, allocations: 23.97 kB / 0.5758 GB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006417/0.6245, allocations: 4.347 MB / 0.5801 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004564/0.6291, allocations: 2.015 MB / 0.5821 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006915/0.6361, allocations: 2.834 MB / 0.5848 GB, free: 5.344 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00031/0.6364, allocations: 172.1 kB / 0.585 GB, free: 5.156 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.6366, allocations: 11.98 kB / 0.585 GB, free: 5.145 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006135/0.6372, allocations: 27.88 kB / 0.585 GB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.6374, allocations: 88.56 kB / 0.5851 GB, free: 5.031 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-05/0.6375, allocations: 32 kB / 0.5851 GB, free: 5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006294/0.6381, allocations: 0.538 MB / 0.5857 GB, free: 4.461 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6381, allocations: 0 / 0.5857 GB, free: 4.461 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001574/0.6397, allocations: 0.4957 MB / 0.5862 GB, free: 3.965 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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.001104/0.6408, allocations: 0.5646 MB / 0.5867 GB, free: 3.422 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002205/0.643, allocations: 1.595 MB / 0.5883 GB, free: 1.805 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.643, allocations: 0 / 0.5883 GB, free: 1.805 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.6442, allocations: 0.8708 MB / 0.5891 GB, free: 0.918 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.6455, allocations: 238.8 kB / 0.5893 GB, free: 0.6914 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.648, allocations: 1.551 MB / 0.5909 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006016/0.6486, allocations: 0.9953 MB / 0.5918 GB, free: 14.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006387/0.6493, allocations: 146 kB / 0.592 GB, free: 13.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.6495, allocations: 79.39 kB / 0.592 GB, free: 13.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/0.6495, allocations: 0 / 0.592 GB, free: 13.8 MB / 410.7 MB Notification: Performance of Templates: time 0.03287/0.6824, allocations: 20.21 MB / 0.6118 GB, free: 9.688 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)