Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.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.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Examples_ClimateChange_MethanElectrosynthesis",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.007988/0.007988, allocations: 101 kB / 15.73 MB, free: 6.062 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.002138/0.002139, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08321/0.08321, allocations: 15.3 MB / 305.8 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 67.89 kB / 424.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08925/0.09102, allocations: 53.61 MB / 478.3 MB, free: 6.293 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.MethanElectrosynthesis): time 0.0402/0.1313, allocations: 29.36 MB / 0.4958 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2027/0.3339, allocations: 22.04 MB / 0.5173 GB, free: 17.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001103/0.3351, allocations: 20.56 kB / 0.5173 GB, free: 17.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.3364, allocations: 0.5735 MB / 0.5179 GB, free: 17.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003001/0.3394, allocations: 1.343 MB / 0.5192 GB, free: 16.31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007833/0.3472, allocations: 3.277 MB / 0.5224 GB, free: 14.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00339/0.3506, allocations: 2.403 MB / 0.5247 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001901/0.3525, allocations: 1.569 MB / 0.5263 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001212/0.3538, allocations: 1.027 MB / 0.5273 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00127/0.3551, allocations: 1.208 MB / 0.5284 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003042/0.3554, allocations: 232.2 kB / 0.5287 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006901/0.3623, allocations: 2.337 MB / 0.5309 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004355/0.3627, allocations: 0.5397 MB / 0.5315 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.3638, allocations: 1.132 MB / 0.5326 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007842/0.3716, allocations: 4.865 MB / 0.5373 GB, free: 7.988 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3716, allocations: 3.938 kB / 0.5373 GB, free: 7.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3717, allocations: 0 / 0.5373 GB, free: 7.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.352e-05/0.3717, allocations: 0 / 0.5373 GB, free: 7.988 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: 484 * Number of variables: 484 Notification: Performance of Generate backend data structure: time 0.003976/0.3757, allocations: 2.751 MB / 0.54 GB, free: 6.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3757, allocations: 9.656 kB / 0.54 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002314/0.376, allocations: 273.4 kB / 0.5403 GB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001636/0.3776, allocations: 0.506 MB / 0.5408 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/0.3791, allocations: 1.185 MB / 0.5419 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.3793, allocations: 209.8 kB / 0.5421 GB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000251/0.3795, allocations: 188.6 kB / 0.5423 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002971/0.3825, allocations: 2.644 MB / 0.5449 GB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.357e-05/0.3825, allocations: 3.938 kB / 0.5449 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001599/0.3827, allocations: 76 kB / 0.545 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.3827, allocations: 54.59 kB / 0.545 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003842/0.3866, allocations: 3.278 MB / 0.5482 GB, free: 15.16 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.01279/0.3994, allocations: 8.456 MB / 0.5565 GB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/0.4014, allocations: 1.325 MB / 0.5578 GB, free: 5.078 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000981/0.4024, allocations: 0.6367 MB / 0.5584 GB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008829/0.4113, allocations: 5.542 MB / 0.5638 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.4113, allocations: 45.84 kB / 0.5639 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009157/0.4123, allocations: 182.8 kB / 0.564 GB, free: 14.15 MB / 414.1 MB Notification: Performance of pre-optimization done (n=81): time 4.719e-06/0.4123, allocations: 0 / 0.564 GB, free: 14.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=115): time 0.02804/0.4403, allocations: 7.242 MB / 0.5711 GB, free: 6.863 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.171e-05/0.4404, allocations: 115.8 kB / 0.5712 GB, free: 6.727 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002279/0.4427, allocations: 1.857 MB / 0.573 GB, free: 4.852 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.4428, allocations: 44.36 kB / 0.5731 GB, free: 4.805 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007654/0.4436, allocations: 1.045 MB / 0.5741 GB, free: 3.746 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003936/0.444, allocations: 440.4 kB / 0.5745 GB, free: 3.312 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006264/0.4446, allocations: 411.4 kB / 0.5749 GB, free: 2.902 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4447, allocations: 305.1 kB / 0.5752 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.4461, allocations: 0.8577 MB / 0.576 GB, free: 1.742 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002042/0.4482, allocations: 1.583 MB / 0.5776 GB, free: 15.83 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003252/0.4514, allocations: 2.34 MB / 0.5799 GB, free: 13.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/0.4515, allocations: 4 kB / 0.5799 GB, free: 13.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008289/0.4598, allocations: 3.319 MB / 0.5831 GB, free: 9.891 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.4598, allocations: 16 kB / 0.5831 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.219e-05/0.4598, allocations: 24 kB / 0.5832 GB, free: 9.852 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004755/0.4646, allocations: 1.028 MB / 0.5842 GB, free: 8.836 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/0.4661, allocations: 433.9 kB / 0.5846 GB, free: 8.414 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/0.4766, allocations: 7.48 MB / 0.5919 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.4782, allocations: 94.5 kB / 0.592 GB, free: 448 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002335/0.4785, allocations: 124 kB / 0.5921 GB, free: 324 kB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 109 * 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 (226): * Single equations (assignments): 221 * 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 {(2,15), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000741/0.4792, allocations: 403.7 kB / 0.5925 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000338/0.4796, allocations: 151 kB / 0.5926 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006785/0.4864, allocations: 2.197 MB / 0.5948 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.4864, allocations: 20.03 kB / 0.5948 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4864, allocations: 7.938 kB / 0.5948 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.4864, allocations: 3.984 kB / 0.5948 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009858/0.4963, allocations: 3.926 MB / 0.5986 GB, free: 9.562 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.4963, allocations: 4 kB / 0.5986 GB, free: 9.559 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007626/0.4971, allocations: 174.4 kB / 0.5988 GB, free: 9.391 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004456/0.5016, allocations: 0.9196 MB / 0.5997 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.5017, allocations: 42.66 kB / 0.5997 GB, free: 8.434 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008766/0.5105, allocations: 6.785 MB / 0.6064 GB, free: 1.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.5105, allocations: 3.938 kB / 0.6064 GB, free: 1.227 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007486/0.518, allocations: 2.914 MB / 0.6092 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004331/0.5184, allocations: 212.3 kB / 0.6094 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/0.5187, allocations: 31.97 kB / 0.6094 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008669/0.5195, allocations: 28 kB / 0.6095 GB, free: 14 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000301/0.5198, allocations: 119.4 kB / 0.6096 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.52, allocations: 51.97 kB / 0.6096 GB, free: 13.83 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001552/0.5215, allocations: 1.298 MB / 0.6109 GB, free: 12.53 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5215, allocations: 0 / 0.6109 GB, free: 12.53 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003021/0.5246, allocations: 0.978 MB / 0.6119 GB, free: 11.55 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.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 (90): * Single equations (assignments): 85 * 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,17), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009684/0.5342, allocations: 4.359 MB / 0.6161 GB, free: 7.184 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004747/0.539, allocations: 2.512 MB / 0.6186 GB, free: 4.633 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.539, allocations: 0 / 0.6186 GB, free: 4.633 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002226/0.5413, allocations: 1.234 MB / 0.6198 GB, free: 3.336 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.5427, allocations: 239.3 kB / 0.62 GB, free: 3.125 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03085/0.5735, allocations: 16.52 MB / 0.6361 GB, free: 1.848 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.5747, allocations: 1.306 MB / 0.6374 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001133/0.5758, allocations: 333.9 kB / 0.6377 GB, free: 216 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.5769, allocations: 0.7519 MB / 0.6385 GB, free: 15.46 MB / 494.1 MB Notification: Performance of SimCode: time 1.173e-06/0.5769, allocations: 4 kB / 0.6385 GB, free: 15.45 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/0.677, allocations: 50.31 MB / 0.6876 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.28/26.96, allocations: 6.797 kB / 0.6876 GB, free: 13.55 MB / 0.5294 GB (rm -f Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis_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_MethanElectrosynthesis.fmu > Chemical_Chemical.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1)