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.001824/0.001824, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003012/0.003012, allocations: 197.5 kB / 16.53 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.62/2.62, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4777/0.4777, allocations: 15.32 MB / 305.7 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002327/0.002327, allocations: 59.91 kB / 370.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1961/0.1984, allocations: 53.61 MB / 424.1 MB, free: 14.18 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.6804/0.8789, allocations: 24.07 MB / 448.1 MB, free: 40.12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01822/0.8971, allocations: 10.09 MB / 458.2 MB, free: 35.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001218/0.8985, allocations: 3.312 kB / 458.2 MB, free: 35.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001488/0.9, allocations: 241.9 kB / 458.5 MB, free: 34.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003386/0.9034, allocations: 0.578 MB / 459 MB, free: 34.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006507/0.91, allocations: 1.442 MB / 460.5 MB, free: 33.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002223/0.9122, allocations: 0.9384 MB / 461.4 MB, free: 33.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009818/0.9133, allocations: 0.5085 MB / 461.9 MB, free: 33.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007645/0.9141, allocations: 416.9 kB / 462.3 MB, free: 33.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009121/0.915, allocations: 474.1 kB / 462.8 MB, free: 33.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000183/0.9152, allocations: 87.66 kB / 462.9 MB, free: 33.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005818/0.921, allocations: 1.038 MB / 463.9 MB, free: 33.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000475/0.9216, allocations: 201.1 kB / 464.1 MB, free: 33.26 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000784/0.9224, allocations: 429.2 kB / 464.5 MB, free: 33.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007445/0.9299, allocations: 1.974 MB / 466.5 MB, free: 32.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.93, allocations: 0 / 466.5 MB, free: 32.13 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.93, allocations: 1.094 kB / 466.5 MB, free: 32.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.618e-05/0.93, allocations: 0 / 466.5 MB, free: 32.13 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.004012/0.9341, allocations: 1.206 MB / 467.7 MB, free: 31.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/0.9341, allocations: 9.781 kB / 467.7 MB, free: 31.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001814/0.9343, allocations: 115.1 kB / 467.8 MB, free: 31.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001796/0.9362, allocations: 212.8 kB / 468 MB, free: 31.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001146/0.9373, allocations: 475.1 kB / 468.5 MB, free: 30.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.072e-05/0.9374, allocations: 53.56 kB / 468.6 MB, free: 30.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000207/0.9377, allocations: 69.31 kB / 468.6 MB, free: 30.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/0.9404, allocations: 1.082 MB / 469.7 MB, free: 30.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.9405, allocations: 5.281 kB / 469.7 MB, free: 30.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001165/0.9407, allocations: 32.05 kB / 469.7 MB, free: 30.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.876e-05/0.9407, allocations: 16.19 kB / 469.8 MB, free: 30.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003346/0.9441, allocations: 1.509 MB / 471.3 MB, free: 29.76 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007839/0.9519, allocations: 3.031 MB / 474.3 MB, free: 28.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/0.9547, allocations: 0.9875 MB / 475.3 MB, free: 27.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000931/0.9557, allocations: 387.7 kB / 475.7 MB, free: 27.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006521/0.9623, allocations: 2.451 MB / 478.1 MB, free: 25.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.9624, allocations: 37.94 kB / 478.2 MB, free: 25.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=51): time 4.689e-06/0.9624, allocations: 0 / 478.2 MB, free: 25.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=68): time 0.02582/0.9882, allocations: 3.494 MB / 481.6 MB, free: 24.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.9883, allocations: 59.52 kB / 481.7 MB, free: 24.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.9898, allocations: 0.6907 MB / 482.4 MB, free: 23.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001578/0.99, allocations: 47.89 kB / 482.4 MB, free: 23.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003173/0.9904, allocations: 349 kB / 482.8 MB, free: 23.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003284/0.9907, allocations: 233.3 kB / 483 MB, free: 23.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004267/0.9911, allocations: 153 kB / 483.2 MB, free: 23.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.9913, allocations: 366.5 kB / 483.5 MB, free: 22.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/0.9925, allocations: 450.1 kB / 484 MB, free: 22.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.9938, allocations: 0.5902 MB / 484.5 MB, free: 22.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002447/0.9963, allocations: 0.9732 MB / 485.5 MB, free: 21.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.9963, allocations: 1.281 kB / 485.5 MB, free: 21.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.007105/1.003, allocations: 1.405 MB / 486.9 MB, free: 21.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/1.004, allocations: 7.266 kB / 486.9 MB, free: 21.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.165e-05/1.004, allocations: 8.469 kB / 486.9 MB, free: 21.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003758/1.007, allocations: 266.9 kB / 487.2 MB, free: 21.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/1.009, allocations: 195.7 kB / 487.4 MB, free: 21.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007717/1.017, allocations: 3.959 MB / 491.4 MB, free: 17.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/1.018, allocations: 23.92 kB / 491.4 MB, free: 17.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/1.018, allocations: 39.39 kB / 491.4 MB, free: 17.53 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.0005485/1.019, allocations: 209.9 kB / 491.6 MB, free: 17.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/1.019, allocations: 62.17 kB / 491.7 MB, free: 17.31 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006326/1.026, allocations: 1.193 MB / 492.9 MB, free: 16.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.926e-05/1.026, allocations: 7.062 kB / 492.9 MB, free: 16.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/1.026, allocations: 1.375 kB / 492.9 MB, free: 16.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.364e-05/1.026, allocations: 4.125 kB / 492.9 MB, free: 16.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008836/1.035, allocations: 2.164 MB / 495 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/1.035, allocations: 0.6562 kB / 495 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/1.036, allocations: 136.3 kB / 495.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003642/1.039, allocations: 263 kB / 495.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001464/1.04, allocations: 25.36 kB / 495.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007346/1.047, allocations: 3.917 MB / 499.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/1.047, allocations: 0 / 499.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006206/1.053, allocations: 1.649 MB / 0.4893 GB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005916/1.054, allocations: 198.4 kB / 0.4895 GB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/1.054, allocations: 16.12 kB / 0.4895 GB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007302/1.055, allocations: 15.66 kB / 0.4895 GB, free: 11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002469/1.055, allocations: 61.75 kB / 0.4896 GB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.781e-05/1.055, allocations: 24.98 kB / 0.4896 GB, free: 10.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008337/1.056, allocations: 0.5099 MB / 0.4901 GB, free: 10.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.3e-07/1.056, allocations: 0 / 0.4901 GB, free: 10.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002206/1.058, allocations: 433.5 kB / 0.4905 GB, free: 10.63 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.008606/1.067, allocations: 2.625 MB / 0.4931 GB, free: 9.105 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003808/1.071, allocations: 1.225 MB / 0.4943 GB, free: 8.496 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.071, allocations: 0 / 0.4943 GB, free: 8.496 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001533/1.072, allocations: 0.6757 MB / 0.4949 GB, free: 8.102 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/1.074, allocations: 157.3 kB / 0.4951 GB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02339/1.098, allocations: 7.986 MB / 0.5029 GB, free: 3.199 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005266/1.098, allocations: 0.9096 MB / 0.5038 GB, free: 2.344 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001214/1.1, allocations: 128.1 kB / 0.5039 GB, free: 2.234 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006757/1.1, allocations: 292 kB / 0.5042 GB, free: 1.98 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/1.1, allocations: 0 / 0.5042 GB, free: 1.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2289/1.329, allocations: 23.85 MB / 0.5274 GB, free: 10.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 28.45/29.78, allocations: 11.88 kB / 0.5275 GB, free: 10.38 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Chemical_Chemical_Examples_AcidBase_AcidBaseBufferTest.fmu > Chemical_Chemical.Examples.AcidBase.AcidBaseBufferTest.pipe 2>&1)