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.001112/0.001112, allocations: 97.88 kB / 16.35 MB, free: 5.824 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.001131/0.001131, allocations: 191.5 kB / 17.29 MB, free: 5.48 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.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08449/0.08449, allocations: 15.31 MB / 306.5 MB, free: 15.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 61.56 kB / 371.7 MB, free: 50.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0881/0.08945, allocations: 53.61 MB / 425.4 MB, free: 13.34 MB / 302.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.02744/0.1169, allocations: 23.88 MB / 449.2 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0116/0.1285, allocations: 10.09 MB / 459.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005064/0.1291, allocations: 11.94 kB / 459.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000695/0.1298, allocations: 234.3 kB / 459.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001271/0.1311, allocations: 0.5701 MB / 460.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003484/0.1346, allocations: 1.44 MB / 461.6 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001175/0.1358, allocations: 0.9545 MB / 462.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000573/0.1363, allocations: 0.5009 MB / 463 MB, free: 7.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004746/0.1368, allocations: 422.8 kB / 463.4 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005558/0.1374, allocations: 478.3 kB / 463.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.1375, allocations: 88 kB / 464 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002727/0.1403, allocations: 1.041 MB / 465 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001985/0.1405, allocations: 195.4 kB / 465.2 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004473/0.1409, allocations: 430 kB / 465.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003357/0.1443, allocations: 1.985 MB / 467.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1443, allocations: 4 kB / 467.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1443, allocations: 0 / 467.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.1443, allocations: 0 / 467.6 MB, free: 3.109 MB / 334.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.001981/0.1463, allocations: 1.209 MB / 468.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1464, allocations: 8.031 kB / 468.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008047/0.1472, allocations: 207.5 kB / 469 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006759/0.1479, allocations: 493.6 kB / 469.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.546e-05/0.1479, allocations: 54.31 kB / 469.6 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.148, allocations: 68.38 kB / 469.6 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.1494, allocations: 1.087 MB / 470.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.1495, allocations: 0 / 470.7 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.268e-05/0.1495, allocations: 28 kB / 470.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.1496, allocations: 16 kB / 470.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.1514, allocations: 1.515 MB / 472.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004486/0.1559, allocations: 2.998 MB / 475.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.1574, allocations: 0.9933 MB / 476.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004856/0.1579, allocations: 386.3 kB / 476.7 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003514/0.1614, allocations: 2.464 MB / 479.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.1614, allocations: 39 kB / 479.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 1.954e-06/0.1614, allocations: 0 / 479.2 MB, free: 7.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.0148/0.1763, allocations: 3.489 MB / 482.7 MB, free: 3.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.1763, allocations: 59.97 kB / 482.7 MB, free: 3.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008004/0.1771, allocations: 0.6892 MB / 483.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.276e-05/0.1772, allocations: 41.64 kB / 483.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.1774, allocations: 347.5 kB / 483.8 MB, free: 2.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/0.1776, allocations: 232.6 kB / 484 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002581/0.1779, allocations: 150.5 kB / 484.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1781, allocations: 374.8 kB / 484.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005869/0.1787, allocations: 445.8 kB / 485 MB, free: 1.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006809/0.1794, allocations: 0.5886 MB / 485.5 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001221/0.1806, allocations: 0.9694 MB / 486.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.1806, allocations: 4 kB / 486.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003793/0.1844, allocations: 1.405 MB / 487.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.1844, allocations: 11.98 kB / 487.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.1845, allocations: 8 kB / 487.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002113/0.1866, allocations: 262.3 kB / 488.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007468/0.1873, allocations: 195.7 kB / 488.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005098/0.1925, allocations: 3.954 MB / 492.3 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006163/0.1931, allocations: 20 kB / 492.4 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.053e-05/0.1932, allocations: 43.92 kB / 492.4 MB, free: 9.312 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.0003254/0.1935, allocations: 205.6 kB / 492.6 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.1937, allocations: 67.17 kB / 492.7 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003583/0.1973, allocations: 1.197 MB / 493.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.1973, allocations: 8.141 kB / 493.9 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.1973, allocations: 8 kB / 493.9 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.1973, allocations: 11.97 kB / 493.9 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004658/0.202, allocations: 2.149 MB / 496 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.202, allocations: 0 / 496 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005516/0.2025, allocations: 135.9 kB / 496.2 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/0.2046, allocations: 266.2 kB / 496.4 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.65e-05/0.2046, allocations: 27.98 kB / 496.5 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004716/0.2094, allocations: 3.907 MB / 0.4886 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.2094, allocations: 8.094 kB / 0.4887 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003953/0.2134, allocations: 1.65 MB / 0.4903 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003107/0.2137, allocations: 192.4 kB / 0.4904 GB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.71e-05/0.2138, allocations: 15.94 kB / 0.4905 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004143/0.2142, allocations: 15.94 kB / 0.4905 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.2144, allocations: 60.48 kB / 0.4905 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.232e-05/0.2144, allocations: 27.98 kB / 0.4906 GB, free: 14.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005147/0.2149, allocations: 0.5069 MB / 0.4911 GB, free: 14.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.634e-06/0.2149, allocations: 0 / 0.4911 GB, free: 14.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001141/0.2161, allocations: 439.7 kB / 0.4915 GB, free: 13.96 MB / 382.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.0008321/0.2169, allocations: 0.5188 MB / 0.492 GB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.2187, allocations: 1.197 MB / 0.4932 GB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2187, allocations: 0 / 0.4932 GB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008621/0.2196, allocations: 0.6731 MB / 0.4938 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007916/0.2204, allocations: 180.6 kB / 0.494 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002244/0.2226, allocations: 1.517 MB / 0.4955 GB, free: 9.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004665/0.2231, allocations: 0.9187 MB / 0.4964 GB, free: 8.824 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004338/0.2235, allocations: 132.9 kB / 0.4965 GB, free: 8.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.2237, allocations: 87.39 kB / 0.4966 GB, free: 8.605 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2238, allocations: 0 / 0.4966 GB, free: 8.605 MB / 382.1 MB Notification: Performance of Templates: time 0.1932/0.417, allocations: 17.92 MB / 0.5141 GB, free: 77.17 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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe 2>&1)