Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.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.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInWater,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater",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.006053/0.006054, allocations: 98.03 kB / 15.73 MB, free: 6.012 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.00144/0.00144, allocations: 194.8 kB / 16.67 MB, free: 5.926 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09545/0.09545, allocations: 15.3 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001834, allocations: 64.12 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1119, allocations: 53.61 MB / 478.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.00904/0.121, allocations: 7.537 MB / 485.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02893/0.15, allocations: 23.32 MB / 0.4972 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001071/0.1511, allocations: 19.88 kB / 0.4972 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.1524, allocations: 484.6 kB / 0.4977 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005679/0.1582, allocations: 1.94 MB / 0.4996 GB, free: 4.844 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007901/0.1661, allocations: 2.92 MB / 0.5025 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2225/0.3886, allocations: 2.123 MB / 0.5045 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.3903, allocations: 1.241 MB / 0.5057 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001351/0.3917, allocations: 1.064 MB / 0.5068 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001777/0.3935, allocations: 1.208 MB / 0.508 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003989/0.3939, allocations: 190.5 kB / 0.5081 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007141/0.4011, allocations: 2.519 MB / 0.5106 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009994/0.4021, allocations: 468.6 kB / 0.511 GB, free: 5.227 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001545/0.4037, allocations: 0.9492 MB / 0.512 GB, free: 4.992 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01161/0.4153, allocations: 4.707 MB / 0.5166 GB, free: 4.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4153, allocations: 0 / 0.5166 GB, free: 4.547 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4153, allocations: 1.156 kB / 0.5166 GB, free: 4.547 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.894e-05/0.4154, allocations: 0 / 0.5166 GB, free: 4.547 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: 368 * Number of variables: 368 Notification: Performance of Generate backend data structure: time 0.005991/0.4214, allocations: 2.457 MB / 0.519 GB, free: 3.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4215, allocations: 9.781 kB / 0.519 GB, free: 3.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002978/0.4218, allocations: 219.7 kB / 0.5192 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001843/0.4236, allocations: 397.5 kB / 0.5196 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001573/0.4252, allocations: 0.8961 MB / 0.5204 GB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.4254, allocations: 169.5 kB / 0.5206 GB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002714/0.4257, allocations: 149.7 kB / 0.5207 GB, free: 2.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003133/0.4288, allocations: 2.039 MB / 0.5227 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.192e-05/0.4288, allocations: 0 / 0.5227 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001562/0.429, allocations: 56.03 kB / 0.5228 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.029e-05/0.429, allocations: 34.56 kB / 0.5228 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004103/0.4331, allocations: 2.697 MB / 0.5255 GB, free: 1.832 MB / 382.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.01152/0.4447, allocations: 6.489 MB / 0.5318 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004984/0.4497, allocations: 3.319 MB / 0.535 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.4511, allocations: 0.8869 MB / 0.5359 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01123/0.4623, allocations: 7.213 MB / 0.5429 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/0.4624, allocations: 43.56 kB / 0.543 GB, free: 6.09 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009192/0.4633, allocations: 178.1 kB / 0.5432 GB, free: 5.918 MB / 398.1 MB Notification: Performance of pre-optimization done (n=117): time 3.347e-06/0.4633, allocations: 0 / 0.5432 GB, free: 5.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.02103/0.4844, allocations: 5.415 MB / 0.5484 GB, free: 448 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.4845, allocations: 76.66 kB / 0.5485 GB, free: 356 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001448/0.4859, allocations: 1.03 MB / 0.5495 GB, free: 15.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002186/0.4861, allocations: 57.17 kB / 0.5496 GB, free: 15.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005606/0.4867, allocations: 0.691 MB / 0.5503 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005566/0.4873, allocations: 0.5055 MB / 0.5507 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005583/0.4878, allocations: 331.4 kB / 0.5511 GB, free: 13.71 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.488, allocations: 302.4 kB / 0.5514 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.4892, allocations: 0.652 MB / 0.552 GB, free: 12.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/0.4908, allocations: 1.108 MB / 0.5531 GB, free: 11.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002855/0.4937, allocations: 1.802 MB / 0.5548 GB, free: 9.527 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.328e-06/0.4937, allocations: 8 kB / 0.5548 GB, free: 9.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006946/0.5007, allocations: 2.41 MB / 0.5572 GB, free: 7.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.32e-05/0.5008, allocations: 16.06 kB / 0.5572 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.469e-05/0.5008, allocations: 19.98 kB / 0.5572 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00271/0.5035, allocations: 486 kB / 0.5577 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00176/0.5053, allocations: 419.8 kB / 0.5581 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006268/0.5116, allocations: 3.865 MB / 0.5619 GB, free: 2.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001833/0.5135, allocations: 59.92 kB / 0.5619 GB, free: 2.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003529/0.5139, allocations: 92.03 kB / 0.562 GB, free: 2.012 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (212): * Single equations (assignments): 209 * 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 {(2,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.0007869/0.5147, allocations: 333 kB / 0.5623 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003185/0.515, allocations: 127.2 kB / 0.5624 GB, free: 1.578 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006493/0.5215, allocations: 2.135 MB / 0.5645 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.222e-05/0.5215, allocations: 19.92 kB / 0.5646 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.5215, allocations: 0 / 0.5646 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.27e-05/0.5216, allocations: 15.97 kB / 0.5646 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008528/0.5301, allocations: 3.542 MB / 0.568 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.84e-06/0.5301, allocations: 0 / 0.568 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.5313, allocations: 281.9 kB / 0.5683 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002541/0.5338, allocations: 465.9 kB / 0.5687 GB, free: 11.11 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/0.534, allocations: 47.95 kB / 0.5688 GB, free: 11.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00519/0.5392, allocations: 3.778 MB / 0.5725 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.5392, allocations: 0 / 0.5725 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007239/0.5465, allocations: 2.753 MB / 0.5752 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004504/0.547, allocations: 188.4 kB / 0.5753 GB, free: 4.043 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/0.5472, allocations: 27.94 kB / 0.5754 GB, free: 4.016 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007507/0.548, allocations: 31.98 kB / 0.5754 GB, free: 3.984 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003229/0.5483, allocations: 121.1 kB / 0.5755 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/0.5484, allocations: 67.89 kB / 0.5756 GB, free: 3.801 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001009/0.5494, allocations: 0.703 MB / 0.5763 GB, free: 3.086 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5495, allocations: 0 / 0.5763 GB, free: 3.086 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003237/0.5527, allocations: 0.9622 MB / 0.5772 GB, free: 2.121 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (solution.temperature,HCO3.logn,H.logn,CO2_liquid.logn,liquidWater.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 (144): * Single equations (assignments): 141 * 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 {(2,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.01024/0.563, allocations: 4.316 MB / 0.5814 GB, free: 13.92 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003932/0.5669, allocations: 2.013 MB / 0.5834 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.5669, allocations: 0 / 0.5834 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002049/0.569, allocations: 1.142 MB / 0.5845 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.5705, allocations: 259.4 kB / 0.5847 GB, free: 10.51 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02537/0.5959, allocations: 12.32 MB / 0.5968 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009012/0.5969, allocations: 1.183 MB / 0.5979 GB, free: 12.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00128/0.5982, allocations: 333.5 kB / 0.5983 GB, free: 12.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.5992, allocations: 0.6593 MB / 0.5989 GB, free: 11.55 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5992, allocations: 0 / 0.5989 GB, free: 11.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09444/0.6936, allocations: 45.58 MB / 0.6434 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.59/16.28, allocations: 3.938 kB / 0.6434 GB, free: 14.34 MB / 0.4981 GB (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-06 Chemical_Chemical_Examples_AcidBase_CarbonDioxideInWater.fmu > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInWater.pipe 2>&1)