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.00703/0.00703, 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.001705/0.001705, 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.437/1.437, 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.08719/0.08719, allocations: 15.3 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 67.89 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1381, allocations: 53.6 MB / 478.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.01024/0.1484, allocations: 7.541 MB / 485.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02926/0.1777, allocations: 23.32 MB / 0.4972 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001173/0.1789, allocations: 23.81 kB / 0.4973 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001656/0.1806, allocations: 476.7 kB / 0.4977 GB, free: 6.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00559/0.1863, allocations: 1.936 MB / 0.4996 GB, free: 4.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008004/0.1943, allocations: 2.92 MB / 0.5024 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2202/0.4145, allocations: 2.13 MB / 0.5045 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001912/0.4164, allocations: 1.237 MB / 0.5057 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00146/0.4179, allocations: 1.061 MB / 0.5068 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00166/0.4196, allocations: 1.211 MB / 0.508 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002795/0.4199, allocations: 190.9 kB / 0.5081 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009598/0.4295, allocations: 2.508 MB / 0.5106 GB, free: 5.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001172/0.4307, allocations: 478.8 kB / 0.511 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001772/0.4325, allocations: 0.9466 MB / 0.512 GB, free: 4.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.4443, allocations: 4.707 MB / 0.5166 GB, free: 4.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.4444, allocations: 1.75 kB / 0.5166 GB, free: 4.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4444, allocations: 0 / 0.5166 GB, free: 4.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.25e-05/0.4444, allocations: 0 / 0.5166 GB, free: 4.527 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.005258/0.4497, allocations: 2.461 MB / 0.519 GB, free: 3.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.4498, allocations: 9.844 kB / 0.519 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002663/0.45, allocations: 214.8 kB / 0.5192 GB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001761/0.4518, allocations: 400.4 kB / 0.5196 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/0.4533, allocations: 0.9019 MB / 0.5204 GB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.4534, allocations: 168.7 kB / 0.5206 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000279/0.4537, allocations: 149.5 kB / 0.5207 GB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002993/0.4567, allocations: 2.034 MB / 0.5227 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.879e-05/0.4567, allocations: 3.844 kB / 0.5227 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001608/0.4569, allocations: 60.59 kB / 0.5228 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.798e-05/0.4569, allocations: 35.69 kB / 0.5228 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003443/0.4604, allocations: 2.694 MB / 0.5255 GB, free: 1.777 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.01017/0.4705, allocations: 6.477 MB / 0.5318 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004858/0.4754, allocations: 3.323 MB / 0.535 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001339/0.4768, allocations: 0.8843 MB / 0.5359 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01044/0.4872, allocations: 7.218 MB / 0.5429 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/0.4873, allocations: 43.56 kB / 0.543 GB, free: 6.02 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008407/0.4882, allocations: 169.4 kB / 0.5431 GB, free: 5.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=117): time 4.749e-06/0.4882, allocations: 4 kB / 0.5432 GB, free: 5.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=140): time 0.02225/0.5104, allocations: 5.42 MB / 0.5484 GB, free: 376 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.5105, allocations: 64.72 kB / 0.5485 GB, free: 296 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.5121, allocations: 1.038 MB / 0.5495 GB, free: 15.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002272/0.5123, allocations: 45.7 kB / 0.5496 GB, free: 15.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005707/0.5129, allocations: 0.7007 MB / 0.5502 GB, free: 14.47 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005064/0.5134, allocations: 0.5022 MB / 0.5507 GB, free: 13.97 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005406/0.514, allocations: 335.4 kB / 0.5511 GB, free: 13.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.5141, allocations: 301.1 kB / 0.5513 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.5153, allocations: 0.6481 MB / 0.552 GB, free: 12.69 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/0.517, allocations: 1.113 MB / 0.5531 GB, free: 11.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002844/0.5198, allocations: 1.806 MB / 0.5548 GB, free: 9.453 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/0.5198, allocations: 4 kB / 0.5548 GB, free: 9.449 MB / 414.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.007229/0.5271, allocations: 2.416 MB / 0.5572 GB, free: 7.105 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/0.5271, allocations: 15.94 kB / 0.5572 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.859e-05/0.5272, allocations: 12 kB / 0.5572 GB, free: 7.078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003057/0.5302, allocations: 497.6 kB / 0.5577 GB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/0.532, allocations: 416.8 kB / 0.5581 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006371/0.5384, allocations: 3.862 MB / 0.5619 GB, free: 2.094 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.54, allocations: 59.92 kB / 0.5619 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002171/0.5402, allocations: 95.95 kB / 0.562 GB, free: 1.941 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.0007701/0.541, allocations: 337.8 kB / 0.5623 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003407/0.5414, allocations: 123.2 kB / 0.5625 GB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007087/0.5485, allocations: 2.132 MB / 0.5645 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.182e-05/0.5485, allocations: 19.94 kB / 0.5646 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.5485, allocations: 4 kB / 0.5646 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.808e-05/0.5486, allocations: 7.969 kB / 0.5646 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009615/0.5582, allocations: 3.549 MB / 0.568 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/0.5582, allocations: 0 / 0.568 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/0.5596, allocations: 277.7 kB / 0.5683 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002941/0.5626, allocations: 466.1 kB / 0.5687 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002092/0.5628, allocations: 50.88 kB / 0.5688 GB, free: 10.99 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00571/0.5685, allocations: 3.776 MB / 0.5725 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.5685, allocations: 0 / 0.5725 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007902/0.5764, allocations: 2.755 MB / 0.5752 GB, free: 4.18 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005031/0.577, allocations: 188.3 kB / 0.5753 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002164/0.5772, allocations: 27.94 kB / 0.5754 GB, free: 3.949 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00081/0.578, allocations: 35.98 kB / 0.5754 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003055/0.5783, allocations: 121.1 kB / 0.5755 GB, free: 3.797 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/0.5785, allocations: 55.97 kB / 0.5756 GB, free: 3.742 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009929/0.5795, allocations: 0.7147 MB / 0.5763 GB, free: 3.016 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5795, allocations: 0 / 0.5763 GB, free: 3.016 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003168/0.5827, allocations: 0.9584 MB / 0.5772 GB, free: 2.055 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.01052/0.5932, allocations: 4.314 MB / 0.5814 GB, free: 13.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004162/0.5974, allocations: 2.007 MB / 0.5834 GB, free: 11.85 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/0.5974, allocations: 4 kB / 0.5834 GB, free: 11.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002094/0.5995, allocations: 1.151 MB / 0.5845 GB, free: 10.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.601, allocations: 256.7 kB / 0.5848 GB, free: 10.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02745/0.6285, allocations: 12.31 MB / 0.5968 GB, free: 13.68 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008992/0.6294, allocations: 1.19 MB / 0.5979 GB, free: 12.46 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00124/0.6307, allocations: 325.5 kB / 0.5982 GB, free: 12.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009933/0.6317, allocations: 0.667 MB / 0.5989 GB, free: 11.48 MB / 462.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6317, allocations: 0 / 0.5989 GB, free: 11.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/0.732, allocations: 45.57 MB / 0.6434 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.96/16.69, allocations: 4 kB / 0.6434 GB, free: 14.27 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)