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.009874/0.009874, allocations: 102.9 kB / 15.73 MB, free: 6.047 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.001841/0.001841, allocations: 191.3 kB / 16.67 MB, free: 5.961 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.4 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.08329/0.08329, allocations: 15.32 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 60.12 kB / 425.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.09444, allocations: 53.61 MB / 478.8 MB, free: 5.789 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.03306/0.1275, allocations: 24.09 MB / 0.4911 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.1382, allocations: 10.09 MB / 0.5009 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004794/0.1387, allocations: 7.938 kB / 0.5009 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006154/0.1394, allocations: 234.3 kB / 0.5012 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001254/0.1406, allocations: 0.5779 MB / 0.5017 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003127/0.1438, allocations: 1.433 MB / 0.5031 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009763/0.1448, allocations: 0.9429 MB / 0.504 GB, free: 460 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2572/0.402, allocations: 0.5103 MB / 0.5045 GB, free: 19.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001233/0.4033, allocations: 419.9 kB / 0.5049 GB, free: 19.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.4044, allocations: 477.3 kB / 0.5054 GB, free: 19.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002662/0.4046, allocations: 84.53 kB / 0.5055 GB, free: 19.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005279/0.4099, allocations: 1.036 MB / 0.5065 GB, free: 19.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002916/0.4102, allocations: 192.4 kB / 0.5067 GB, free: 19.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006789/0.4109, allocations: 436 kB / 0.5071 GB, free: 19.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005621/0.4165, allocations: 1.992 MB / 0.509 GB, free: 19.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4166, allocations: 0 / 0.509 GB, free: 19.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4166, allocations: 3.594 kB / 0.509 GB, free: 19.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.4166, allocations: 2.906 kB / 0.509 GB, free: 19.02 MB / 382.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.002316/0.4189, allocations: 1.202 MB / 0.5102 GB, free: 18.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.419, allocations: 12 kB / 0.5102 GB, free: 18.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000855/0.4198, allocations: 205.9 kB / 0.5104 GB, free: 18.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007718/0.4206, allocations: 484.6 kB / 0.5109 GB, free: 18.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.469e-05/0.4207, allocations: 51.06 kB / 0.5109 GB, free: 18.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.4208, allocations: 74.66 kB / 0.511 GB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001923/0.4228, allocations: 1.086 MB / 0.5121 GB, free: 17.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.4228, allocations: 5.75 kB / 0.5121 GB, free: 17.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.812e-05/0.4229, allocations: 28.97 kB / 0.5121 GB, free: 17.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.4229, allocations: 15.56 kB / 0.5121 GB, free: 17.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002646/0.4256, allocations: 1.512 MB / 0.5136 GB, free: 17.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005645/0.4312, allocations: 3.009 MB / 0.5165 GB, free: 16.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.433, allocations: 1.002 MB / 0.5175 GB, free: 16.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00056/0.4336, allocations: 383.7 kB / 0.5179 GB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00422/0.4378, allocations: 2.455 MB / 0.5203 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.4379, allocations: 38.16 kB / 0.5203 GB, free: 14.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=51): time 4.028e-06/0.4379, allocations: 2.656 kB / 0.5203 GB, free: 14.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.01503/0.4529, allocations: 3.501 MB / 0.5237 GB, free: 12.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.453, allocations: 58.78 kB / 0.5238 GB, free: 12.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001286/0.4543, allocations: 0.689 MB / 0.5245 GB, free: 12.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.479e-05/0.4544, allocations: 37.33 kB / 0.5245 GB, free: 12.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.4548, allocations: 346.2 kB / 0.5248 GB, free: 12.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.455, allocations: 245.2 kB / 0.5251 GB, free: 12.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002925/0.4553, allocations: 151.6 kB / 0.5252 GB, free: 11.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4555, allocations: 369.2 kB / 0.5256 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006592/0.4562, allocations: 446.7 kB / 0.526 GB, free: 11.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006367/0.4568, allocations: 0.5894 MB / 0.5266 GB, free: 11.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.4581, allocations: 0.9684 MB / 0.5275 GB, free: 10.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.4581, allocations: 4.25 kB / 0.5275 GB, free: 10.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003836/0.4619, allocations: 1.408 MB / 0.5289 GB, free: 10 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.462, allocations: 6.438 kB / 0.5289 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.462, allocations: 3.844 kB / 0.5289 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001964/0.4639, allocations: 266.9 kB / 0.5291 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007077/0.4647, allocations: 193 kB / 0.5293 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004177/0.4689, allocations: 3.958 MB / 0.5332 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/0.4695, allocations: 26.75 kB / 0.5332 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.076e-05/0.4696, allocations: 38.34 kB / 0.5333 GB, free: 6.312 MB / 382.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.0003263/0.4699, allocations: 204.5 kB / 0.5334 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.4701, allocations: 59.72 kB / 0.5335 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003219/0.4733, allocations: 1.196 MB / 0.5347 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4733, allocations: 7.781 kB / 0.5347 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4733, allocations: 0 / 0.5347 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.4734, allocations: 6.984 kB / 0.5347 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004411/0.4778, allocations: 2.164 MB / 0.5368 GB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4778, allocations: 2.656 kB / 0.5368 GB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005041/0.4783, allocations: 137.6 kB / 0.5369 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001852/0.4802, allocations: 262.1 kB / 0.5372 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.606e-05/0.4802, allocations: 21.45 kB / 0.5372 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003918/0.4842, allocations: 3.906 MB / 0.541 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.4842, allocations: 3.219 kB / 0.541 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003955/0.4881, allocations: 1.657 MB / 0.5426 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004004/0.4886, allocations: 196.2 kB / 0.5428 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.296e-05/0.4886, allocations: 19.06 kB / 0.5428 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000398/0.4891, allocations: 23.92 kB / 0.5429 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.4892, allocations: 62.33 kB / 0.5429 GB, free: 14.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.175e-05/0.4893, allocations: 20 kB / 0.5429 GB, free: 14.74 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000613/0.4899, allocations: 0.5069 MB / 0.5434 GB, free: 14.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4899, allocations: 0 / 0.5434 GB, free: 14.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001517/0.4914, allocations: 439.7 kB / 0.5439 GB, free: 13.8 MB / 398.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.001251/0.4927, allocations: 0.5238 MB / 0.5444 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002072/0.4948, allocations: 1.185 MB / 0.5455 GB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4948, allocations: 0 / 0.5455 GB, free: 12.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009157/0.4957, allocations: 0.6812 MB / 0.5462 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008451/0.4966, allocations: 168.1 kB / 0.5464 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002404/0.499, allocations: 1.535 MB / 0.5479 GB, free: 9.855 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.4994, allocations: 0.9078 MB / 0.5487 GB, free: 8.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004527/0.4999, allocations: 135.1 kB / 0.5489 GB, free: 8.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002186/0.5001, allocations: 86.2 kB / 0.549 GB, free: 8.758 MB / 398.1 MB Notification: Performance of SimCode: time 3.8e-07/0.5001, allocations: 0 / 0.549 GB, free: 8.758 MB / 398.1 MB Notification: Performance of Templates: time 0.02926/0.5294, allocations: 18.5 MB / 0.567 GB, free: 7.125 MB / 414.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)