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.007608/0.007608, allocations: 99.72 kB / 15.73 MB, free: 6.5 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.00193/0.00193, allocations: 199.9 kB / 16.68 MB, free: 6.371 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2059/0.2059, allocations: 15.32 MB / 305.9 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 59.91 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.242, allocations: 53.6 MB / 478.3 MB, free: 25.62 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInWater): time 0.006836/0.2489, allocations: 7.551 MB / 485.9 MB, free: 20.22 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02083/0.2697, allocations: 23.33 MB / 0.4973 GB, free: 1.328 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001231/0.271, allocations: 19.31 kB / 0.4973 GB, free: 1.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00122/0.2722, allocations: 489.2 kB / 0.4977 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00485/0.2771, allocations: 1.949 MB / 0.4996 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00734/0.2845, allocations: 2.937 MB / 0.5025 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002795/0.2873, allocations: 2.13 MB / 0.5046 GB, free: 11.9 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001396/0.2887, allocations: 1.241 MB / 0.5058 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.2899, allocations: 1.068 MB / 0.5068 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001455/0.2914, allocations: 1.207 MB / 0.508 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002808/0.2917, allocations: 196 kB / 0.5082 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007902/0.2996, allocations: 2.508 MB / 0.5107 GB, free: 5.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005487/0.3002, allocations: 478.6 kB / 0.5111 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.3013, allocations: 0.9451 MB / 0.512 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01005/0.3114, allocations: 4.704 MB / 0.5166 GB, free: 15.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3114, allocations: 4 kB / 0.5166 GB, free: 15.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3114, allocations: 0 / 0.5166 GB, free: 15.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.672e-05/0.3115, allocations: 0 / 0.5166 GB, free: 15.7 MB / 398.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.004761/0.3162, allocations: 2.46 MB / 0.519 GB, free: 13.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3163, allocations: 12.03 kB / 0.5191 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002508/0.3166, allocations: 215.5 kB / 0.5193 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001781/0.3183, allocations: 403.2 kB / 0.5196 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.3199, allocations: 0.89 MB / 0.5205 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/0.3201, allocations: 166.8 kB / 0.5207 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003119/0.3204, allocations: 156.3 kB / 0.5208 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003585/0.324, allocations: 2.029 MB / 0.5228 GB, free: 9.223 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/0.324, allocations: 0 / 0.5228 GB, free: 9.223 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000168/0.3242, allocations: 60 kB / 0.5229 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.941e-05/0.3242, allocations: 43.98 kB / 0.5229 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004116/0.3284, allocations: 2.693 MB / 0.5255 GB, free: 6.422 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.01135/0.3397, allocations: 6.481 MB / 0.5319 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005246/0.345, allocations: 3.309 MB / 0.5351 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/0.3464, allocations: 0.8987 MB / 0.536 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009446/0.3558, allocations: 7.197 MB / 0.543 GB, free: 3.438 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.3559, allocations: 51.48 kB / 0.543 GB, free: 3.379 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007312/0.3566, allocations: 167.1 kB / 0.5432 GB, free: 3.215 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 3.567e-06/0.3567, allocations: 0 / 0.5432 GB, free: 3.215 MB / 414.1 MB Notification: Performance of matching and sorting (n=140): time 0.02027/0.3769, allocations: 5.435 MB / 0.5485 GB, free: 13.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.377, allocations: 64.72 kB / 0.5486 GB, free: 13.6 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.3782, allocations: 1.034 MB / 0.5496 GB, free: 12.54 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001548/0.3784, allocations: 49.7 kB / 0.5496 GB, free: 12.49 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004289/0.3788, allocations: 0.6993 MB / 0.5503 GB, free: 11.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003964/0.3792, allocations: 0.4958 MB / 0.5508 GB, free: 11.28 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004717/0.3797, allocations: 335.4 kB / 0.5511 GB, free: 10.94 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.833e-05/0.3798, allocations: 309.1 kB / 0.5514 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.3809, allocations: 0.6442 MB / 0.552 GB, free: 9.992 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001446/0.3824, allocations: 1.107 MB / 0.5531 GB, free: 8.695 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.3849, allocations: 1.804 MB / 0.5549 GB, free: 6.699 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.839e-06/0.385, allocations: 4 kB / 0.5549 GB, free: 6.695 MB / 430.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.006756/0.3917, allocations: 2.42 MB / 0.5573 GB, free: 4.258 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/0.3918, allocations: 12 kB / 0.5573 GB, free: 4.246 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.681e-05/0.3918, allocations: 16 kB / 0.5573 GB, free: 4.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002775/0.3946, allocations: 486.1 kB / 0.5577 GB, free: 3.746 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/0.3962, allocations: 427.3 kB / 0.5581 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005688/0.4019, allocations: 3.869 MB / 0.5619 GB, free: 15.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.4035, allocations: 56.05 kB / 0.562 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001947/0.4037, allocations: 99.95 kB / 0.5621 GB, free: 15.04 MB / 446.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.0006102/0.4044, allocations: 328.4 kB / 0.5624 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002853/0.4046, allocations: 127.2 kB / 0.5625 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006366/0.411, allocations: 2.137 MB / 0.5646 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.4111, allocations: 19.88 kB / 0.5646 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.4111, allocations: 4 kB / 0.5646 GB, free: 12.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.958e-05/0.4111, allocations: 7.969 kB / 0.5646 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008138/0.4192, allocations: 3.543 MB / 0.5681 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.4193, allocations: 8 kB / 0.5681 GB, free: 8.773 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.4204, allocations: 267.7 kB / 0.5684 GB, free: 8.512 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002679/0.4231, allocations: 478 kB / 0.5688 GB, free: 8.035 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.4232, allocations: 43.97 kB / 0.5688 GB, free: 7.992 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004881/0.4281, allocations: 3.787 MB / 0.5725 GB, free: 3.926 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4282, allocations: 0 / 0.5725 GB, free: 3.926 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007069/0.4352, allocations: 2.75 MB / 0.5752 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.4356, allocations: 200.2 kB / 0.5754 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002054/0.4358, allocations: 35.98 kB / 0.5755 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007603/0.4366, allocations: 28 kB / 0.5755 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/0.4369, allocations: 125.1 kB / 0.5756 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001129/0.437, allocations: 59.97 kB / 0.5757 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008697/0.4378, allocations: 0.707 MB / 0.5764 GB, free: 15.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4379, allocations: 4 kB / 0.5764 GB, free: 15.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003085/0.4409, allocations: 0.9506 MB / 0.5773 GB, free: 15.01 MB / 462.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.009088/0.4501, allocations: 4.3 MB / 0.5815 GB, free: 10.67 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003611/0.4537, allocations: 2.013 MB / 0.5834 GB, free: 8.609 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.4537, allocations: 4.062 kB / 0.5835 GB, free: 8.605 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001909/0.4557, allocations: 1.139 MB / 0.5846 GB, free: 7.422 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.457, allocations: 257.3 kB / 0.5848 GB, free: 7.172 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02476/0.4818, allocations: 12.31 MB / 0.5968 GB, free: 10.34 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006966/0.4825, allocations: 1.195 MB / 0.598 GB, free: 9.109 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001096/0.4836, allocations: 321.5 kB / 0.5983 GB, free: 8.797 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000885/0.4845, allocations: 0.6554 MB / 0.5989 GB, free: 8.141 MB / 478.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4845, allocations: 0 / 0.5989 GB, free: 8.141 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2801/0.7647, allocations: 45.59 MB / 0.6435 GB, free: 103.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.16/15.92, allocations: 15.84 kB / 0.6435 GB, free: 103.3 MB / 478.1 MB (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)