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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.0765/0.0765, allocations: 15.29 MB / 31.08 MB, free: 3.109 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 193.2 kB / 36.14 MB, free: 2.145 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 264 MB, free: 4.898 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.0009562/0.0009562, allocations: 110.2 kB / 318.4 MB, free: 3.434 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001015/0.001016, allocations: 54.08 kB / 382.7 MB, free: 48.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08779/0.08883, allocations: 53.61 MB / 436.3 MB, free: 1.027 MB / 298.7 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.0313/0.1202, allocations: 22.01 MB / 458.3 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01176/0.132, allocations: 10.05 MB / 468.4 MB, free: 1.031 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007795/0.1328, allocations: 19.88 kB / 468.4 MB, free: 1.012 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007738/0.1336, allocations: 218.6 kB / 468.6 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001522/0.1351, allocations: 0.4968 MB / 469.1 MB, free: 304 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003494/0.1386, allocations: 1.263 MB / 470.4 MB, free: 15.02 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.1398, allocations: 0.9076 MB / 471.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005603/0.1404, allocations: 446.1 kB / 471.7 MB, free: 13.68 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004801/0.1409, allocations: 398.7 kB / 472.1 MB, free: 13.29 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005481/0.1415, allocations: 458.3 kB / 472.6 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1416, allocations: 52 kB / 472.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002295/0.1439, allocations: 1.002 MB / 473.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.144, allocations: 167.3 kB / 473.8 MB, free: 11.62 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003395/0.1444, allocations: 406.1 kB / 474.2 MB, free: 11.22 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002121/0.1465, allocations: 1.845 MB / 476 MB, free: 9.367 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1465, allocations: 0 / 476 MB, free: 9.367 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.1465, allocations: 0 / 476 MB, free: 9.367 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.1465, allocations: 0 / 476 MB, free: 9.367 MB / 346.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.001751/0.1483, allocations: 1.209 MB / 477.2 MB, free: 8.105 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.1483, allocations: 16.81 kB / 477.3 MB, free: 8.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006893/0.149, allocations: 207.6 kB / 477.5 MB, free: 7.887 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005588/0.1496, allocations: 473.7 kB / 477.9 MB, free: 7.383 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/0.1497, allocations: 50.38 kB / 478 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.712e-05/0.1498, allocations: 72.28 kB / 478 MB, free: 7.266 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.151, allocations: 1.091 MB / 479.1 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.1511, allocations: 0 / 479.1 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.032e-05/0.1511, allocations: 32 kB / 479.2 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.1512, allocations: 16 kB / 479.2 MB, free: 6.113 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.1529, allocations: 1.507 MB / 480.7 MB, free: 4.609 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004053/0.1569, allocations: 3.017 MB / 483.7 MB, free: 1.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001267/0.1582, allocations: 0.9971 MB / 484.7 MB, free: 460 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.1587, allocations: 378.4 kB / 485.1 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003121/0.1618, allocations: 2.461 MB / 487.5 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.1618, allocations: 42.94 kB / 487.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=51): time 1.693e-06/0.1619, allocations: 0 / 487.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.01294/0.1748, allocations: 3.481 MB / 491 MB, free: 9.824 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.1749, allocations: 63.97 kB / 491.1 MB, free: 9.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006983/0.1756, allocations: 0.6892 MB / 491.8 MB, free: 9.047 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.1756, allocations: 41.7 kB / 491.8 MB, free: 9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.1758, allocations: 343.5 kB / 492.2 MB, free: 8.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.176, allocations: 236.5 kB / 492.4 MB, free: 8.426 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002249/0.1762, allocations: 154.5 kB / 492.6 MB, free: 8.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1763, allocations: 366.8 kB / 492.9 MB, free: 7.902 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005461/0.1769, allocations: 445.8 kB / 493.4 MB, free: 7.469 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006471/0.1775, allocations: 0.5963 MB / 493.9 MB, free: 6.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.1787, allocations: 0.9772 MB / 494.9 MB, free: 5.781 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1787, allocations: 4 kB / 494.9 MB, free: 5.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00343/0.1822, allocations: 1.405 MB / 496.3 MB, free: 4.355 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1822, allocations: 10.34 kB / 496.3 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.1822, allocations: 4 kB / 496.3 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0019/0.1841, allocations: 266.2 kB / 496.6 MB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006696/0.1848, allocations: 195.8 kB / 496.8 MB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004385/0.1892, allocations: 3.736 MB / 0.4888 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005629/0.1898, allocations: 40.05 kB / 0.4888 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.345e-05/0.1898, allocations: 43.97 kB / 0.4889 GB, free: 15.77 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.0002832/0.1901, allocations: 205.6 kB / 0.4891 GB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.1903, allocations: 59.25 kB / 0.4891 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003275/0.1936, allocations: 1.189 MB / 0.4903 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.303e-06/0.1936, allocations: 12 kB / 0.4903 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.1936, allocations: 0 / 0.4903 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.1936, allocations: 11.92 kB / 0.4903 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004498/0.1981, allocations: 2.157 MB / 0.4924 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.1981, allocations: 0 / 0.4924 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005177/0.1987, allocations: 139.8 kB / 0.4926 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001883/0.2006, allocations: 262.2 kB / 0.4928 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.82e-05/0.2006, allocations: 27.98 kB / 0.4928 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004131/0.2048, allocations: 3.682 MB / 0.4964 GB, free: 7.621 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2048, allocations: 0 / 0.4964 GB, free: 7.621 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1823/0.3871, allocations: 7.361 MB / 0.5036 GB, free: 69.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004201/0.3876, allocations: 196.2 kB / 0.5038 GB, free: 69.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.3877, allocations: 16.22 kB / 0.5038 GB, free: 69.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005154/0.3882, allocations: 26.53 kB / 0.5038 GB, free: 69.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.3884, allocations: 61.44 kB / 0.5039 GB, free: 69.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.167e-05/0.3885, allocations: 25.61 kB / 0.5039 GB, free: 69.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004643/0.3889, allocations: 0.5043 MB / 0.5044 GB, free: 69.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3889, allocations: 0.625 kB / 0.5044 GB, free: 69.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001464/0.3904, allocations: 0.5233 MB / 0.5049 GB, free: 69.61 MB / 378.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.0008108/0.3912, allocations: 0.5069 MB / 0.5054 GB, free: 69.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001556/0.3928, allocations: 1.193 MB / 0.5066 GB, free: 69.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3928, allocations: 3.531 kB / 0.5066 GB, free: 69.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007105/0.3935, allocations: 0.6714 MB / 0.5073 GB, free: 69.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007587/0.3943, allocations: 156.3 kB / 0.5074 GB, free: 69.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.3969, allocations: 2.374 MB / 0.5097 GB, free: 67.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.3972, allocations: 0.9309 MB / 0.5106 GB, free: 67.26 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000536/0.3978, allocations: 141.1 kB / 0.5108 GB, free: 67.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002272/0.398, allocations: 89.64 kB / 0.5109 GB, free: 67.25 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.398, allocations: 4.094 kB / 0.5109 GB, free: 67.25 MB / 378.7 MB Notification: Performance of Templates: time 0.0252/0.4232, allocations: 19.64 MB / 0.53 GB, free: 61.3 MB / 378.7 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)