Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.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.Phosphate,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_Phosphate",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.004476/0.004476, allocations: 97.2 kB / 15.73 MB, free: 5.547 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.001061/0.001061, allocations: 190 kB / 16.67 MB, free: 5.48 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.0782/0.0782, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 64.11 kB / 424.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09418/0.09535, allocations: 53.6 MB / 478.3 MB, free: 6.297 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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:4740:7-4740:66: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.Phosphate): time 0.03957/0.135, allocations: 28.39 MB / 0.4948 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2308/0.3658, allocations: 28.69 MB / 0.5228 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/0.367, allocations: 26.88 kB / 0.5229 GB, free: 14.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.3685, allocations: 0.5733 MB / 0.5234 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007276/0.3758, allocations: 2.595 MB / 0.526 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009778/0.3856, allocations: 3.536 MB / 0.5294 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003733/0.3893, allocations: 2.715 MB / 0.5321 GB, free: 8.906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001968/0.3913, allocations: 1.642 MB / 0.5337 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.3933, allocations: 1.408 MB / 0.535 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002184/0.3954, allocations: 1.613 MB / 0.5366 GB, free: 6.828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004611/0.3959, allocations: 252.3 kB / 0.5368 GB, free: 6.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01104/0.407, allocations: 3.149 MB / 0.5399 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006917/0.4077, allocations: 0.6131 MB / 0.5405 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001546/0.4092, allocations: 1.207 MB / 0.5417 GB, free: 4.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0157/0.425, allocations: 5.945 MB / 0.5475 GB, free: 44 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.425, allocations: 0 / 0.5475 GB, free: 44 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.425, allocations: 0 / 0.5475 GB, free: 44 kB / 382.1 MB Notification: Performance of Transformations before backend: time 5.866e-05/0.4251, allocations: 0 / 0.5475 GB, free: 44 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.006897/0.432, allocations: 3.071 MB / 0.5505 GB, free: 12.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.432, allocations: 12.03 kB / 0.5505 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003394/0.4324, allocations: 258 kB / 0.5508 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002243/0.4346, allocations: 485.2 kB / 0.5512 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001999/0.4367, allocations: 1.096 MB / 0.5523 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002156/0.4369, allocations: 251 kB / 0.5525 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003872/0.4373, allocations: 196.4 kB / 0.5527 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004131/0.4414, allocations: 2.499 MB / 0.5552 GB, free: 8.066 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.311e-05/0.4415, allocations: 7.938 kB / 0.5552 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002301/0.4417, allocations: 72 kB / 0.5552 GB, free: 7.988 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.084e-05/0.4418, allocations: 48 kB / 0.5553 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005041/0.4468, allocations: 3.184 MB / 0.5584 GB, free: 4.754 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01534/0.4622, allocations: 8.349 MB / 0.5665 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009529/0.4717, allocations: 5.419 MB / 0.5718 GB, free: 6.609 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002267/0.474, allocations: 1.275 MB / 0.5731 GB, free: 5.336 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0159/0.49, allocations: 10.25 MB / 0.5831 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/0.49, allocations: 47.88 kB / 0.5831 GB, free: 9.965 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001186/0.4912, allocations: 238.8 kB / 0.5834 GB, free: 9.73 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 1.077e-05/0.4913, allocations: 0 / 0.5834 GB, free: 9.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=187): time 0.02986/0.5211, allocations: 7.595 MB / 0.5908 GB, free: 2.105 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.5212, allocations: 73.41 kB / 0.5909 GB, free: 2.023 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.5225, allocations: 0.9013 MB / 0.5917 GB, free: 1.105 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001943/0.5227, allocations: 60.36 kB / 0.5918 GB, free: 1.043 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006022/0.5233, allocations: 0.8208 MB / 0.5926 GB, free: 216 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006437/0.5239, allocations: 0.6663 MB / 0.5932 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006535/0.5246, allocations: 419.9 kB / 0.5936 GB, free: 15.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.5247, allocations: 304.9 kB / 0.5939 GB, free: 14.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.5262, allocations: 0.7877 MB / 0.5947 GB, free: 14.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001916/0.5281, allocations: 1.373 MB / 0.596 GB, free: 12.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003703/0.5318, allocations: 2.363 MB / 0.5984 GB, free: 9.836 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.447e-05/0.5318, allocations: 8 kB / 0.5984 GB, free: 9.828 MB / 446.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01231/0.5442, allocations: 3.389 MB / 0.6017 GB, free: 6.457 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.5442, allocations: 15.98 kB / 0.6017 GB, free: 6.441 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.712e-05/0.5443, allocations: 16 kB / 0.6017 GB, free: 6.426 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003805/0.5481, allocations: 0.8208 MB / 0.6025 GB, free: 5.621 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/0.5501, allocations: 0.5183 MB / 0.603 GB, free: 5.105 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005874/0.556, allocations: 3.892 MB / 0.6068 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.5576, allocations: 71.98 kB / 0.6069 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003884/0.5581, allocations: 119.9 kB / 0.607 GB, free: 0.7617 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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 (268): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001048/0.5591, allocations: 399.8 kB / 0.6074 GB, free: 372 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005047/0.5596, allocations: 151 kB / 0.6075 GB, free: 220 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01272/0.5724, allocations: 3.329 MB / 0.6108 GB, free: 12.94 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.11e-05/0.5724, allocations: 19.94 kB / 0.6108 GB, free: 12.92 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/0.5724, allocations: 10.62 kB / 0.6108 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.568e-05/0.5725, allocations: 11.91 kB / 0.6108 GB, free: 12.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/0.5884, allocations: 5.231 MB / 0.6159 GB, free: 7.621 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/0.5885, allocations: 0 / 0.6159 GB, free: 7.621 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/0.5902, allocations: 367.5 kB / 0.6163 GB, free: 7.262 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003838/0.5941, allocations: 0.797 MB / 0.617 GB, free: 6.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004289/0.5945, allocations: 67.95 kB / 0.6171 GB, free: 6.414 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005697/0.6002, allocations: 3.799 MB / 0.6208 GB, free: 2.355 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.6002, allocations: 0 / 0.6208 GB, free: 2.355 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/0.6144, allocations: 4.239 MB / 0.625 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004853/0.6149, allocations: 214.7 kB / 0.6252 GB, free: 13.89 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003865/0.6153, allocations: 39.98 kB / 0.6252 GB, free: 13.85 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/0.6165, allocations: 39.98 kB / 0.6252 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005411/0.617, allocations: 193.7 kB / 0.6254 GB, free: 13.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002182/0.6173, allocations: 83.94 kB / 0.6255 GB, free: 13.54 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009009/0.6182, allocations: 0.5768 MB / 0.6261 GB, free: 12.96 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.6182, allocations: 0 / 0.6261 GB, free: 12.96 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003655/0.6219, allocations: 1.196 MB / 0.6272 GB, free: 11.76 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (solution.temperature,H.logn,H3PO4.logn,H2PO4.logn,HPO4.logn,PO4.logn,H2O.logn,OH.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 (190): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01695/0.6388, allocations: 6.036 MB / 0.6331 GB, free: 5.766 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005081/0.6439, allocations: 2.563 MB / 0.6356 GB, free: 3.164 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.644, allocations: 0 / 0.6356 GB, free: 3.164 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002857/0.6468, allocations: 1.505 MB / 0.6371 GB, free: 1.617 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/0.6488, allocations: 321 kB / 0.6374 GB, free: 1.336 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04067/0.6895, allocations: 15.85 MB / 0.6529 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001416/0.6909, allocations: 1.321 MB / 0.6542 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001861/0.6928, allocations: 424.5 kB / 0.6546 GB, free: 15 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001439/0.6942, allocations: 0.8322 MB / 0.6554 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of SimCode: time 1.052e-06/0.6943, allocations: 0 / 0.6554 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1075/0.8017, allocations: 60.01 MB / 0.714 GB, free: 2.578 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.84/17.65, allocations: 7.766 kB / 0.714 GB, free: 2.574 MB / 0.545 GB (rm -f Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Phosphate.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.AcidBase.Phosphate_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_Phosphate.fmu > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1)