Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.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.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction",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.005397/0.005397, allocations: 100.3 kB / 15.73 MB, free: 5.602 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.001193/0.001193, allocations: 190.4 kB / 16.68 MB, free: 5.523 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07496/0.07496, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002437/0.002437, allocations: 63.84 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1105, allocations: 53.6 MB / 478.3 MB, free: 6.305 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.ClimateChange.ElectrochemicalAcetateProduction): time 0.03945/0.15, allocations: 29.71 MB / 0.4961 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.225/0.375, allocations: 24.88 MB / 0.5204 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001421/0.3765, allocations: 25.91 kB / 0.5204 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001585/0.3781, allocations: 0.6123 MB / 0.521 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005184/0.3833, allocations: 1.872 MB / 0.5228 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009766/0.3931, allocations: 3.445 MB / 0.5262 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003977/0.3971, allocations: 2.708 MB / 0.5289 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002158/0.3992, allocations: 1.762 MB / 0.5306 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.401, allocations: 1.246 MB / 0.5318 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002074/0.4031, allocations: 1.415 MB / 0.5332 GB, free: 9.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004588/0.4036, allocations: 261.6 kB / 0.5334 GB, free: 9.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008893/0.4125, allocations: 2.706 MB / 0.5361 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007239/0.4132, allocations: 0.6073 MB / 0.5367 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00165/0.4149, allocations: 1.267 MB / 0.5379 GB, free: 7.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.4265, allocations: 5.539 MB / 0.5433 GB, free: 3.621 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.4266, allocations: 0 / 0.5433 GB, free: 3.621 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4266, allocations: 0 / 0.5433 GB, free: 3.621 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001258/0.4267, allocations: 0 / 0.5433 GB, free: 3.621 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: 548 * Number of variables: 548 Notification: Performance of Generate backend data structure: time 0.006426/0.4332, allocations: 3.049 MB / 0.5463 GB, free: 1.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.4332, allocations: 8.031 kB / 0.5463 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002698/0.4335, allocations: 306.8 kB / 0.5466 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001966/0.4355, allocations: 0.5141 MB / 0.5471 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002347/0.4378, allocations: 1.276 MB / 0.5483 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.438, allocations: 228.2 kB / 0.5486 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003677/0.4384, allocations: 222.8 kB / 0.5488 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004367/0.4428, allocations: 2.686 MB / 0.5514 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.647e-05/0.4429, allocations: 3.938 kB / 0.5514 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002161/0.4431, allocations: 88 kB / 0.5515 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.966e-05/0.4431, allocations: 53.12 kB / 0.5515 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004929/0.4481, allocations: 3.166 MB / 0.5546 GB, free: 8.527 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.01445/0.4625, allocations: 9.239 MB / 0.5636 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002512/0.4651, allocations: 1.841 MB / 0.5654 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001301/0.4664, allocations: 0.9025 MB / 0.5663 GB, free: 12.15 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01098/0.4774, allocations: 7.449 MB / 0.5736 GB, free: 3.965 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.4775, allocations: 46.22 kB / 0.5736 GB, free: 3.91 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009384/0.4784, allocations: 210.7 kB / 0.5738 GB, free: 3.703 MB / 414.1 MB Notification: Performance of pre-optimization done (n=113): time 3.527e-06/0.4784, allocations: 0 / 0.5738 GB, free: 3.703 MB / 414.1 MB Notification: Performance of matching and sorting (n=161): time 0.03776/0.5162, allocations: 9.555 MB / 0.5832 GB, free: 10.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.455e-05/0.5163, allocations: 120.1 kB / 0.5833 GB, free: 10.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001899/0.5182, allocations: 1.356 MB / 0.5846 GB, free: 8.645 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002548/0.5185, allocations: 53.7 kB / 0.5847 GB, free: 8.586 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000749/0.5193, allocations: 1.073 MB / 0.5857 GB, free: 7.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000642/0.5199, allocations: 0.5888 MB / 0.5863 GB, free: 6.906 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000844/0.5208, allocations: 476.6 kB / 0.5867 GB, free: 6.434 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.5209, allocations: 309 kB / 0.587 GB, free: 6.129 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001553/0.5224, allocations: 0.8468 MB / 0.5879 GB, free: 5.281 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002182/0.5246, allocations: 1.708 MB / 0.5895 GB, free: 3.191 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0039/0.5285, allocations: 2.693 MB / 0.5922 GB, free: 168 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.361e-05/0.5286, allocations: 11.94 kB / 0.5922 GB, free: 156 kB / 430.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.009038/0.5376, allocations: 3.478 MB / 0.5956 GB, free: 12.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.5377, allocations: 16 kB / 0.5956 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-05/0.5378, allocations: 35.94 kB / 0.5956 GB, free: 12.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005542/0.5434, allocations: 1.159 MB / 0.5967 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001977/0.5454, allocations: 0.5096 MB / 0.5972 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/0.5562, allocations: 7.624 MB / 0.6047 GB, free: 2.934 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002154/0.5584, allocations: 106.5 kB / 0.6048 GB, free: 2.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004838/0.5589, allocations: 140 kB / 0.6049 GB, free: 2.695 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (270): * 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: 4 * 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): 2 systems {(1,11,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,20), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001246/0.5602, allocations: 459.5 kB / 0.6054 GB, free: 2.238 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005909/0.5608, allocations: 166.9 kB / 0.6055 GB, free: 2.074 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008249/0.5691, allocations: 2.841 MB / 0.6083 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/0.5691, allocations: 16 kB / 0.6083 GB, free: 15.28 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/0.5691, allocations: 7.938 kB / 0.6083 GB, free: 15.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.438e-05/0.5692, allocations: 10.72 kB / 0.6083 GB, free: 15.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/0.5815, allocations: 4.883 MB / 0.6131 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.5815, allocations: 4 kB / 0.6131 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001148/0.5827, allocations: 254.2 kB / 0.6133 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004896/0.5876, allocations: 1.033 MB / 0.6144 GB, free: 9.008 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002341/0.5878, allocations: 63.95 kB / 0.6144 GB, free: 8.945 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008446/0.5963, allocations: 6.927 MB / 0.6212 GB, free: 1.602 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.5963, allocations: 0 / 0.6212 GB, free: 1.602 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008891/0.6052, allocations: 3.679 MB / 0.6248 GB, free: 13.88 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004602/0.6057, allocations: 224 kB / 0.625 GB, free: 13.64 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003613/0.6061, allocations: 43.92 kB / 0.625 GB, free: 13.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.6073, allocations: 35.98 kB / 0.6251 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003471/0.6077, allocations: 151.6 kB / 0.6252 GB, free: 13.42 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/0.6078, allocations: 72.23 kB / 0.6253 GB, free: 13.35 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001187/0.609, allocations: 0.8843 MB / 0.6261 GB, free: 12.46 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.609, allocations: 0 / 0.6261 GB, free: 12.46 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003544/0.6126, allocations: 1.114 MB / 0.6272 GB, free: 11.34 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,AcAc.logn,CO2.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 (133): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 2 systems {(1,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,21), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01104/0.6236, allocations: 5.266 MB / 0.6324 GB, free: 6.086 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005244/0.6289, allocations: 2.788 MB / 0.6351 GB, free: 3.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.6289, allocations: 0.9375 kB / 0.6351 GB, free: 3.25 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002561/0.6315, allocations: 1.465 MB / 0.6365 GB, free: 1.723 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.6333, allocations: 284.4 kB / 0.6368 GB, free: 1.469 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03236/0.6657, allocations: 17.2 MB / 0.6536 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00115/0.6669, allocations: 1.403 MB / 0.655 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001337/0.6682, allocations: 387 kB / 0.6553 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/0.6694, allocations: 0.8807 MB / 0.6562 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of SimCode: time 1.112e-06/0.6694, allocations: 0 / 0.6562 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1333/0.8027, allocations: 56.89 MB / 0.7118 GB, free: 3.973 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.55/31.35, allocations: 4.688 kB / 0.7118 GB, free: 3.969 MB / 0.545 GB (rm -f Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Chemical_Chemical_Examples_ClimateChange_ElectrochemicalAcetateProduction.fmu > Chemical_Chemical.Examples.ClimateChange.ElectrochemicalAcetateProduction.pipe 2>&1)