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.1573/0.1573, allocations: 15.25 MB / 27.81 MB, free: 5.41 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.001058/0.001058, allocations: 184.4 kB / 32.7 MB, free: 0.5273 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.437/1.437, allocations: 221.4 MB / 258.8 MB, free: 68 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009114/0.0009113, allocations: 100.2 kB / 314 MB, free: 15.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.929e-05/3.931e-05, allocations: 4 kB / 376.5 MB, free: 1.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3248, allocations: 54.6 MB / 431.1 MB, free: 50.12 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.132/0.4569, allocations: 100.8 MB / 0.5194 GB, free: 14.47 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.4572, allocations: 71.97 kB / 0.5195 GB, free: 14.4 MB / 394.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.08309/0.5403, allocations: 31.89 MB / 0.5506 GB, free: 14.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.5403, allocations: 4 kB / 0.5506 GB, free: 14.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.001e-05/0.5404, allocations: 15.98 kB / 0.5507 GB, free: 14.68 MB / 426.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.002094/0.5425, allocations: 1.087 MB / 0.5517 GB, free: 13.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.5425, allocations: 8.031 kB / 0.5517 GB, free: 13.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008521/0.5434, allocations: 234.5 kB / 0.552 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.5446, allocations: 0.6042 MB / 0.5525 GB, free: 12.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.837e-05/0.5447, allocations: 49.94 kB / 0.5526 GB, free: 12.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.5448, allocations: 72 kB / 0.5527 GB, free: 12.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.5465, allocations: 1.235 MB / 0.5539 GB, free: 11.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.5465, allocations: 0 / 0.5539 GB, free: 11.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.318e-05/0.5466, allocations: 28 kB / 0.5539 GB, free: 11.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.5466, allocations: 16 kB / 0.5539 GB, free: 11.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002086/0.5487, allocations: 1.835 MB / 0.5557 GB, free: 9.406 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006259/0.555, allocations: 3.621 MB / 0.5592 GB, free: 5.676 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00191/0.5569, allocations: 1.318 MB / 0.5605 GB, free: 4.332 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006546/0.5576, allocations: 0.5223 MB / 0.561 GB, free: 3.809 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000249/0.5578, allocations: 168.2 kB / 0.5612 GB, free: 3.645 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.5579, allocations: 35.12 kB / 0.5612 GB, free: 3.598 MB / 426.7 MB Notification: Performance of pre-optimization done (n=66): time 2.795e-06/0.5579, allocations: 0 / 0.5612 GB, free: 3.598 MB / 426.7 MB Notification: Performance of matching and sorting (n=91): time 0.02002/0.5779, allocations: 4.97 MB / 0.5661 GB, free: 14.56 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007012/0.585, allocations: 3.955 MB / 0.5699 GB, free: 10.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009685/0.586, allocations: 0.747 MB / 0.5707 GB, free: 9.547 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001917/0.5862, allocations: 41.7 kB / 0.5707 GB, free: 9.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002489/0.5864, allocations: 364.2 kB / 0.5711 GB, free: 9.137 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000274/0.5867, allocations: 307.4 kB / 0.5714 GB, free: 8.832 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.695e-05/0.5868, allocations: 23.98 kB / 0.5714 GB, free: 8.809 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.587, allocations: 386.9 kB / 0.5717 GB, free: 8.422 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008843/0.5879, allocations: 0.7048 MB / 0.5724 GB, free: 7.715 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009759/0.5888, allocations: 0.8157 MB / 0.5732 GB, free: 6.871 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001169/0.59, allocations: 0.7545 MB / 0.574 GB, free: 6.117 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.5901, allocations: 4 kB / 0.574 GB, free: 6.113 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004891/0.595, allocations: 2.014 MB / 0.5759 GB, free: 4.082 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.595, allocations: 9.234 kB / 0.5759 GB, free: 4.074 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/0.595, allocations: 4 kB / 0.576 GB, free: 4.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002458/0.5975, allocations: 338 kB / 0.5763 GB, free: 3.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009924/0.5985, allocations: 215.7 kB / 0.5765 GB, free: 3.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2611/0.8596, allocations: 3.824 MB / 0.5802 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.861, allocations: 61.86 kB / 0.5803 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.8612, allocations: 43.58 kB / 0.5803 GB, free: 109.5 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * 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.0002187/0.8614, allocations: 154.7 kB / 0.5805 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.8616, allocations: 80.02 kB / 0.5805 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006152/0.8678, allocations: 1.91 MB / 0.5824 GB, free: 109.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005554/0.8734, allocations: 1.68 MB / 0.584 GB, free: 109.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.8734, allocations: 1.156 kB / 0.584 GB, free: 109.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/0.8734, allocations: 3.469 kB / 0.584 GB, free: 109.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008535/0.882, allocations: 3.664 MB / 0.5876 GB, free: 108.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.098e-05/0.882, allocations: 5.344 kB / 0.5876 GB, free: 108.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006397/0.8827, allocations: 172.6 kB / 0.5878 GB, free: 108.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004004/0.8867, allocations: 0.5109 MB / 0.5883 GB, free: 108.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.8868, allocations: 31.12 kB / 0.5883 GB, free: 108.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005992/0.8928, allocations: 4.442 MB / 0.5927 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004371/0.8972, allocations: 2.093 MB / 0.5947 GB, free: 104.3 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006317/0.9036, allocations: 2.813 MB / 0.5975 GB, free: 103.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003988/0.904, allocations: 178 kB / 0.5976 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/0.9041, allocations: 22.38 kB / 0.5976 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005684/0.9047, allocations: 47.28 kB / 0.5977 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/0.9049, allocations: 94.2 kB / 0.5978 GB, free: 103.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.56e-05/0.905, allocations: 32.5 kB / 0.5978 GB, free: 103.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000735/0.9057, allocations: 0.6 MB / 0.5984 GB, free: 103.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.9057, allocations: 1.625 kB / 0.5984 GB, free: 103.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001777/0.9075, allocations: 0.5294 MB / 0.5989 GB, free: 103.3 MB / 442.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 (90): * Single equations (assignments): 87 * 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.001099/0.9086, allocations: 0.5664 MB / 0.5995 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002552/0.9112, allocations: 1.664 MB / 0.6011 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.9112, allocations: 2.344 kB / 0.6011 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.9126, allocations: 0.9277 MB / 0.602 GB, free: 102.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001477/0.9141, allocations: 273.5 kB / 0.6023 GB, free: 102.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.9168, allocations: 1.644 MB / 0.6039 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006344/0.9174, allocations: 1.001 MB / 0.6048 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007865/0.9182, allocations: 156.2 kB / 0.605 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002533/0.9185, allocations: 85.7 kB / 0.6051 GB, free: 101.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.272e-06/0.9185, allocations: 1.312 kB / 0.6051 GB, free: 101.4 MB / 442.7 MB Notification: Performance of Templates: time 0.03259/0.9511, allocations: 22.9 MB / 0.6274 GB, free: 99.46 MB / 442.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)