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.005401/0.005401, allocations: 100.2 kB / 15.87 MB, free: 5.867 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.001355/0.001356, allocations: 193.2 kB / 16.79 MB, free: 5.805 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.322/1.322, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2061/0.2061, allocations: 15.31 MB / 305.9 MB, free: 15.35 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 64.08 kB / 370.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09571/0.09689, allocations: 53.61 MB / 423.9 MB, free: 14.77 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.3479/0.4449, allocations: 24.48 MB / 448.4 MB, free: 40.08 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008223/0.4531, allocations: 10.08 MB / 458.5 MB, free: 35.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006595/0.4538, allocations: 17.38 kB / 458.5 MB, free: 35.24 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006523/0.4545, allocations: 224.9 kB / 458.7 MB, free: 35.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001175/0.4557, allocations: 0.5107 MB / 459.2 MB, free: 34.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003107/0.4588, allocations: 1.265 MB / 460.5 MB, free: 34.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000837/0.4596, allocations: 0.8996 MB / 461.4 MB, free: 34.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004169/0.4601, allocations: 444.8 kB / 461.8 MB, free: 33.99 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003405/0.4604, allocations: 393.3 kB / 462.2 MB, free: 33.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003871/0.4608, allocations: 458.5 kB / 462.7 MB, free: 33.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.053e-05/0.4609, allocations: 50.84 kB / 462.7 MB, free: 33.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002623/0.4635, allocations: 1.018 MB / 463.7 MB, free: 33.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.4637, allocations: 161.6 kB / 463.9 MB, free: 33.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000315/0.464, allocations: 404.4 kB / 464.3 MB, free: 33.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001563/0.4656, allocations: 1.46 MB / 465.7 MB, free: 32.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4656, allocations: 0 / 465.7 MB, free: 32.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.4656, allocations: 5.156 kB / 465.7 MB, free: 32.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.4656, allocations: 0 / 465.7 MB, free: 32.5 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.002008/0.4676, allocations: 1.21 MB / 467 MB, free: 31.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.4677, allocations: 9.188 kB / 467 MB, free: 31.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008397/0.4685, allocations: 208.5 kB / 467.2 MB, free: 31.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005709/0.4691, allocations: 470.8 kB / 467.6 MB, free: 31.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.163e-05/0.4692, allocations: 57.88 kB / 467.7 MB, free: 31.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.4693, allocations: 73.12 kB / 467.8 MB, free: 31.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.4707, allocations: 1.085 MB / 468.8 MB, free: 30.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.4708, allocations: 2.781 kB / 468.8 MB, free: 30.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.539e-05/0.4708, allocations: 29.66 kB / 468.9 MB, free: 30.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.4709, allocations: 19.53 kB / 468.9 MB, free: 30.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001832/0.4727, allocations: 1.507 MB / 470.4 MB, free: 30.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004454/0.4772, allocations: 3.014 MB / 473.4 MB, free: 28.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/0.4785, allocations: 0.9886 MB / 474.4 MB, free: 28.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004553/0.479, allocations: 385 kB / 474.8 MB, free: 27.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003418/0.4824, allocations: 2.458 MB / 477.2 MB, free: 26.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.4825, allocations: 41.09 kB / 477.3 MB, free: 26.19 MB / 366.1 MB Notification: Performance of pre-optimization done (n=51): time 1.924e-06/0.4825, allocations: 0 / 477.3 MB, free: 26.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.01592/0.4984, allocations: 3.494 MB / 480.8 MB, free: 24.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.4985, allocations: 61.42 kB / 480.8 MB, free: 24.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007718/0.4993, allocations: 0.6926 MB / 481.5 MB, free: 24.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.6e-05/0.4993, allocations: 36.42 kB / 481.6 MB, free: 24.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.4995, allocations: 347.5 kB / 481.9 MB, free: 24.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.4997, allocations: 244.5 kB / 482.1 MB, free: 23.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/0.4999, allocations: 156.4 kB / 482.3 MB, free: 23.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.833e-05/0.5, allocations: 366.9 kB / 482.6 MB, free: 23.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005773/0.5006, allocations: 443.7 kB / 483.1 MB, free: 23.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006586/0.5012, allocations: 0.5858 MB / 483.7 MB, free: 22.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.5024, allocations: 0.9767 MB / 484.6 MB, free: 22.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.5024, allocations: 1.031 kB / 484.6 MB, free: 22.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003863/0.5063, allocations: 1.411 MB / 486 MB, free: 21.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.5064, allocations: 9.062 kB / 486.1 MB, free: 21.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.5064, allocations: 4.75 kB / 486.1 MB, free: 21.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002265/0.5086, allocations: 264.6 kB / 486.3 MB, free: 21.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000807/0.5095, allocations: 194.3 kB / 486.5 MB, free: 21.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004514/0.514, allocations: 3.74 MB / 490.3 MB, free: 18.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008254/0.5148, allocations: 38.38 kB / 490.3 MB, free: 18.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.294e-05/0.5149, allocations: 36.28 kB / 490.3 MB, free: 18.2 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.0003257/0.5153, allocations: 206.2 kB / 490.5 MB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.5154, allocations: 56.22 kB / 490.6 MB, free: 17.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003856/0.5193, allocations: 1.207 MB / 491.8 MB, free: 17.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.5193, allocations: 7.156 kB / 491.8 MB, free: 17.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.5193, allocations: 2.062 kB / 491.8 MB, free: 17.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.5194, allocations: 7.219 kB / 491.8 MB, free: 17.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004996/0.5244, allocations: 2.167 MB / 494 MB, free: 16.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.5244, allocations: 3.688 kB / 494 MB, free: 16.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000545/0.525, allocations: 139.1 kB / 494.1 MB, free: 16.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002152/0.5271, allocations: 269.6 kB / 494.4 MB, free: 16.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-05/0.5272, allocations: 18.25 kB / 494.4 MB, free: 16.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004124/0.5313, allocations: 3.673 MB / 498.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5314, allocations: 3.656 kB / 498.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004038/0.5354, allocations: 1.646 MB / 499.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003927/0.5358, allocations: 193.5 kB / 499.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.5359, allocations: 28.5 kB / 499.9 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000468/0.5364, allocations: 21.64 kB / 500 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.5366, allocations: 58.12 kB / 0.4883 GB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-05/0.5366, allocations: 28.92 kB / 0.4883 GB, free: 11.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004815/0.5371, allocations: 0.5141 MB / 0.4888 GB, free: 11.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5371, allocations: 0 / 0.4888 GB, free: 11.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001297/0.5384, allocations: 438.1 kB / 0.4892 GB, free: 11.49 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.0008112/0.5392, allocations: 0.5088 MB / 0.4897 GB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.5409, allocations: 1.19 MB / 0.4909 GB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.5409, allocations: 0 / 0.4909 GB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008014/0.5417, allocations: 0.6786 MB / 0.4916 GB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009613/0.5427, allocations: 150.1 kB / 0.4917 GB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.545, allocations: 1.862 MB / 0.4935 GB, free: 8.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.5453, allocations: 0.9083 MB / 0.4944 GB, free: 8.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.5456, allocations: 115.7 kB / 0.4945 GB, free: 8.254 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5456, allocations: 3.938 kB / 0.4945 GB, free: 8.25 MB / 366.1 MB Notification: Performance of Templates: time 0.02275/0.5684, allocations: 21.38 MB / 0.5154 GB, free: 7.527 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)