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.001298/0.001298, allocations: 110 kB / 16.41 MB, free: 6.5 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.001283/0.001283, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07838/0.07838, allocations: 15.31 MB / 306.5 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 59.91 kB / 425.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1067, allocations: 53.62 MB / 479.5 MB, free: 5.828 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.03619/0.1429, allocations: 24.08 MB / 0.4917 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.1558, allocations: 10.09 MB / 0.5016 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007606/0.1566, allocations: 7.938 kB / 0.5016 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009496/0.1576, allocations: 238.3 kB / 0.5018 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002009/0.1596, allocations: 0.5663 MB / 0.5024 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004416/0.164, allocations: 1.436 MB / 0.5038 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001655/0.1657, allocations: 0.9467 MB / 0.5047 GB, free: 488 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2585/0.4243, allocations: 0.506 MB / 0.5052 GB, free: 19.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.4254, allocations: 418.2 kB / 0.5056 GB, free: 19.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007454/0.4261, allocations: 478.4 kB / 0.5061 GB, free: 19.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000176/0.4263, allocations: 84.09 kB / 0.5061 GB, free: 19.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003592/0.4299, allocations: 1.036 MB / 0.5072 GB, free: 19.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.4301, allocations: 195.6 kB / 0.5073 GB, free: 19.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004846/0.4306, allocations: 430.7 kB / 0.5078 GB, free: 19.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004243/0.4349, allocations: 1.994 MB / 0.5097 GB, free: 19.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4349, allocations: 0 / 0.5097 GB, free: 19.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4349, allocations: 0 / 0.5097 GB, free: 19.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.435, allocations: 3.312 kB / 0.5097 GB, free: 19.04 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.002382/0.4373, allocations: 1.203 MB / 0.5109 GB, free: 18.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.4374, allocations: 13.12 kB / 0.5109 GB, free: 18.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008178/0.4382, allocations: 206.2 kB / 0.5111 GB, free: 18.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006856/0.4389, allocations: 486 kB / 0.5116 GB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.529e-05/0.439, allocations: 49.31 kB / 0.5116 GB, free: 18.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.4391, allocations: 75.05 kB / 0.5117 GB, free: 18.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.4407, allocations: 1.084 MB / 0.5127 GB, free: 17.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.4407, allocations: 3.938 kB / 0.5127 GB, free: 17.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.218e-05/0.4408, allocations: 27.47 kB / 0.5128 GB, free: 17.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.4408, allocations: 16 kB / 0.5128 GB, free: 17.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002019/0.4428, allocations: 1.513 MB / 0.5143 GB, free: 17.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004935/0.4478, allocations: 3.006 MB / 0.5172 GB, free: 16.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.4493, allocations: 1.006 MB / 0.5182 GB, free: 16.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004785/0.4498, allocations: 381.3 kB / 0.5185 GB, free: 16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003541/0.4533, allocations: 2.449 MB / 0.5209 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.4534, allocations: 37.47 kB / 0.521 GB, free: 14.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=51): time 2.725e-06/0.4534, allocations: 1.375 kB / 0.521 GB, free: 14.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.01414/0.4675, allocations: 3.498 MB / 0.5244 GB, free: 12.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.4676, allocations: 60.84 kB / 0.5244 GB, free: 12.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009067/0.4685, allocations: 0.6967 MB / 0.5251 GB, free: 12.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.445e-05/0.4686, allocations: 36.23 kB / 0.5252 GB, free: 12.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.4688, allocations: 346.2 kB / 0.5255 GB, free: 12.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.469, allocations: 242.2 kB / 0.5257 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/0.4692, allocations: 155.3 kB / 0.5259 GB, free: 11.95 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.4693, allocations: 372 kB / 0.5262 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005799/0.4699, allocations: 442.4 kB / 0.5266 GB, free: 11.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006175/0.4705, allocations: 0.5865 MB / 0.5272 GB, free: 11.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.4717, allocations: 0.9738 MB / 0.5282 GB, free: 10.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4717, allocations: 0 / 0.5282 GB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003445/0.4752, allocations: 1.407 MB / 0.5295 GB, free: 10.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.4752, allocations: 8.531 kB / 0.5295 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.4752, allocations: 4.188 kB / 0.5295 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001907/0.4771, allocations: 269.1 kB / 0.5298 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007254/0.4779, allocations: 191.8 kB / 0.53 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004277/0.4821, allocations: 3.959 MB / 0.5339 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007115/0.4829, allocations: 25.25 kB / 0.5339 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.465e-05/0.483, allocations: 46.48 kB / 0.5339 GB, free: 6.32 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.0003269/0.4833, allocations: 204.4 kB / 0.5341 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.4834, allocations: 56.03 kB / 0.5342 GB, free: 6.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003194/0.4866, allocations: 1.199 MB / 0.5353 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.4867, allocations: 6.25 kB / 0.5353 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4867, allocations: 2.969 kB / 0.5353 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.4867, allocations: 7.422 kB / 0.5354 GB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004161/0.4909, allocations: 2.16 MB / 0.5375 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.4909, allocations: 0 / 0.5375 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005003/0.4914, allocations: 138.5 kB / 0.5376 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001815/0.4932, allocations: 260.1 kB / 0.5378 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.566e-05/0.4933, allocations: 29.08 kB / 0.5379 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003805/0.4971, allocations: 3.909 MB / 0.5417 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4971, allocations: 0 / 0.5417 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00424/0.5014, allocations: 1.65 MB / 0.5433 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004864/0.5019, allocations: 202.9 kB / 0.5435 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.502, allocations: 12 kB / 0.5435 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004191/0.5024, allocations: 19.94 kB / 0.5435 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.5026, allocations: 57.78 kB / 0.5436 GB, free: 14.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.263e-05/0.5027, allocations: 30.64 kB / 0.5436 GB, free: 14.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005971/0.5033, allocations: 0.5108 MB / 0.5441 GB, free: 14.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5033, allocations: 0 / 0.5441 GB, free: 14.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001546/0.5048, allocations: 431.7 kB / 0.5445 GB, free: 13.84 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.0009847/0.5058, allocations: 0.5299 MB / 0.545 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.5076, allocations: 1.192 MB / 0.5462 GB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5077, allocations: 0 / 0.5462 GB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008899/0.5086, allocations: 0.6733 MB / 0.5469 GB, free: 11.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008911/0.5095, allocations: 171.6 kB / 0.547 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002445/0.5119, allocations: 1.562 MB / 0.5485 GB, free: 9.855 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.5124, allocations: 0.9134 MB / 0.5494 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002855/0.5127, allocations: 110.1 kB / 0.5495 GB, free: 8.82 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.5127, allocations: 3.469 kB / 0.5495 GB, free: 8.82 MB / 398.1 MB Notification: Performance of Templates: time 0.02419/0.5369, allocations: 21.42 MB / 0.5705 GB, free: 4.23 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)