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.001224/0.001225, allocations: 114.3 kB / 16.39 MB, free: 6.469 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.001168/0.001168, allocations: 190.2 kB / 17.31 MB, free: 5.773 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.21/1.21, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.06696/0.06696, allocations: 15.3 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 67.89 kB / 425.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08143/0.08282, allocations: 53.61 MB / 479.4 MB, free: 5.812 MB / 350.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.02759/0.1104, allocations: 23.89 MB / 0.4915 GB, free: 14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009363/0.1198, allocations: 10.08 MB / 0.5014 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000369/0.1202, allocations: 11.94 kB / 0.5014 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005142/0.1207, allocations: 238.2 kB / 0.5016 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009914/0.1217, allocations: 0.5702 MB / 0.5021 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002516/0.1243, allocations: 1.44 MB / 0.5036 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008026/0.1251, allocations: 0.9429 MB / 0.5045 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004622/0.1256, allocations: 0.5126 MB / 0.505 GB, free: 148 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1745/0.3001, allocations: 414.1 kB / 0.5054 GB, free: 19.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006743/0.3008, allocations: 470.8 kB / 0.5058 GB, free: 19.76 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001259/0.3009, allocations: 87.72 kB / 0.5059 GB, free: 19.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002654/0.3036, allocations: 1.041 MB / 0.5069 GB, free: 19.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001753/0.3038, allocations: 192.2 kB / 0.5071 GB, free: 19.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003803/0.3042, allocations: 433.7 kB / 0.5075 GB, free: 19.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00253/0.3067, allocations: 1.987 MB / 0.5095 GB, free: 19.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3067, allocations: 1.031 kB / 0.5095 GB, free: 19.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3067, allocations: 0 / 0.5095 GB, free: 19.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.3067, allocations: 0 / 0.5095 GB, free: 19.52 MB / 382.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.001697/0.3084, allocations: 1.204 MB / 0.5106 GB, free: 18.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.3085, allocations: 8.766 kB / 0.5106 GB, free: 18.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007496/0.3092, allocations: 207.3 kB / 0.5108 GB, free: 18.78 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000537/0.3098, allocations: 489.9 kB / 0.5113 GB, free: 18.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.3098, allocations: 52.19 kB / 0.5114 GB, free: 18.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.31, allocations: 73.09 kB / 0.5114 GB, free: 18.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.3113, allocations: 1.082 MB / 0.5125 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.3113, allocations: 4.547 kB / 0.5125 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/0.3114, allocations: 30 kB / 0.5125 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.3114, allocations: 17.16 kB / 0.5125 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001756/0.3131, allocations: 1.51 MB / 0.514 GB, free: 18.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004142/0.3173, allocations: 3.01 MB / 0.5169 GB, free: 17.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/0.3186, allocations: 1.003 MB / 0.5179 GB, free: 16.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004332/0.3191, allocations: 384.3 kB / 0.5183 GB, free: 16.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00294/0.322, allocations: 2.453 MB / 0.5207 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.592e-05/0.322, allocations: 37.86 kB / 0.5207 GB, free: 14.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=51): time 2.285e-06/0.322, allocations: 2.656 kB / 0.5207 GB, free: 14.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.01257/0.3346, allocations: 3.487 MB / 0.5241 GB, free: 13.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.329e-05/0.3347, allocations: 58.81 kB / 0.5242 GB, free: 13.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000662/0.3353, allocations: 0.6959 MB / 0.5249 GB, free: 12.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.151e-05/0.3354, allocations: 38.7 kB / 0.5249 GB, free: 12.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.3355, allocations: 352.9 kB / 0.5252 GB, free: 12.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.3357, allocations: 231.2 kB / 0.5255 GB, free: 12.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002522/0.3359, allocations: 155.4 kB / 0.5256 GB, free: 12.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.841e-05/0.336, allocations: 370.3 kB / 0.526 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005383/0.3365, allocations: 445 kB / 0.5264 GB, free: 11.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005625/0.3371, allocations: 0.5921 MB / 0.527 GB, free: 11.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.3381, allocations: 0.9732 MB / 0.5279 GB, free: 10.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3381, allocations: 3.75 kB / 0.5279 GB, free: 10.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003141/0.3413, allocations: 1.414 MB / 0.5293 GB, free: 10.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3413, allocations: 13.5 kB / 0.5293 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.3413, allocations: 4.125 kB / 0.5293 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.3431, allocations: 264 kB / 0.5296 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006437/0.3438, allocations: 189.7 kB / 0.5298 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003744/0.3475, allocations: 3.95 MB / 0.5336 GB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005074/0.348, allocations: 29.5 kB / 0.5336 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.163e-05/0.3481, allocations: 36.08 kB / 0.5337 GB, free: 6.711 MB / 382.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.0002438/0.3484, allocations: 214 kB / 0.5339 GB, free: 6.543 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.3485, allocations: 59.06 kB / 0.5339 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002968/0.3515, allocations: 1.193 MB / 0.5351 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3515, allocations: 6.5 kB / 0.5351 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3515, allocations: 3.719 kB / 0.5351 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3515, allocations: 4.219 kB / 0.5351 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003813/0.3553, allocations: 2.163 MB / 0.5372 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.3553, allocations: 3.188 kB / 0.5372 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.3558, allocations: 140.6 kB / 0.5374 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001692/0.3575, allocations: 257.6 kB / 0.5376 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.323e-05/0.3576, allocations: 26.92 kB / 0.5376 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003456/0.361, allocations: 3.913 MB / 0.5415 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.361, allocations: 0 / 0.5415 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003311/0.3644, allocations: 1.655 MB / 0.5431 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000235/0.3646, allocations: 192.3 kB / 0.5433 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.986e-05/0.3647, allocations: 12 kB / 0.5433 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003784/0.3651, allocations: 19.94 kB / 0.5433 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.3652, allocations: 61.8 kB / 0.5433 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.603e-05/0.3652, allocations: 30.67 kB / 0.5434 GB, free: 15.11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004624/0.3657, allocations: 0.503 MB / 0.5439 GB, free: 14.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3657, allocations: 3.938 kB / 0.5439 GB, free: 14.6 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001155/0.3669, allocations: 442.4 kB / 0.5443 GB, free: 14.17 MB / 398.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.0007766/0.3677, allocations: 0.5243 MB / 0.5448 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.3692, allocations: 1.187 MB / 0.546 GB, free: 12.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3692, allocations: 2.656 kB / 0.546 GB, free: 12.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007733/0.37, allocations: 0.6833 MB / 0.5466 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007792/0.3708, allocations: 161.8 kB / 0.5468 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.3729, allocations: 1.554 MB / 0.5483 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.3733, allocations: 0.9147 MB / 0.5492 GB, free: 9.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002423/0.3735, allocations: 110 kB / 0.5493 GB, free: 9.156 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3735, allocations: 2.688 kB / 0.5493 GB, free: 9.156 MB / 398.1 MB Notification: Performance of Templates: time 0.02017/0.3937, allocations: 21.34 MB / 0.5701 GB, free: 4.637 MB / 414.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)