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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.0009314/0.0009313, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.0008983/0.0008983, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 223.2 MB / 239.9 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.182/0.182, allocations: 15.27 MB / 306.2 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003094/0.0003097, allocations: 8 kB / 371.4 MB, free: 3.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3102, allocations: 54.62 MB / 426 MB, free: 39.91 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011: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.0-master/package.mo:3011:6-3011: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.00755/0.3178, allocations: 4.266 MB / 430.2 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01343/0.3313, allocations: 8.6 MB / 438.8 MB, free: 33.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.3324, allocations: 16.91 kB / 438.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.3336, allocations: 218.4 kB / 439.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002743/0.3363, allocations: 0.6453 MB / 439.7 MB, free: 33.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005006/0.3414, allocations: 1.29 MB / 441 MB, free: 32.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001503/0.3429, allocations: 0.6363 MB / 441.6 MB, free: 32.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007071/0.3436, allocations: 414 kB / 442.1 MB, free: 32.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00066/0.3443, allocations: 329.4 kB / 442.4 MB, free: 31.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008122/0.3452, allocations: 404.8 kB / 442.8 MB, free: 31.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001928/0.3454, allocations: 45.88 kB / 442.8 MB, free: 31.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004912/0.3503, allocations: 1.167 MB / 444 MB, free: 31.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000344/0.3507, allocations: 139.1 kB / 444.1 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000527/0.3512, allocations: 163.8 kB / 444.3 MB, free: 31.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003479/0.3547, allocations: 1.192 MB / 445.5 MB, free: 31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3548, allocations: 0 / 445.5 MB, free: 31 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3548, allocations: 0 / 445.5 MB, free: 31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.706e-05/0.3548, allocations: 4 kB / 445.5 MB, free: 30.99 MB / 350.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.002625/0.3575, allocations: 1.057 MB / 446.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.3575, allocations: 9.625 kB / 446.5 MB, free: 30.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009812/0.3585, allocations: 215 kB / 446.7 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009234/0.3595, allocations: 447.4 kB / 447.2 MB, free: 29.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.58e-05/0.3595, allocations: 51.69 kB / 447.2 MB, free: 29.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002038/0.3597, allocations: 72.06 kB / 447.3 MB, free: 29.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.3614, allocations: 1.068 MB / 448.4 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.3614, allocations: 3.328 kB / 448.4 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.713e-05/0.3615, allocations: 30.03 kB / 448.4 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.3615, allocations: 14.72 kB / 448.4 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.3633, allocations: 1.506 MB / 449.9 MB, free: 28.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004449/0.3677, allocations: 3.012 MB / 452.9 MB, free: 27.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.369, allocations: 0.9883 MB / 453.9 MB, free: 26.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003295/0.3723, allocations: 2.415 MB / 456.3 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.3724, allocations: 42.19 kB / 456.4 MB, free: 24.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.494e-06/0.3724, allocations: 0 / 456.4 MB, free: 24.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.01548/0.3879, allocations: 3.527 MB / 459.9 MB, free: 23.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.388, allocations: 66.73 kB / 460 MB, free: 23.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.3891, allocations: 0.6916 MB / 460.7 MB, free: 23.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.72e-05/0.3892, allocations: 36.05 kB / 460.7 MB, free: 23.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002676/0.3895, allocations: 350 kB / 461 MB, free: 22.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002434/0.3897, allocations: 232.2 kB / 461.3 MB, free: 22.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.901e-05/0.3898, allocations: 18.38 kB / 461.3 MB, free: 22.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.3899, allocations: 368.6 kB / 461.7 MB, free: 22.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006739/0.3906, allocations: 442.3 kB / 462.1 MB, free: 22.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008379/0.3915, allocations: 0.5833 MB / 462.7 MB, free: 21.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008541/0.3923, allocations: 0.489 MB / 463.2 MB, free: 21.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.291e-05/0.3924, allocations: 1.219 kB / 463.2 MB, free: 21.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.004259/0.3966, allocations: 1.41 MB / 464.6 MB, free: 20.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.3967, allocations: 6.875 kB / 464.6 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/0.3967, allocations: 12.97 kB / 464.6 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002282/0.399, allocations: 282.8 kB / 464.9 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009094/0.3999, allocations: 193.1 kB / 465 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005154/0.4051, allocations: 3.785 MB / 468.8 MB, free: 17.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008281/0.4059, allocations: 34.33 kB / 468.9 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.4061, allocations: 39.95 kB / 468.9 MB, free: 17.31 MB / 350.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 (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 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004223/0.4065, allocations: 207.4 kB / 469.1 MB, free: 17.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.4067, allocations: 63.64 kB / 469.2 MB, free: 17.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003835/0.4106, allocations: 1.21 MB / 470.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.4106, allocations: 7.469 kB / 470.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.4106, allocations: 2.609 kB / 470.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.4106, allocations: 3.766 kB / 470.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005272/0.4159, allocations: 2.174 MB / 472.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.4159, allocations: 3.156 kB / 472.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005874/0.4165, allocations: 134.1 kB / 472.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/0.4188, allocations: 278.8 kB / 473 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-05/0.4189, allocations: 24.77 kB / 473 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004357/0.4232, allocations: 3.733 MB / 476.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4233, allocations: 7.094 kB / 476.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004345/0.4276, allocations: 1.72 MB / 478.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004412/0.4281, allocations: 197.7 kB / 478.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.4283, allocations: 18.02 kB / 478.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005648/0.4288, allocations: 30.39 kB / 478.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.429, allocations: 64.14 kB / 478.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-05/0.4291, allocations: 26.23 kB / 478.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006479/0.4298, allocations: 0.4998 MB / 479.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4298, allocations: 4 kB / 479.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00174/0.4315, allocations: 427.1 kB / 479.7 MB, free: 10.49 MB / 350.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 (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 2,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001309/0.4329, allocations: 0.5137 MB / 480.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.4349, allocations: 1.191 MB / 481.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4349, allocations: 0 / 481.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009393/0.4358, allocations: 0.6735 MB / 482.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008088/0.4366, allocations: 142.1 kB / 482.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.4393, allocations: 1.874 MB / 484.1 MB, free: 8.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.4397, allocations: 0.9244 MB / 485 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005981/0.4403, allocations: 145.3 kB / 485.2 MB, free: 7.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/0.4406, allocations: 86.2 kB / 485.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of SimCode: time 4.5e-07/0.4406, allocations: 0 / 485.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of Templates: time 0.02573/0.4663, allocations: 16.46 MB / 0.4899 GB, free: 8.984 MB / 366.1 MB make -j1 -f Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: