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.1062/0.1062, allocations: 15.26 MB / 31.21 MB, free: 3.094 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.001071/0.001071, allocations: 186.3 kB / 36.3 MB, free: 2.242 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.45/1.45, allocations: 223.3 MB / 264.5 MB, free: 5.863 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.0008601/0.0008601, allocations: 92.66 kB / 319.9 MB, free: 2.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003676, allocations: 10.64 kB / 385.2 MB, free: 50.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08544/0.08583, allocations: 54.65 MB / 439.8 MB, free: 8 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.348/0.4339, allocations: 100.9 MB / 0.5281 GB, free: 15.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.4342, allocations: 72.05 kB / 0.5281 GB, free: 15.8 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.07054/0.5048, allocations: 31.9 MB / 0.5593 GB, free: 26.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5048, allocations: 4 kB / 0.5593 GB, free: 26.08 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.289e-05/0.5048, allocations: 15.06 kB / 0.5593 GB, free: 26.08 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.001813/0.5067, allocations: 1.168 MB / 0.5605 GB, free: 25.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.5067, allocations: 12.28 kB / 0.5605 GB, free: 25.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006749/0.5074, allocations: 229.3 kB / 0.5607 GB, free: 25.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007387/0.5081, allocations: 0.6251 MB / 0.5613 GB, free: 24.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.5082, allocations: 51.38 kB / 0.5613 GB, free: 24.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.685e-05/0.5083, allocations: 71.97 kB / 0.5614 GB, free: 24.72 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.5096, allocations: 1.251 MB / 0.5626 GB, free: 24.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.5096, allocations: 192 / 0.5626 GB, free: 24.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.485e-05/0.5097, allocations: 30.25 kB / 0.5627 GB, free: 24.44 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.5097, allocations: 15.62 kB / 0.5627 GB, free: 24.44 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.5115, allocations: 1.866 MB / 0.5645 GB, free: 24.17 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004352/0.5158, allocations: 3.617 MB / 0.568 GB, free: 22.76 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001402/0.5172, allocations: 1.318 MB / 0.5693 GB, free: 22.48 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000479/0.5177, allocations: 0.5272 MB / 0.5698 GB, free: 22.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001856/0.5179, allocations: 163.1 kB / 0.57 GB, free: 22.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.518, allocations: 49.81 kB / 0.57 GB, free: 22.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 2.615e-06/0.518, allocations: 0 / 0.57 GB, free: 22.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=87): time 0.02119/0.5392, allocations: 5.087 MB / 0.575 GB, free: 20.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.064e-05/0.5393, allocations: 60.16 kB / 0.5751 GB, free: 20.87 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001369/0.5407, allocations: 0.8153 MB / 0.5759 GB, free: 20.64 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.5408, allocations: 40.08 kB / 0.5759 GB, free: 20.61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002898/0.5411, allocations: 365.2 kB / 0.5762 GB, free: 20.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002803/0.5414, allocations: 304.2 kB / 0.5765 GB, free: 20.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.758e-05/0.5415, allocations: 22.5 kB / 0.5766 GB, free: 20.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002283/0.5417, allocations: 382.5 kB / 0.5769 GB, free: 19.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.5431, allocations: 0.6673 MB / 0.5776 GB, free: 19.76 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.5445, allocations: 0.7746 MB / 0.5783 GB, free: 19.58 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/0.5473, allocations: 1.394 MB / 0.5797 GB, free: 19.37 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.5474, allocations: 0 / 0.5797 GB, free: 19.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.008011/0.5554, allocations: 1.943 MB / 0.5816 GB, free: 18.58 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.5554, allocations: 3.75 kB / 0.5816 GB, free: 18.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.5555, allocations: 3.875 kB / 0.5816 GB, free: 18.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004395/0.5599, allocations: 364.1 kB / 0.5819 GB, free: 18.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.5614, allocations: 201 kB / 0.5821 GB, free: 18.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008228/0.5696, allocations: 3.871 MB / 0.5859 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.5711, allocations: 43.55 kB / 0.586 GB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.5713, allocations: 38.61 kB / 0.586 GB, free: 14.62 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.0005883/0.5719, allocations: 220.6 kB / 0.5862 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002271/0.5721, allocations: 81.25 kB / 0.5863 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007311/0.5794, allocations: 1.697 MB / 0.5879 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.5795, allocations: 9.062 kB / 0.5879 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.5795, allocations: 7.094 kB / 0.588 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.527e-05/0.5795, allocations: 3.984 kB / 0.588 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006135/0.5857, allocations: 3.177 MB / 0.5911 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.5857, allocations: 3.188 kB / 0.5911 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006272/0.5864, allocations: 163 kB / 0.5912 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002507/0.5889, allocations: 364.2 kB / 0.5916 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.965e-05/0.589, allocations: 27.67 kB / 0.5916 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004911/0.5939, allocations: 3.826 MB / 0.5953 GB, free: 7.477 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5939, allocations: 7.812 kB / 0.5953 GB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005092/0.599, allocations: 2.46 MB / 0.5977 GB, free: 6.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002869/0.5993, allocations: 159 kB / 0.5979 GB, free: 5.867 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.911e-05/0.5994, allocations: 23.52 kB / 0.5979 GB, free: 5.852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.6, allocations: 35.2 kB / 0.5979 GB, free: 5.832 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.6001, allocations: 75.62 kB / 0.598 GB, free: 5.793 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.091e-05/0.6002, allocations: 33.83 kB / 0.598 GB, free: 5.781 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006968/0.6009, allocations: 0.6016 MB / 0.5986 GB, free: 5.27 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6009, allocations: 4 kB / 0.5986 GB, free: 5.266 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001271/0.6022, allocations: 495.6 kB / 0.5991 GB, free: 4.781 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.0009502/0.6031, allocations: 0.5644 MB / 0.5997 GB, free: 4.266 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002212/0.6053, allocations: 1.63 MB / 0.6013 GB, free: 2.605 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.6054, allocations: 0 / 0.6013 GB, free: 2.605 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.6064, allocations: 0.8829 MB / 0.6021 GB, free: 1.699 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.608, allocations: 274.3 kB / 0.6024 GB, free: 1.441 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.611, allocations: 2.313 MB / 0.6046 GB, free: 15.06 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005979/0.6117, allocations: 0.9592 MB / 0.6056 GB, free: 14.08 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006068/0.6123, allocations: 142.5 kB / 0.6057 GB, free: 13.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002088/0.6125, allocations: 83.41 kB / 0.6058 GB, free: 13.85 MB / 410.7 MB Notification: Performance of SimCode: time 1.814e-06/0.6125, allocations: 4 kB / 0.6058 GB, free: 13.85 MB / 410.7 MB Notification: Performance of Templates: time 0.03479/0.6473, allocations: 21.68 MB / 0.627 GB, free: 8.297 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)