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.001049/0.001049, allocations: 113.4 kB / 16.37 MB, free: 5.996 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.001106/0.001106, allocations: 192.6 kB / 17.31 MB, free: 5.609 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.381/1.381, 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.07672/0.07672, allocations: 15.31 MB / 306.5 MB, free: 15.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 61.55 kB / 371.8 MB, free: 50.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1262, allocations: 53.61 MB / 425.4 MB, free: 13.31 MB / 302.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.03427/0.1606, allocations: 23.87 MB / 449.2 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01109/0.1717, allocations: 10.08 MB / 459.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005815/0.1723, allocations: 11.94 kB / 459.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006277/0.1729, allocations: 242.3 kB / 459.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0013/0.1743, allocations: 0.5701 MB / 460.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0035/0.1778, allocations: 1.44 MB / 461.6 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.179, allocations: 0.9583 MB / 462.5 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005599/0.1796, allocations: 0.4971 MB / 463 MB, free: 7.703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004059/0.18, allocations: 418.8 kB / 463.4 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005198/0.1805, allocations: 474.2 kB / 463.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.981e-05/0.1806, allocations: 84 kB / 464 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003264/0.1839, allocations: 1.049 MB / 465 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002006/0.1841, allocations: 187.4 kB / 465.2 MB, free: 5.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004089/0.1845, allocations: 434 kB / 465.6 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003515/0.1881, allocations: 1.985 MB / 467.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1881, allocations: 0 / 467.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1881, allocations: 0 / 467.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1881, allocations: 0 / 467.6 MB, free: 3.094 MB / 334.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.002002/0.1901, allocations: 1.209 MB / 468.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.1902, allocations: 16.02 kB / 468.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008047/0.191, allocations: 211.5 kB / 469.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006665/0.1917, allocations: 485.6 kB / 469.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.564e-05/0.1917, allocations: 54.38 kB / 469.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.1918, allocations: 68.38 kB / 469.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.1933, allocations: 1.087 MB / 470.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.1933, allocations: 0 / 470.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.795e-05/0.1933, allocations: 28 kB / 470.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.1934, allocations: 16 kB / 470.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.1953, allocations: 1.511 MB / 472.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004518/0.1998, allocations: 3.005 MB / 475.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.2013, allocations: 1.001 MB / 476.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000464/0.2017, allocations: 378.4 kB / 476.7 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003612/0.2054, allocations: 2.464 MB / 479.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.2054, allocations: 39 kB / 479.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.205e-06/0.2054, allocations: 0 / 479.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.0148/0.2202, allocations: 3.477 MB / 482.6 MB, free: 3.555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.2203, allocations: 71.83 kB / 482.7 MB, free: 3.473 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009067/0.2212, allocations: 0.6931 MB / 483.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.613e-05/0.2213, allocations: 37.7 kB / 483.4 MB, free: 2.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002922/0.2216, allocations: 347.5 kB / 483.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.2218, allocations: 228.7 kB / 484 MB, free: 2.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002778/0.2221, allocations: 154.5 kB / 484.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.2223, allocations: 366.8 kB / 484.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006635/0.2229, allocations: 449.8 kB / 485 MB, free: 1.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007045/0.2236, allocations: 0.5886 MB / 485.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.2249, allocations: 0.9694 MB / 486.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.2249, allocations: 4 kB / 486.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00386/0.2288, allocations: 1.409 MB / 487.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.2288, allocations: 8 kB / 487.9 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.2289, allocations: 11.94 kB / 487.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002066/0.2309, allocations: 258.3 kB / 488.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007675/0.2317, allocations: 195.7 kB / 488.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005148/0.2369, allocations: 3.97 MB / 492.4 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000656/0.2376, allocations: 24 kB / 492.4 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.2377, allocations: 35.98 kB / 492.4 MB, free: 9.285 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.0003431/0.238, allocations: 205.6 kB / 492.6 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/0.2382, allocations: 63.19 kB / 492.7 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003646/0.2419, allocations: 1.205 MB / 493.9 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.2419, allocations: 4 kB / 493.9 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.2419, allocations: 8 kB / 493.9 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.2419, allocations: 3.984 kB / 493.9 MB, free: 7.773 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004764/0.2467, allocations: 2.146 MB / 496 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.2467, allocations: 0 / 496 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005815/0.2473, allocations: 143.8 kB / 496.2 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/0.2494, allocations: 262.2 kB / 496.4 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.681e-05/0.2494, allocations: 27.98 kB / 496.5 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00524/0.2547, allocations: 3.903 MB / 0.4886 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.2547, allocations: 4.031 kB / 0.4887 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004096/0.2588, allocations: 1.658 MB / 0.4903 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003954/0.2592, allocations: 188.4 kB / 0.4904 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.2594, allocations: 19.88 kB / 0.4905 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004715/0.2599, allocations: 19.94 kB / 0.4905 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.26, allocations: 60.72 kB / 0.4905 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-05/0.2601, allocations: 31.92 kB / 0.4906 GB, free: 14.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005638/0.2607, allocations: 0.503 MB / 0.4911 GB, free: 14.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.764e-06/0.2607, allocations: 0 / 0.4911 GB, free: 14.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001279/0.262, allocations: 443.7 kB / 0.4915 GB, free: 13.93 MB / 382.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.001188/0.2632, allocations: 0.5203 MB / 0.492 GB, free: 13.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.2651, allocations: 1.194 MB / 0.4932 GB, free: 12.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.2652, allocations: 4 kB / 0.4932 GB, free: 12.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009702/0.2661, allocations: 0.6761 MB / 0.4938 GB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009382/0.2671, allocations: 164.5 kB / 0.494 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.2701, allocations: 1.519 MB / 0.4955 GB, free: 9.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006736/0.2708, allocations: 0.9148 MB / 0.4964 GB, free: 8.805 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005875/0.2714, allocations: 140.9 kB / 0.4965 GB, free: 8.664 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002395/0.2717, allocations: 83.39 kB / 0.4966 GB, free: 8.582 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2717, allocations: 0 / 0.4966 GB, free: 8.582 MB / 382.1 MB Notification: Performance of Templates: time 0.1887/0.4604, allocations: 17.92 MB / 0.5141 GB, free: 77.18 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 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe 2>&1)