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.09653/0.09653, allocations: 15.26 MB / 30.21 MB, free: 3.301 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.0009836/0.0009837, allocations: 173.3 kB / 35.29 MB, free: 2.379 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.335/1.335, allocations: 223.2 MB / 263.4 MB, free: 6.941 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.0008496/0.0008495, allocations: 95.2 kB / 318.8 MB, free: 3.852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003377, allocations: 11.56 kB / 383.9 MB, free: 50.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08348/0.08384, allocations: 54.64 MB / 438.6 MB, free: 484 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3698/0.4537, allocations: 100.9 MB / 0.5268 GB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.4541, allocations: 69.94 kB / 0.5269 GB, free: 15.59 MB / 378.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.11/0.5641, allocations: 32 MB / 0.5581 GB, free: 25.92 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5642, allocations: 0 / 0.5581 GB, free: 25.92 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.87e-05/0.5642, allocations: 15.25 kB / 0.5581 GB, free: 25.92 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002197/0.5664, allocations: 1.174 MB / 0.5593 GB, free: 25.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.5665, allocations: 11.53 kB / 0.5593 GB, free: 25.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007493/0.5672, allocations: 234.7 kB / 0.5595 GB, free: 24.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009203/0.5682, allocations: 0.5946 MB / 0.5601 GB, free: 24.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.319e-05/0.5682, allocations: 51 kB / 0.5601 GB, free: 24.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.5684, allocations: 79.52 kB / 0.5602 GB, free: 24.58 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.5697, allocations: 1.248 MB / 0.5614 GB, free: 24.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.5697, allocations: 0 / 0.5614 GB, free: 24.3 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.792e-05/0.5698, allocations: 22.38 kB / 0.5615 GB, free: 24.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.5698, allocations: 15.62 kB / 0.5615 GB, free: 24.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.5715, allocations: 1.861 MB / 0.5633 GB, free: 24.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005332/0.5769, allocations: 3.622 MB / 0.5668 GB, free: 22.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.5784, allocations: 1.325 MB / 0.5681 GB, free: 22.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001886/0.5786, allocations: 169.4 kB / 0.5683 GB, free: 22.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.5786, allocations: 38.75 kB / 0.5683 GB, free: 22.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 2.775e-06/0.5786, allocations: 0 / 0.5683 GB, free: 22.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=87): time 0.01779/0.5964, allocations: 5.086 MB / 0.5733 GB, free: 20.85 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.5965, allocations: 64.25 kB / 0.5733 GB, free: 20.78 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007872/0.5973, allocations: 0.7492 MB / 0.5741 GB, free: 20.58 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.436e-05/0.5974, allocations: 41.11 kB / 0.5741 GB, free: 20.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.5976, allocations: 363.5 kB / 0.5745 GB, free: 20.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.5977, allocations: 298.1 kB / 0.5747 GB, free: 20.13 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.5978, allocations: 15.25 kB / 0.5748 GB, free: 20.13 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.5979, allocations: 389 kB / 0.5751 GB, free: 19.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006629/0.5986, allocations: 0.6649 MB / 0.5758 GB, free: 19.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007176/0.5993, allocations: 0.778 MB / 0.5765 GB, free: 19.52 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007669/0.6001, allocations: 0.7248 MB / 0.5772 GB, free: 19.45 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.6001, allocations: 0 / 0.5772 GB, free: 19.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.005069/0.6052, allocations: 1.949 MB / 0.5792 GB, free: 19.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.6053, allocations: 3.875 kB / 0.5792 GB, free: 19.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.6053, allocations: 3.875 kB / 0.5792 GB, free: 19.06 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/0.6081, allocations: 353.5 kB / 0.5795 GB, free: 18.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009595/0.6091, allocations: 205.8 kB / 0.5797 GB, free: 18.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00565/0.6148, allocations: 3.898 MB / 0.5835 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009619/0.6158, allocations: 51.38 kB / 0.5835 GB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.221e-05/0.6159, allocations: 39.23 kB / 0.5836 GB, free: 15.55 MB / 394.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 99 * 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,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004008/0.6163, allocations: 214.7 kB / 0.5838 GB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.6164, allocations: 76.06 kB / 0.5839 GB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004618/0.621, allocations: 1.703 MB / 0.5855 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.6211, allocations: 15.05 kB / 0.5855 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.6211, allocations: 0 / 0.5855 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.6211, allocations: 7.984 kB / 0.5855 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006101/0.6272, allocations: 3.178 MB / 0.5887 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.6272, allocations: 7.781 kB / 0.5887 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000616/0.6279, allocations: 164.1 kB / 0.5888 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003329/0.6312, allocations: 353.6 kB / 0.5892 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.569e-05/0.6313, allocations: 31.7 kB / 0.5892 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005239/0.6365, allocations: 3.868 MB / 0.593 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.165e-06/0.6366, allocations: 3.594 kB / 0.593 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005543/0.6421, allocations: 2.593 MB / 0.5955 GB, free: 6.719 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002953/0.6424, allocations: 167.3 kB / 0.5957 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.6425, allocations: 27.8 kB / 0.5957 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005685/0.6431, allocations: 35.61 kB / 0.5957 GB, free: 6.52 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.6432, allocations: 64.12 kB / 0.5958 GB, free: 6.488 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.269e-05/0.6433, allocations: 35.11 kB / 0.5958 GB, free: 6.477 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006038/0.6439, allocations: 0.608 MB / 0.5964 GB, free: 6.113 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6439, allocations: 0 / 0.5964 GB, free: 6.113 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001272/0.6452, allocations: 499.7 kB / 0.5969 GB, free: 5.977 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 3 (simpleSolution.temperature,simpleSolution.mass,liquidWater.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 (91): * Single equations (assignments): 88 * 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,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009462/0.6461, allocations: 0.5624 MB / 0.5974 GB, free: 5.461 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0022/0.6484, allocations: 1.63 MB / 0.599 GB, free: 3.805 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6484, allocations: 0 / 0.599 GB, free: 3.805 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.6494, allocations: 0.8829 MB / 0.5999 GB, free: 2.902 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.6506, allocations: 265.5 kB / 0.6001 GB, free: 2.641 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/0.6535, allocations: 2.308 MB / 0.6024 GB, free: 280 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004966/0.654, allocations: 0.9838 MB / 0.6034 GB, free: 15.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005808/0.6546, allocations: 142.4 kB / 0.6035 GB, free: 15.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002155/0.6548, allocations: 87.41 kB / 0.6036 GB, free: 15.03 MB / 410.7 MB Notification: Performance of SimCode: time 4e-07/0.6548, allocations: 0 / 0.6036 GB, free: 15.03 MB / 410.7 MB Notification: Performance of Templates: time 0.0316/0.6864, allocations: 21.27 MB / 0.6243 GB, free: 9.887 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)