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.001943/0.001943, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002799/0.0028, allocations: 196.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.866/2.866, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4732/0.4732, allocations: 15.32 MB / 305.7 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00242/0.00242, allocations: 71.89 kB / 370.4 MB, free: 3.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2385, allocations: 53.61 MB / 424.1 MB, free: 14.2 MB / 366.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.7558/0.9944, allocations: 29.63 MB / 453.7 MB, free: 38.94 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05151/1.046, allocations: 24.88 MB / 478.6 MB, free: 26.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002744/1.049, allocations: 25.34 kB / 478.6 MB, free: 26.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003336/1.052, allocations: 0.6061 MB / 479.2 MB, free: 26.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01609/1.068, allocations: 1.861 MB / 481 MB, free: 25.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01876/1.087, allocations: 3.422 MB / 484.5 MB, free: 23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006402/1.094, allocations: 2.682 MB / 487.2 MB, free: 21.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003564/1.097, allocations: 1.769 MB / 488.9 MB, free: 20.83 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003451/1.101, allocations: 1.238 MB / 490.2 MB, free: 20.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02082/1.122, allocations: 1.42 MB / 491.6 MB, free: 19.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00174/1.123, allocations: 264.2 kB / 491.8 MB, free: 19.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03469/1.158, allocations: 2.696 MB / 494.5 MB, free: 19.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001713/1.16, allocations: 0.5958 MB / 495.1 MB, free: 18.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02158/1.181, allocations: 1.278 MB / 496.4 MB, free: 17.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04167/1.223, allocations: 5.472 MB / 0.4901 GB, free: 15.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.1e-05/1.223, allocations: 2.344 kB / 0.4901 GB, free: 15.5 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.406e-06/1.223, allocations: 0 / 0.4901 GB, free: 15.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000176/1.223, allocations: 0 / 0.4901 GB, free: 15.5 MB / 366.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.01825/1.242, allocations: 2.97 MB / 0.493 GB, free: 13.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.723e-05/1.242, allocations: 16.03 kB / 0.493 GB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001307/1.243, allocations: 298.9 kB / 0.4933 GB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00461/1.248, allocations: 0.4978 MB / 0.4938 GB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008569/1.256, allocations: 1.246 MB / 0.495 GB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003702/1.257, allocations: 224.5 kB / 0.4952 GB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001374/1.258, allocations: 221.1 kB / 0.4954 GB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01528/1.274, allocations: 2.68 MB / 0.4981 GB, free: 8.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001599/1.274, allocations: 7.938 kB / 0.4981 GB, free: 8.637 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009487/1.275, allocations: 88 kB / 0.4982 GB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.539e-05/1.275, allocations: 52 kB / 0.4982 GB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01386/1.289, allocations: 3.16 MB / 0.5013 GB, free: 5.785 MB / 366.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.04023/1.329, allocations: 9.275 MB / 0.5103 GB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005214/1.334, allocations: 1.856 MB / 0.5122 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002696/1.337, allocations: 0.8999 MB / 0.513 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02837/1.365, allocations: 7.434 MB / 0.5203 GB, free: 1.727 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.319e-05/1.366, allocations: 51.5 kB / 0.5203 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002066/1.368, allocations: 210.2 kB / 0.5205 GB, free: 1.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 1.037e-05/1.368, allocations: 0 / 0.5205 GB, free: 1.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=161): time 0.07717/1.445, allocations: 9.487 MB / 0.5298 GB, free: 7.848 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/1.461, allocations: 124.2 kB / 0.5299 GB, free: 7.699 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003845/1.465, allocations: 1.345 MB / 0.5312 GB, free: 6.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005984/1.466, allocations: 49.7 kB / 0.5313 GB, free: 6.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/1.467, allocations: 1.053 MB / 0.5323 GB, free: 5.211 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001313/1.468, allocations: 0.5546 MB / 0.5329 GB, free: 4.648 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001908/1.47, allocations: 472.4 kB / 0.5333 GB, free: 4.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/1.471, allocations: 305.1 kB / 0.5336 GB, free: 3.879 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003207/1.474, allocations: 0.8441 MB / 0.5344 GB, free: 3.031 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007928/1.482, allocations: 1.72 MB / 0.5361 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008366/1.49, allocations: 2.689 MB / 0.5387 GB, free: 13.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.788e-05/1.49, allocations: 8 kB / 0.5387 GB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.01814/1.508, allocations: 3.475 MB / 0.5421 GB, free: 10.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.594e-05/1.509, allocations: 19.94 kB / 0.5422 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-05/1.509, allocations: 28 kB / 0.5422 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009918/1.519, allocations: 1.172 MB / 0.5433 GB, free: 9.082 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004047/1.523, allocations: 0.507 MB / 0.5438 GB, free: 8.574 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03451/1.557, allocations: 7.625 MB / 0.5513 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004176/1.562, allocations: 107.8 kB / 0.5514 GB, free: 408 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001001/1.563, allocations: 140 kB / 0.5515 GB, free: 268 kB / 414.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.002199/1.565, allocations: 448.9 kB / 0.5519 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002907/1.568, allocations: 158 kB / 0.5521 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01296/1.581, allocations: 2.844 MB / 0.5549 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.094e-05/1.581, allocations: 20 kB / 0.5549 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.916e-05/1.581, allocations: 7.984 kB / 0.5549 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-05/1.581, allocations: 11.97 kB / 0.5549 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01928/1.6, allocations: 4.862 MB / 0.5596 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.563e-05/1.6, allocations: 0 / 0.5596 GB, free: 7.777 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001985/1.602, allocations: 263.9 kB / 0.5599 GB, free: 7.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006897/1.609, allocations: 1.043 MB / 0.5609 GB, free: 6.461 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005209/1.61, allocations: 63.95 kB / 0.561 GB, free: 6.398 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01306/1.623, allocations: 6.917 MB / 0.5677 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/1.623, allocations: 4.031 kB / 0.5677 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01385/1.637, allocations: 3.667 MB / 0.5713 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009133/1.638, allocations: 219.1 kB / 0.5715 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007465/1.639, allocations: 36 kB / 0.5716 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002436/1.641, allocations: 43.92 kB / 0.5716 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007749/1.642, allocations: 149 kB / 0.5717 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003175/1.642, allocations: 67.97 kB / 0.5718 GB, free: 10.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002344/1.645, allocations: 0.8882 MB / 0.5727 GB, free: 9.902 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.62e-07/1.645, allocations: 0 / 0.5727 GB, free: 9.902 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008603/1.653, allocations: 1.097 MB / 0.5737 GB, free: 8.805 MB / 446.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.02142/1.675, allocations: 5.249 MB / 0.5789 GB, free: 3.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01294/1.688, allocations: 2.985 MB / 0.5818 GB, free: 452 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/1.688, allocations: 0 / 0.5818 GB, free: 452 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005771/1.694, allocations: 1.482 MB / 0.5832 GB, free: 14.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004228/1.698, allocations: 288.9 kB / 0.5835 GB, free: 14.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4117/2.11, allocations: 18.22 MB / 0.6013 GB, free: 130.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001149/2.111, allocations: 1.396 MB / 0.6027 GB, free: 130.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003385/2.114, allocations: 382.3 kB / 0.603 GB, free: 130.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002028/2.116, allocations: 0.882 MB / 0.6039 GB, free: 130.1 MB / 462.1 MB Notification: Performance of SimCode: time 2.494e-06/2.116, allocations: 0 / 0.6039 GB, free: 130.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3569/2.473, allocations: 56.26 MB / 0.6588 GB, free: 105.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.93/30.41, allocations: 6.562 kB / 0.6588 GB, free: 105.1 MB / 462.1 MB (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)