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.001059/0.001059, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.009008/0.009008, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.481/1.481, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2162/0.2162, allocations: 15.27 MB / 306.7 MB, free: 15.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003366/0.0003365, allocations: 11.98 kB / 372.1 MB, free: 3.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3082, allocations: 54.62 MB / 426.7 MB, free: 40.38 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.02683/0.3351, allocations: 23.45 MB / 450.2 MB, free: 33.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01239/0.3475, allocations: 9.968 MB / 460.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001129/0.3487, allocations: 15.41 kB / 460.1 MB, free: 26.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007496/0.3495, allocations: 221.3 kB / 460.4 MB, free: 26.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002349/0.3518, allocations: 0.515 MB / 460.9 MB, free: 26.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004778/0.3566, allocations: 1.265 MB / 462.1 MB, free: 25.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001519/0.3582, allocations: 0.901 MB / 463 MB, free: 25.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006544/0.3588, allocations: 416.9 kB / 463.4 MB, free: 24.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005793/0.3594, allocations: 378.6 kB / 463.8 MB, free: 24.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005988/0.36, allocations: 431.5 kB / 464.2 MB, free: 24.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001048/0.3602, allocations: 47.22 kB / 464.3 MB, free: 24.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004271/0.3644, allocations: 1 MB / 465.3 MB, free: 24.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002097/0.3647, allocations: 148.8 kB / 465.4 MB, free: 24.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007144/0.3654, allocations: 412.9 kB / 465.8 MB, free: 23.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005481/0.3709, allocations: 1.843 MB / 467.7 MB, free: 23.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3709, allocations: 0 / 467.7 MB, free: 23.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3709, allocations: 0 / 467.7 MB, free: 23.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.197e-05/0.371, allocations: 0 / 467.7 MB, free: 23.27 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.002296/0.3733, allocations: 1.065 MB / 468.7 MB, free: 22.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.3733, allocations: 10.5 kB / 468.7 MB, free: 22.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008471/0.3742, allocations: 205.7 kB / 468.9 MB, free: 22.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006702/0.3749, allocations: 472.6 kB / 469.4 MB, free: 22.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.652e-05/0.3749, allocations: 49.88 kB / 469.5 MB, free: 22.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.3751, allocations: 68.38 kB / 469.5 MB, free: 22.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.3766, allocations: 1.093 MB / 470.6 MB, free: 21.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.3766, allocations: 0 / 470.6 MB, free: 21.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.661e-05/0.3767, allocations: 25.59 kB / 470.6 MB, free: 21.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.3767, allocations: 16.22 kB / 470.7 MB, free: 21.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.3784, allocations: 1.517 MB / 472.2 MB, free: 20.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004023/0.3825, allocations: 3.009 MB / 475.2 MB, free: 17.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.3836, allocations: 0.9935 MB / 476.2 MB, free: 17.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004036/0.384, allocations: 384.3 kB / 476.6 MB, free: 16.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002889/0.3869, allocations: 2.429 MB / 479 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.387, allocations: 39 kB / 479 MB, free: 14.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.866e-06/0.387, allocations: 0 / 479 MB, free: 14.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.01489/0.4019, allocations: 3.545 MB / 482.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.991e-05/0.4019, allocations: 55.97 kB / 482.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007184/0.4027, allocations: 0.6945 MB / 483.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.552e-05/0.4027, allocations: 41.7 kB / 483.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.4029, allocations: 342.8 kB / 483.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.4031, allocations: 238.1 kB / 483.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.454e-05/0.4032, allocations: 67.33 kB / 484 MB, free: 9.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.576e-05/0.4033, allocations: 369.9 kB / 484.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005452/0.4038, allocations: 444.8 kB / 484.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006408/0.4045, allocations: 0.5898 MB / 485.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/0.4056, allocations: 0.9745 MB / 486.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.4056, allocations: 4 kB / 486.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003654/0.4092, allocations: 1.414 MB / 487.8 MB, free: 6.352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.4093, allocations: 4 kB / 487.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.4093, allocations: 4.562 kB / 487.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002253/0.4115, allocations: 279.9 kB / 488 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007508/0.4123, allocations: 195.5 kB / 488.2 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004607/0.4169, allocations: 3.776 MB / 492 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008297/0.4178, allocations: 36.75 kB / 492.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.087e-05/0.4179, allocations: 40.88 kB / 492.1 MB, free: 2.016 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 (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.0003548/0.4182, allocations: 198.5 kB / 492.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.4184, allocations: 59.25 kB / 492.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003776/0.4222, allocations: 1.215 MB / 493.6 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.4222, allocations: 8 kB / 493.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.4222, allocations: 0 / 493.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.4222, allocations: 8.578 kB / 493.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005562/0.4278, allocations: 2.169 MB / 495.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.4278, allocations: 4.516 kB / 495.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005976/0.4284, allocations: 146.4 kB / 495.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002339/0.4308, allocations: 275.3 kB / 496.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.619e-05/0.4309, allocations: 22.95 kB / 496.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006092/0.437, allocations: 3.691 MB / 499.9 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/0.437, allocations: 4.734 kB / 499.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005156/0.4422, allocations: 1.661 MB / 0.4898 GB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006932/0.4429, allocations: 204.6 kB / 0.49 GB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000204/0.4431, allocations: 20.5 kB / 0.49 GB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006231/0.4438, allocations: 27.38 kB / 0.49 GB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/0.444, allocations: 61.17 kB / 0.4901 GB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.208e-05/0.4441, allocations: 27.28 kB / 0.4901 GB, free: 8.828 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007232/0.4448, allocations: 0.5104 MB / 0.4906 GB, free: 8.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4449, allocations: 0 / 0.4906 GB, free: 8.371 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00168/0.4465, allocations: 437.1 kB / 0.491 GB, free: 7.953 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.001424/0.448, allocations: 0.523 MB / 0.4915 GB, free: 7.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002105/0.4501, allocations: 1.182 MB / 0.4927 GB, free: 6.371 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.4501, allocations: 256 / 0.4927 GB, free: 6.371 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.4512, allocations: 0.6832 MB / 0.4934 GB, free: 5.715 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.4523, allocations: 154.9 kB / 0.4935 GB, free: 5.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/0.4555, allocations: 1.925 MB / 0.4954 GB, free: 3.805 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006555/0.4561, allocations: 0.9057 MB / 0.4963 GB, free: 2.953 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006842/0.4568, allocations: 140 kB / 0.4964 GB, free: 2.836 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000274/0.4571, allocations: 91.81 kB / 0.4965 GB, free: 2.758 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4571, allocations: 0 / 0.4965 GB, free: 2.758 MB / 366.1 MB Notification: Performance of Templates: time 0.02935/0.4865, allocations: 17.05 MB / 0.5131 GB, free: 1.84 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)