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: "" <> buildModelFMU(Chemical.Examples.AcidBase.AcidBaseBufferTest,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_AcidBaseBufferTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.AcidBaseBufferTest,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_AcidBaseBufferTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001285/0.001285, allocations: 195.6 kB / 16.14 MB, free: 6.695 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.234/1.234, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1742/0.1742, allocations: 15.32 MB / 305.3 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 63.91 kB / 369.8 MB, free: 4.383 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08441/0.08555, allocations: 53.6 MB / 423.4 MB, free: 14.73 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.2896/0.3752, allocations: 24.49 MB / 447.9 MB, free: 39.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00699/0.3822, allocations: 10.08 MB / 457.9 MB, free: 34.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002867/0.3825, allocations: 21.12 kB / 458 MB, free: 34.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004521/0.383, allocations: 221.4 kB / 458.2 MB, free: 34.62 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007867/0.3838, allocations: 0.5089 MB / 458.7 MB, free: 34.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.3857, allocations: 1.258 MB / 459.9 MB, free: 33.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005795/0.3863, allocations: 0.9073 MB / 460.8 MB, free: 33.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000357/0.3866, allocations: 434 kB / 461.3 MB, free: 33.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/0.3869, allocations: 403.8 kB / 461.7 MB, free: 33.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003469/0.3873, allocations: 456.3 kB / 462.1 MB, free: 33.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.67e-05/0.3874, allocations: 57.81 kB / 462.2 MB, free: 33.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.389, allocations: 1.022 MB / 463.2 MB, free: 33.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.3891, allocations: 162 kB / 463.3 MB, free: 33.13 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002639/0.3894, allocations: 399.2 kB / 463.7 MB, free: 32.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001984/0.3914, allocations: 1.863 MB / 465.6 MB, free: 32.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3914, allocations: 4 kB / 465.6 MB, free: 32.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.3914, allocations: 0 / 465.6 MB, free: 32.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.3914, allocations: 1.188 kB / 465.6 MB, free: 32.11 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.001814/0.3933, allocations: 1.206 MB / 466.8 MB, free: 31.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3933, allocations: 9.969 kB / 466.8 MB, free: 31.28 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.3934, allocations: 111.5 kB / 466.9 MB, free: 31.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007264/0.3942, allocations: 205.3 kB / 467.1 MB, free: 31.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005129/0.3947, allocations: 479.1 kB / 467.6 MB, free: 30.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.95e-05/0.3947, allocations: 53.78 kB / 467.6 MB, free: 30.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.3948, allocations: 69.09 kB / 467.7 MB, free: 30.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.3962, allocations: 1.094 MB / 468.8 MB, free: 30.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.3962, allocations: 1.219 kB / 468.8 MB, free: 30.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.209e-05/0.3963, allocations: 25.69 kB / 468.8 MB, free: 30.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.3963, allocations: 15.97 kB / 468.9 MB, free: 30.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001852/0.3982, allocations: 1.511 MB / 470.4 MB, free: 29.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003948/0.4022, allocations: 3.005 MB / 473.4 MB, free: 28.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.4034, allocations: 0.9995 MB / 474.4 MB, free: 27.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00042/0.4038, allocations: 387 kB / 474.7 MB, free: 27.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00293/0.4068, allocations: 2.461 MB / 477.2 MB, free: 25.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.645e-05/0.4068, allocations: 37.75 kB / 477.2 MB, free: 25.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=51): time 1.754e-06/0.4068, allocations: 0 / 477.2 MB, free: 25.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.01451/0.4213, allocations: 3.493 MB / 480.7 MB, free: 24.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.396e-05/0.4214, allocations: 58.84 kB / 480.8 MB, free: 24.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006156/0.422, allocations: 0.6897 MB / 481.5 MB, free: 23.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.422, allocations: 36.3 kB / 481.5 MB, free: 23.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.4222, allocations: 353.5 kB / 481.9 MB, free: 23.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.4223, allocations: 242.5 kB / 482.1 MB, free: 23.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.4225, allocations: 152.9 kB / 482.2 MB, free: 23.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.037e-05/0.4226, allocations: 371.5 kB / 482.6 MB, free: 22.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005222/0.4231, allocations: 443.2 kB / 483 MB, free: 22.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005795/0.4237, allocations: 0.5878 MB / 483.6 MB, free: 22.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.4248, allocations: 0.9691 MB / 484.6 MB, free: 21.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.4248, allocations: 0 / 484.6 MB, free: 21.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003632/0.4284, allocations: 1.413 MB / 486 MB, free: 21.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.4284, allocations: 6.781 kB / 486 MB, free: 21.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.4284, allocations: 8.953 kB / 486 MB, free: 21.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002125/0.4306, allocations: 264.7 kB / 486.3 MB, free: 21.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006711/0.4313, allocations: 201.6 kB / 486.5 MB, free: 21.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004034/0.4353, allocations: 3.728 MB / 490.2 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000553/0.4359, allocations: 43.81 kB / 490.3 MB, free: 17.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.63e-05/0.4359, allocations: 37.97 kB / 490.3 MB, free: 17.71 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.0002176/0.4362, allocations: 203.9 kB / 490.5 MB, free: 17.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.4363, allocations: 56.92 kB / 490.5 MB, free: 17.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003533/0.4398, allocations: 1.21 MB / 491.8 MB, free: 16.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.4398, allocations: 11.12 kB / 491.8 MB, free: 16.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4399, allocations: 2.062 kB / 491.8 MB, free: 16.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.4399, allocations: 7.172 kB / 491.8 MB, free: 16.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004347/0.4442, allocations: 2.155 MB / 493.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.4442, allocations: 7.5 kB / 493.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00049/0.4447, allocations: 135 kB / 494.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002059/0.4468, allocations: 265.3 kB / 494.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.51e-05/0.4469, allocations: 22.48 kB / 494.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003605/0.4505, allocations: 3.673 MB / 498 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4505, allocations: 7.312 kB / 498 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003571/0.4541, allocations: 1.648 MB / 499.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002468/0.4543, allocations: 197.2 kB / 499.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.729e-05/0.4544, allocations: 16.66 kB / 499.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.4549, allocations: 33.89 kB / 499.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.455, allocations: 53.8 kB / 500 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-05/0.455, allocations: 29 kB / 0.4883 GB, free: 11.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004452/0.4555, allocations: 0.5103 MB / 0.4888 GB, free: 11.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4555, allocations: 0 / 0.4888 GB, free: 11.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001077/0.4566, allocations: 430.5 kB / 0.4892 GB, free: 11.02 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.004353/0.4609, allocations: 2.622 MB / 0.4918 GB, free: 9.508 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.4623, allocations: 1.186 MB / 0.4929 GB, free: 8.922 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4623, allocations: 4.062 kB / 0.4929 GB, free: 8.918 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006732/0.463, allocations: 0.6755 MB / 0.4936 GB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007763/0.4638, allocations: 141.5 kB / 0.4937 GB, free: 8.469 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.4758, allocations: 8.276 MB / 0.5018 GB, free: 3.629 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003632/0.4762, allocations: 0.9107 MB / 0.5027 GB, free: 2.879 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000519/0.4767, allocations: 119.8 kB / 0.5028 GB, free: 2.781 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/0.4771, allocations: 292.8 kB / 0.5031 GB, free: 2.531 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4771, allocations: 3.938 kB / 0.5031 GB, free: 2.527 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03291/0.51, allocations: 22.99 MB / 0.5255 GB, free: 12.35 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002097/0.5102, allocations: 228.9 kB / 0.5257 GB, free: 12.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.308/2.819, allocations: 0 / 0.5257 GB, free: 12.09 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_AcidBaseBufferTest_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_AcidBaseBufferTest.fmu > Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe 2>&1)