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.001196/0.001196, allocations: 103.5 kB / 15.98 MB, free: 5.891 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.001326/0.001326, allocations: 191.9 kB / 16.91 MB, free: 5.746 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.363/1.363, allocations: 222.9 MB / 240.6 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1992/0.1992, allocations: 15.3 MB / 306.1 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 55.91 kB / 370.5 MB, free: 4.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1038, allocations: 53.61 MB / 424.1 MB, free: 14.65 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.3489/0.4528, allocations: 24.49 MB / 448.6 MB, free: 39.94 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008588/0.4614, allocations: 9.985 MB / 458.6 MB, free: 35.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006421/0.462, allocations: 20.91 kB / 458.6 MB, free: 35.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006685/0.4627, allocations: 218.9 kB / 458.8 MB, free: 35.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001377/0.4641, allocations: 0.5215 MB / 459.3 MB, free: 34.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003959/0.4681, allocations: 1.283 MB / 460.6 MB, free: 34.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001166/0.4693, allocations: 0.9535 MB / 461.6 MB, free: 33.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005788/0.4699, allocations: 0.5024 MB / 462.1 MB, free: 33.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004792/0.4703, allocations: 428.8 kB / 462.5 MB, free: 33.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004654/0.4708, allocations: 486.3 kB / 463 MB, free: 33.72 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.4709, allocations: 84 kB / 463 MB, free: 33.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002979/0.4739, allocations: 1.07 MB / 464.1 MB, free: 33.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001677/0.4741, allocations: 196.6 kB / 464.3 MB, free: 33.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003941/0.4745, allocations: 427.2 kB / 464.7 MB, free: 33.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002171/0.4767, allocations: 1.484 MB / 466.2 MB, free: 32.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.4767, allocations: 4 kB / 466.2 MB, free: 32.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.4767, allocations: 1.125 kB / 466.2 MB, free: 32.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.4767, allocations: 0 / 466.2 MB, free: 32.54 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.002516/0.4793, allocations: 1.201 MB / 467.4 MB, free: 31.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.4793, allocations: 13.28 kB / 467.4 MB, free: 31.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008706/0.4802, allocations: 209.5 kB / 467.6 MB, free: 31.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006711/0.4809, allocations: 471 kB / 468.1 MB, free: 31.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.901e-05/0.4809, allocations: 53.41 kB / 468.1 MB, free: 31.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.4811, allocations: 76 kB / 468.2 MB, free: 31.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.4827, allocations: 1.083 MB / 469.3 MB, free: 30.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.4827, allocations: 0 / 469.3 MB, free: 30.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.499e-05/0.4828, allocations: 29.81 kB / 469.3 MB, free: 30.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.4828, allocations: 16.34 kB / 469.3 MB, free: 30.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001905/0.4847, allocations: 1.514 MB / 470.9 MB, free: 30.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004401/0.4891, allocations: 3.012 MB / 473.9 MB, free: 28.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.4905, allocations: 0.9938 MB / 474.9 MB, free: 28.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000451/0.491, allocations: 382.8 kB / 475.2 MB, free: 27.95 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003394/0.4944, allocations: 2.467 MB / 477.7 MB, free: 26.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.4944, allocations: 36.41 kB / 477.7 MB, free: 26.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=51): time 2.124e-06/0.4944, allocations: 0 / 477.7 MB, free: 26.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.01603/0.5104, allocations: 3.487 MB / 481.2 MB, free: 24.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.5105, allocations: 59.88 kB / 481.3 MB, free: 24.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007455/0.5112, allocations: 0.699 MB / 482 MB, free: 24.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.418e-05/0.5113, allocations: 40.2 kB / 482 MB, free: 24.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.5115, allocations: 346.2 kB / 482.4 MB, free: 24.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.5117, allocations: 237.7 kB / 482.6 MB, free: 23.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002426/0.5119, allocations: 155.1 kB / 482.7 MB, free: 23.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.326e-05/0.512, allocations: 367.4 kB / 483.1 MB, free: 23.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005764/0.5126, allocations: 441.8 kB / 483.5 MB, free: 23.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006781/0.5133, allocations: 0.5944 MB / 484.1 MB, free: 22.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.5144, allocations: 0.9774 MB / 485.1 MB, free: 22.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.5144, allocations: 1.281 kB / 485.1 MB, free: 22.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003814/0.5183, allocations: 1.405 MB / 486.5 MB, free: 21.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.5183, allocations: 6.594 kB / 486.5 MB, free: 21.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.5183, allocations: 9.188 kB / 486.5 MB, free: 21.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002166/0.5205, allocations: 260.4 kB / 486.8 MB, free: 21.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007929/0.5213, allocations: 193.8 kB / 487 MB, free: 21.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004447/0.5257, allocations: 3.972 MB / 490.9 MB, free: 18.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007955/0.5266, allocations: 46.42 kB / 491 MB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.19e-05/0.5267, allocations: 38.41 kB / 491 MB, free: 18.01 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.0003115/0.527, allocations: 207.4 kB / 491.2 MB, free: 17.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.5271, allocations: 64.67 kB / 491.3 MB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003703/0.5308, allocations: 1.187 MB / 492.5 MB, free: 17.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.5309, allocations: 6.938 kB / 492.5 MB, free: 17.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.5309, allocations: 1.625 kB / 492.5 MB, free: 17.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-05/0.5309, allocations: 7.75 kB / 492.5 MB, free: 17.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00475/0.5357, allocations: 2.158 MB / 494.7 MB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.5357, allocations: 3.625 kB / 494.7 MB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005403/0.5362, allocations: 136.9 kB / 494.8 MB, free: 16.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002059/0.5383, allocations: 268.8 kB / 495.1 MB, free: 16.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.64e-05/0.5384, allocations: 22.62 kB / 495.1 MB, free: 16.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003927/0.5423, allocations: 3.92 MB / 499 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5424, allocations: 0 / 499 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003709/0.5461, allocations: 1.653 MB / 0.4889 GB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003186/0.5464, allocations: 195.4 kB / 0.4891 GB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.5465, allocations: 20.89 kB / 0.4891 GB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/0.547, allocations: 29.88 kB / 0.4891 GB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.5471, allocations: 57.22 kB / 0.4892 GB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.803e-05/0.5472, allocations: 29.22 kB / 0.4892 GB, free: 11.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004463/0.5476, allocations: 0.5015 MB / 0.4897 GB, free: 11.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5476, allocations: 0 / 0.4897 GB, free: 11.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001191/0.5488, allocations: 440.3 kB / 0.4901 GB, free: 11.11 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.0008342/0.5497, allocations: 0.5133 MB / 0.4906 GB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.5515, allocations: 1.225 MB / 0.4918 GB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5516, allocations: 0 / 0.4918 GB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007403/0.5523, allocations: 0.6805 MB / 0.4925 GB, free: 9.832 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009063/0.5532, allocations: 162.8 kB / 0.4927 GB, free: 9.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/0.5554, allocations: 1.874 MB / 0.4945 GB, free: 8.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.5557, allocations: 0.9171 MB / 0.4954 GB, free: 7.828 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002814/0.556, allocations: 107.9 kB / 0.4955 GB, free: 7.812 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.556, allocations: 0 / 0.4955 GB, free: 7.812 MB / 366.1 MB Notification: Performance of Templates: time 0.02441/0.5804, allocations: 21.4 MB / 0.5164 GB, free: 6.426 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)