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.005711/0.005711, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001361/0.001361, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.514/1.514, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08819/0.08819, allocations: 15.31 MB / 305.8 MB, free: 15.38 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 68.09 kB / 424.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1066, allocations: 53.61 MB / 478.3 MB, free: 6.262 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.03864/0.1453, allocations: 24.49 MB / 0.491 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.1576, allocations: 10.08 MB / 0.5008 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006159/0.1583, allocations: 11.94 kB / 0.5009 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000737/0.159, allocations: 242.2 kB / 0.5011 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001517/0.1605, allocations: 0.5662 MB / 0.5016 GB, free: 2.918 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003758/0.1643, allocations: 1.452 MB / 0.5031 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001298/0.1656, allocations: 0.9429 MB / 0.504 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2089/0.3745, allocations: 0.5015 MB / 0.5045 GB, free: 19.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008487/0.3754, allocations: 420.4 kB / 0.5049 GB, free: 19.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007611/0.3762, allocations: 475.1 kB / 0.5053 GB, free: 19.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001635/0.3764, allocations: 84.22 kB / 0.5054 GB, free: 19.13 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00307/0.3795, allocations: 1.043 MB / 0.5064 GB, free: 19.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002518/0.3797, allocations: 189.5 kB / 0.5066 GB, free: 19.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005226/0.3803, allocations: 433.6 kB / 0.507 GB, free: 18.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004866/0.3851, allocations: 1.994 MB / 0.509 GB, free: 18.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3852, allocations: 7.344 kB / 0.509 GB, free: 18.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3852, allocations: 0 / 0.509 GB, free: 18.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.654e-05/0.3852, allocations: 0 / 0.509 GB, free: 18.79 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.002431/0.3877, allocations: 1.233 MB / 0.5102 GB, free: 18.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.3877, allocations: 10.61 kB / 0.5102 GB, free: 18.06 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000133/0.3879, allocations: 108.5 kB / 0.5103 GB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008584/0.3887, allocations: 212 kB / 0.5105 GB, free: 17.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007415/0.3895, allocations: 491.5 kB / 0.511 GB, free: 17.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.946e-05/0.3895, allocations: 55.03 kB / 0.511 GB, free: 17.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.3897, allocations: 72.36 kB / 0.5111 GB, free: 17.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.3912, allocations: 1.089 MB / 0.5121 GB, free: 17.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.3913, allocations: 0 / 0.5121 GB, free: 17.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.886e-05/0.3913, allocations: 26.25 kB / 0.5122 GB, free: 17.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.3914, allocations: 20.31 kB / 0.5122 GB, free: 17.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.3933, allocations: 1.512 MB / 0.5137 GB, free: 17.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005203/0.3985, allocations: 3.016 MB / 0.5166 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.4, allocations: 0.9958 MB / 0.5176 GB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004898/0.4005, allocations: 382 kB / 0.5179 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003588/0.4041, allocations: 2.45 MB / 0.5203 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.95e-05/0.4042, allocations: 41 kB / 0.5204 GB, free: 13.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=51): time 2.915e-06/0.4042, allocations: 3.688 kB / 0.5204 GB, free: 13.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.01599/0.4202, allocations: 3.504 MB / 0.5238 GB, free: 12.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.4202, allocations: 59.09 kB / 0.5239 GB, free: 12.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008665/0.4211, allocations: 0.6954 MB / 0.5245 GB, free: 12.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.359e-05/0.4212, allocations: 36.11 kB / 0.5246 GB, free: 12.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.4214, allocations: 358 kB / 0.5249 GB, free: 11.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000166/0.4216, allocations: 252 kB / 0.5252 GB, free: 11.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.4219, allocations: 152.5 kB / 0.5253 GB, free: 11.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.422, allocations: 367.2 kB / 0.5257 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00058/0.4226, allocations: 445.2 kB / 0.5261 GB, free: 11.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006327/0.4232, allocations: 0.5938 MB / 0.5267 GB, free: 10.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/0.4243, allocations: 0.9672 MB / 0.5276 GB, free: 10.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4243, allocations: 1.953 kB / 0.5276 GB, free: 10.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003727/0.4281, allocations: 1.412 MB / 0.529 GB, free: 9.621 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.4281, allocations: 6.875 kB / 0.529 GB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.4281, allocations: 9.5 kB / 0.529 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/0.4303, allocations: 266.5 kB / 0.5293 GB, free: 9.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007651/0.431, allocations: 191.8 kB / 0.5294 GB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004553/0.4356, allocations: 3.969 MB / 0.5333 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008004/0.4364, allocations: 21.72 kB / 0.5333 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.298e-05/0.4365, allocations: 39.77 kB / 0.5334 GB, free: 5.926 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.0003609/0.4369, allocations: 206 kB / 0.5336 GB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.4371, allocations: 67.12 kB / 0.5336 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0035/0.4406, allocations: 1.195 MB / 0.5348 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.4406, allocations: 6.062 kB / 0.5348 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.4406, allocations: 5.109 kB / 0.5348 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.4406, allocations: 6.828 kB / 0.5348 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004485/0.4451, allocations: 2.153 MB / 0.5369 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.4451, allocations: 2 kB / 0.5369 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005219/0.4457, allocations: 138.9 kB / 0.537 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002061/0.4477, allocations: 263.6 kB / 0.5373 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.6e-05/0.4478, allocations: 17.09 kB / 0.5373 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003963/0.4518, allocations: 3.909 MB / 0.5411 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4518, allocations: 2.625 kB / 0.5411 GB, free: 128 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004366/0.4562, allocations: 1.663 MB / 0.5428 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004307/0.4566, allocations: 192.6 kB / 0.5429 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.4568, allocations: 19.94 kB / 0.543 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004541/0.4572, allocations: 16 kB / 0.543 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.4574, allocations: 57.48 kB / 0.543 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.495e-05/0.4575, allocations: 27.98 kB / 0.5431 GB, free: 14.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000647/0.4581, allocations: 0.5069 MB / 0.5436 GB, free: 13.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.194e-06/0.4581, allocations: 0 / 0.5436 GB, free: 13.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001505/0.4596, allocations: 446.8 kB / 0.544 GB, free: 13.5 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.005856/0.4655, allocations: 2.629 MB / 0.5465 GB, free: 10.92 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002142/0.4677, allocations: 1.196 MB / 0.5477 GB, free: 9.727 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4677, allocations: 0 / 0.5477 GB, free: 9.727 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.4688, allocations: 0.6855 MB / 0.5484 GB, free: 9.039 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.4699, allocations: 168.4 kB / 0.5485 GB, free: 8.906 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/0.4854, allocations: 7.868 MB / 0.5562 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006187/0.486, allocations: 0.9168 MB / 0.5571 GB, free: 8 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005625/0.4866, allocations: 131.7 kB / 0.5573 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004572/0.4871, allocations: 291.2 kB / 0.5575 GB, free: 15.64 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4871, allocations: 2.688 kB / 0.5575 GB, free: 15.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06916/0.5562, allocations: 24.1 MB / 0.5811 GB, free: 8.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/15.13, allocations: 4.828 kB / 0.5811 GB, free: 8.496 MB / 430.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)