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/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 194.7 kB / 16.14 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2276/0.2276, allocations: 15.3 MB / 305.3 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 67.89 kB / 369.6 MB, free: 4.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1043, allocations: 53.61 MB / 423.2 MB, free: 14.79 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.AcidBaseBufferTest): time 0.3688/0.4731, allocations: 23.85 MB / 447.1 MB, free: 39.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008227/0.4814, allocations: 10.08 MB / 457.2 MB, free: 34.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000655/0.4821, allocations: 16.69 kB / 457.2 MB, free: 34.92 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006426/0.4827, allocations: 221.1 kB / 457.4 MB, free: 34.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.4839, allocations: 0.5149 MB / 457.9 MB, free: 34.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003022/0.4869, allocations: 1.264 MB / 459.2 MB, free: 33.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007287/0.4877, allocations: 0.9078 MB / 460.1 MB, free: 33.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003997/0.4881, allocations: 443.7 kB / 460.5 MB, free: 33.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003341/0.4884, allocations: 399 kB / 460.9 MB, free: 33.58 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003724/0.4888, allocations: 456.5 kB / 461.4 MB, free: 33.49 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.324e-05/0.4889, allocations: 53.38 kB / 461.4 MB, free: 33.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002273/0.4912, allocations: 1.02 MB / 462.4 MB, free: 33.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.4913, allocations: 159.7 kB / 462.6 MB, free: 33.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000262/0.4916, allocations: 407 kB / 463 MB, free: 33.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002144/0.4937, allocations: 1.854 MB / 464.8 MB, free: 32.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.748e-06/0.4938, allocations: 0 / 464.8 MB, free: 32.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.4938, allocations: 0 / 464.8 MB, free: 32.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.4938, allocations: 0 / 464.8 MB, free: 32.31 MB / 366.1 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.001774/0.4956, allocations: 1.216 MB / 466.1 MB, free: 31.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.4956, allocations: 17.12 kB / 466.1 MB, free: 31.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007701/0.4964, allocations: 208 kB / 466.3 MB, free: 31.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005118/0.4969, allocations: 471 kB / 466.7 MB, free: 31.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/0.497, allocations: 50.22 kB / 466.8 MB, free: 31.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.4971, allocations: 71.94 kB / 466.9 MB, free: 31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.4984, allocations: 1.088 MB / 467.9 MB, free: 30.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.4985, allocations: 3.938 kB / 467.9 MB, free: 30.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.035e-05/0.4985, allocations: 30.44 kB / 468 MB, free: 30.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.4986, allocations: 15.81 kB / 468 MB, free: 30.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001774/0.5003, allocations: 1.514 MB / 469.5 MB, free: 30.01 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003994/0.5043, allocations: 3.004 MB / 472.5 MB, free: 28.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.5056, allocations: 0.989 MB / 473.5 MB, free: 27.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004246/0.5061, allocations: 383.6 kB / 473.9 MB, free: 27.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002999/0.5091, allocations: 2.468 MB / 476.3 MB, free: 26.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.5091, allocations: 37.03 kB / 476.4 MB, free: 26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=51): time 1.754e-06/0.5091, allocations: 0 / 476.4 MB, free: 26 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.01429/0.5234, allocations: 3.486 MB / 479.9 MB, free: 24.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.5235, allocations: 66.88 kB / 479.9 MB, free: 24.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007613/0.5242, allocations: 0.6921 MB / 480.6 MB, free: 24.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.5243, allocations: 39.89 kB / 480.7 MB, free: 24.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.5244, allocations: 346.9 kB / 481 MB, free: 23.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.5246, allocations: 238.6 kB / 481.2 MB, free: 23.63 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/0.5248, allocations: 157 kB / 481.4 MB, free: 23.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.349e-05/0.5249, allocations: 370.8 kB / 481.7 MB, free: 23.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005761/0.5255, allocations: 442.8 kB / 482.2 MB, free: 23.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006701/0.5262, allocations: 0.587 MB / 482.8 MB, free: 22.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.5274, allocations: 0.9804 MB / 483.7 MB, free: 22.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5274, allocations: 1.188 kB / 483.7 MB, free: 22.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003801/0.5312, allocations: 1.403 MB / 485.1 MB, free: 21.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.5313, allocations: 6.812 kB / 485.2 MB, free: 21.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.5313, allocations: 5.25 kB / 485.2 MB, free: 21.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002085/0.5334, allocations: 264.9 kB / 485.4 MB, free: 21.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007583/0.5341, allocations: 198.2 kB / 485.6 MB, free: 21.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004352/0.5385, allocations: 3.735 MB / 489.3 MB, free: 18.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007375/0.5393, allocations: 46.19 kB / 489.4 MB, free: 18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.99e-05/0.5393, allocations: 40.45 kB / 489.4 MB, free: 18 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (94): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002977/0.5397, allocations: 203.4 kB / 489.6 MB, free: 17.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.5398, allocations: 56.31 kB / 489.7 MB, free: 17.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003662/0.5435, allocations: 1.198 MB / 490.9 MB, free: 17.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.5435, allocations: 6.875 kB / 490.9 MB, free: 17.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.5435, allocations: 6.172 kB / 490.9 MB, free: 17.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.5435, allocations: 7.734 kB / 490.9 MB, free: 17.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004969/0.5485, allocations: 2.154 MB / 493.1 MB, free: 16.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.5485, allocations: 5.141 kB / 493.1 MB, free: 16.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005591/0.5491, allocations: 141.3 kB / 493.2 MB, free: 16.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002034/0.5511, allocations: 263.7 kB / 493.5 MB, free: 16.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.488e-05/0.5512, allocations: 24.42 kB / 493.5 MB, free: 16.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003793/0.555, allocations: 3.675 MB / 497.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.555, allocations: 0 / 497.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003674/0.5587, allocations: 1.655 MB / 498.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003232/0.559, allocations: 194.3 kB / 499 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.322e-05/0.5591, allocations: 19.66 kB / 499 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004406/0.5596, allocations: 26.14 kB / 499 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.5597, allocations: 54.05 kB / 499.1 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.884e-05/0.5598, allocations: 33.19 kB / 499.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004655/0.5602, allocations: 0.5085 MB / 499.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5603, allocations: 0 / 499.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001288/0.5615, allocations: 443.5 kB / 0.4884 GB, free: 11.3 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007529/0.5623, allocations: 0.5227 MB / 0.4889 GB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.5639, allocations: 1.19 MB / 0.49 GB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5639, allocations: 0 / 0.49 GB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006979/0.5646, allocations: 0.6736 MB / 0.4907 GB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008063/0.5654, allocations: 148.9 kB / 0.4908 GB, free: 9.988 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002102/0.5675, allocations: 1.829 MB / 0.4926 GB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.5678, allocations: 0.9162 MB / 0.4935 GB, free: 8.102 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005266/0.5684, allocations: 132.1 kB / 0.4936 GB, free: 8.055 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/0.5686, allocations: 89.25 kB / 0.4937 GB, free: 8.047 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.5686, allocations: 0 / 0.4937 GB, free: 8.047 MB / 366.1 MB Notification: Performance of Templates: time 0.02447/0.5931, allocations: 17.17 MB / 0.5105 GB, free: 11.87 MB / 382.1 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)