Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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) 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) Running command: translateModel(Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest") translateModel(Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001741/0.001741, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 239.7 MB, free: 11 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.001055/0.001055, allocations: 110.3 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.4119/0.4119, allocations: 36.67 MB / 376.7 MB, free: 41.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 67.91 kB / 446.4 MB, free: 11.81 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1321, allocations: 58.91 MB / 0.4935 GB, free: 0.8438 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Chemical.mo:2986:6-2986: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/Physiolibrary 3.0.0-master/Chemical.mo:2986:6-2986: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(Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest): time 0.284/0.4161, allocations: 22.01 MB / 0.515 GB, free: 34.64 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.428, allocations: 10.07 MB / 0.5248 GB, free: 27.95 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.4293, allocations: 17.03 kB / 0.5248 GB, free: 27.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009352/0.4303, allocations: 209.8 kB / 0.525 GB, free: 27.84 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001921/0.4322, allocations: 0.5031 MB / 0.5255 GB, free: 27.53 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00457/0.4368, allocations: 1.262 MB / 0.5268 GB, free: 26.79 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.4385, allocations: 0.921 MB / 0.5277 GB, free: 26.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006839/0.4392, allocations: 431.9 kB / 0.5281 GB, free: 26.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006755/0.4398, allocations: 396.5 kB / 0.5284 GB, free: 26.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006438/0.4405, allocations: 455.8 kB / 0.5289 GB, free: 25.84 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.4406, allocations: 53.25 kB / 0.5289 GB, free: 25.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005513/0.4461, allocations: 1.005 MB / 0.5299 GB, free: 25.58 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002651/0.4464, allocations: 169.5 kB / 0.5301 GB, free: 25.48 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006256/0.4471, allocations: 398.5 kB / 0.5305 GB, free: 25.27 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006103/0.4532, allocations: 1.907 MB / 0.5323 GB, free: 24.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.383e-05/0.4533, allocations: 8.438 kB / 0.5323 GB, free: 24.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.4533, allocations: 0 / 0.5323 GB, free: 24.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.4533, allocations: 0 / 0.5323 GB, free: 24.46 MB / 378.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.002594/0.4559, allocations: 1.192 MB / 0.5335 GB, free: 23.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.4559, allocations: 12.17 kB / 0.5335 GB, free: 23.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008486/0.4568, allocations: 202.1 kB / 0.5337 GB, free: 23.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006617/0.4575, allocations: 488.2 kB / 0.5342 GB, free: 23.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.091e-05/0.4575, allocations: 57.55 kB / 0.5342 GB, free: 23.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.4577, allocations: 68.41 kB / 0.5343 GB, free: 23.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.4592, allocations: 1.084 MB / 0.5353 GB, free: 22.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.4592, allocations: 0 / 0.5353 GB, free: 22.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.026e-05/0.4592, allocations: 25.41 kB / 0.5354 GB, free: 22.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.904e-05/0.4593, allocations: 16.47 kB / 0.5354 GB, free: 22.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/0.4612, allocations: 1.516 MB / 0.5369 GB, free: 22.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004691/0.4659, allocations: 3.024 MB / 0.5398 GB, free: 20.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.4674, allocations: 1.007 MB / 0.5408 GB, free: 20.01 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005111/0.468, allocations: 385.7 kB / 0.5412 GB, free: 19.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003853/0.4718, allocations: 2.464 MB / 0.5436 GB, free: 18.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.4719, allocations: 37.28 kB / 0.5436 GB, free: 18.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 3.005e-06/0.4719, allocations: 4 kB / 0.5436 GB, free: 18.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=68): time 0.01508/0.487, allocations: 3.483 MB / 0.547 GB, free: 16.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.4871, allocations: 59.97 kB / 0.5471 GB, free: 16.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007885/0.4879, allocations: 0.7005 MB / 0.5477 GB, free: 15.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.685e-05/0.4879, allocations: 41.64 kB / 0.5478 GB, free: 15.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.4881, allocations: 347 kB / 0.5481 GB, free: 15.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.4883, allocations: 233.7 kB / 0.5483 GB, free: 15.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002525/0.4886, allocations: 153 kB / 0.5485 GB, free: 15.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.4887, allocations: 369.5 kB / 0.5488 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/0.4893, allocations: 444.8 kB / 0.5493 GB, free: 14.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006233/0.4899, allocations: 0.5899 MB / 0.5498 GB, free: 13.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001062/0.491, allocations: 0.9722 MB / 0.5508 GB, free: 12.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.491, allocations: 0 / 0.5508 GB, free: 12.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003383/0.4944, allocations: 1.412 MB / 0.5522 GB, free: 11.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.4944, allocations: 8 kB / 0.5522 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.4944, allocations: 4 kB / 0.5522 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001948/0.4964, allocations: 271 kB / 0.5524 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006878/0.4971, allocations: 192 kB / 0.5526 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004022/0.5011, allocations: 3.748 MB / 0.5563 GB, free: 7.465 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008444/0.502, allocations: 36.86 kB / 0.5563 GB, free: 7.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.273e-05/0.5021, allocations: 36.08 kB / 0.5564 GB, free: 7.402 MB / 378.7 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.000326/0.5024, allocations: 212.5 kB / 0.5566 GB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001462/0.5026, allocations: 67.17 kB / 0.5566 GB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003346/0.5059, allocations: 1.2 MB / 0.5578 GB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.506, allocations: 8.656 kB / 0.5578 GB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.506, allocations: 0 / 0.5578 GB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.506, allocations: 8.016 kB / 0.5578 GB, free: 6.086 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004556/0.5105, allocations: 2.157 MB / 0.5599 GB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.5106, allocations: 0 / 0.5599 GB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005073/0.5111, allocations: 138.3 kB / 0.56 GB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001853/0.513, allocations: 266.1 kB / 0.5603 GB, free: 3.902 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.202e-05/0.513, allocations: 17.97 kB / 0.5603 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003827/0.5169, allocations: 3.679 MB / 0.5639 GB, free: 68 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5169, allocations: 0 / 0.5639 GB, free: 68 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01964/0.5365, allocations: 7.376 MB / 0.5711 GB, free: 9.246 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004754/0.5371, allocations: 198.5 kB / 0.5713 GB, free: 9.059 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.5372, allocations: 15.94 kB / 0.5713 GB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005769/0.5378, allocations: 40.73 kB / 0.5714 GB, free: 9.008 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002188/0.5381, allocations: 54.47 kB / 0.5714 GB, free: 8.973 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.457e-05/0.5382, allocations: 22.77 kB / 0.5714 GB, free: 8.953 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007647/0.5389, allocations: 0.5103 MB / 0.5719 GB, free: 8.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5389, allocations: 0 / 0.5719 GB, free: 8.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002432/0.5414, allocations: 0.5159 MB / 0.5724 GB, free: 7.992 MB / 394.7 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.00171/0.5431, allocations: 0.5258 MB / 0.5729 GB, free: 7.508 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.5456, allocations: 1.179 MB / 0.5741 GB, free: 6.414 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.5456, allocations: 4.062 kB / 0.5741 GB, free: 6.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.5469, allocations: 0.6831 MB / 0.5748 GB, free: 5.754 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.5482, allocations: 147.6 kB / 0.5749 GB, free: 5.641 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004142/0.5524, allocations: 2.366 MB / 0.5772 GB, free: 3.285 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006989/0.5531, allocations: 0.9346 MB / 0.5781 GB, free: 2.32 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008824/0.554, allocations: 144.2 kB / 0.5783 GB, free: 2.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003561/0.5544, allocations: 95.38 kB / 0.5784 GB, free: 2.086 MB / 394.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5544, allocations: 3.938 kB / 0.5784 GB, free: 2.082 MB / 394.7 MB Notification: Performance of Templates: time 0.03358/0.588, allocations: 19.86 MB / 0.5978 GB, free: 14.3 MB / 426.7 MB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe 2>&1)