Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 218.3 kB / 22.25 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.342/1.342, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.129/0.129, allocations: 23.88 MB / 336.3 MB, free: 10.99 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 63.91 kB / 471.1 MB, free: 7.539 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2796, allocations: 59.87 MB / 0.5185 GB, free: 9.508 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.Obsolete.Examples.ClimateChange.MethanElectrosynthesis): time 0.06987/0.3495, allocations: 29.19 MB / 0.547 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02569/0.3751, allocations: 19.46 MB / 0.5661 GB, free: 8.957 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001728/0.3769, allocations: 31.75 kB / 0.5661 GB, free: 8.926 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001664/0.3785, allocations: 0.5332 MB / 0.5666 GB, free: 8.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004704/0.3832, allocations: 1.311 MB / 0.5679 GB, free: 7.371 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008857/0.3921, allocations: 3.351 MB / 0.5712 GB, free: 4 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003332/0.3954, allocations: 2.403 MB / 0.5735 GB, free: 1.582 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001555/0.397, allocations: 1.263 MB / 0.5747 GB, free: 280 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.3982, allocations: 1.063 MB / 0.5758 GB, free: 15.2 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001503/0.3997, allocations: 1.226 MB / 0.577 GB, free: 13.97 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003456/0.4, allocations: 236 kB / 0.5772 GB, free: 13.74 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005523/0.4055, allocations: 2.278 MB / 0.5794 GB, free: 11.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005648/0.4061, allocations: 0.5374 MB / 0.5799 GB, free: 10.93 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001023/0.4071, allocations: 0.9532 MB / 0.5809 GB, free: 9.969 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008206/0.4153, allocations: 5.015 MB / 0.5858 GB, free: 4.934 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.4153, allocations: 0 / 0.5858 GB, free: 4.934 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4153, allocations: 0 / 0.5858 GB, free: 4.934 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.717e-05/0.4154, allocations: 8 kB / 0.5858 GB, free: 4.926 MB / 430.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.004864/0.4202, allocations: 2.655 MB / 0.5884 GB, free: 2.227 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.4203, allocations: 12.03 kB / 0.5884 GB, free: 2.215 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003251/0.4206, allocations: 266.4 kB / 0.5886 GB, free: 1.945 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001898/0.4225, allocations: 0.5067 MB / 0.5891 GB, free: 1.438 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002428/0.4249, allocations: 1.137 MB / 0.5902 GB, free: 272 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002772/0.4252, allocations: 254.8 kB / 0.5905 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003526/0.4256, allocations: 195.9 kB / 0.5907 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004231/0.4298, allocations: 2.712 MB / 0.5933 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.311e-05/0.4298, allocations: 0 / 0.5933 GB, free: 13.02 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.43, allocations: 76 kB / 0.5934 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.346e-05/0.4301, allocations: 48 kB / 0.5934 GB, free: 12.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004742/0.4348, allocations: 3.322 MB / 0.5967 GB, free: 9.57 MB / 446.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.01275/0.4475, allocations: 7.523 MB / 0.604 GB, free: 1.883 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0019/0.4494, allocations: 1.116 MB / 0.6051 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009388/0.4504, allocations: 0.5872 MB / 0.6057 GB, free: 144 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007718/0.4581, allocations: 3.397 MB / 0.609 GB, free: 12.71 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.4582, allocations: 47.09 kB / 0.6091 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008501/0.459, allocations: 202.8 kB / 0.6093 GB, free: 12.46 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.196e-06/0.459, allocations: 0 / 0.6093 GB, free: 12.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02575/0.4848, allocations: 6.921 MB / 0.616 GB, free: 5.484 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.946e-05/0.4848, allocations: 119.8 kB / 0.6161 GB, free: 5.344 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002298/0.4871, allocations: 1.943 MB / 0.618 GB, free: 3.383 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.4873, allocations: 45.69 kB / 0.6181 GB, free: 3.332 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008207/0.4881, allocations: 1.041 MB / 0.6191 GB, free: 2.277 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004061/0.4885, allocations: 432.5 kB / 0.6195 GB, free: 1.852 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006189/0.4891, allocations: 419.3 kB / 0.6199 GB, free: 1.434 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.4892, allocations: 301.1 kB / 0.6202 GB, free: 1.137 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001384/0.4906, allocations: 0.8746 MB / 0.621 GB, free: 264 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002043/0.4927, allocations: 1.608 MB / 0.6226 GB, free: 14.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003181/0.4958, allocations: 2.344 MB / 0.6249 GB, free: 11.62 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.32e-05/0.4959, allocations: 8 kB / 0.6249 GB, free: 11.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007698/0.5036, allocations: 3.327 MB / 0.6282 GB, free: 8.262 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.5036, allocations: 16 kB / 0.6282 GB, free: 8.246 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.8e-05/0.5036, allocations: 24.47 kB / 0.6282 GB, free: 8.223 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004403/0.508, allocations: 1.05 MB / 0.6292 GB, free: 7.16 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.5094, allocations: 423.4 kB / 0.6296 GB, free: 6.746 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.5195, allocations: 7.129 MB / 0.6366 GB, free: 15.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.5211, allocations: 95.91 kB / 0.6367 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002323/0.5213, allocations: 120 kB / 0.6368 GB, free: 15.03 MB / 494.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.0007862/0.5221, allocations: 405 kB / 0.6372 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003634/0.5224, allocations: 155 kB / 0.6373 GB, free: 14.47 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006281/0.5287, allocations: 2.172 MB / 0.6394 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/0.5287, allocations: 15.94 kB / 0.6395 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.5287, allocations: 4 kB / 0.6395 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.936e-05/0.5288, allocations: 3.984 kB / 0.6395 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009862/0.5386, allocations: 3.709 MB / 0.6431 GB, free: 8.457 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.5386, allocations: 4.047 kB / 0.6431 GB, free: 8.453 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007303/0.5394, allocations: 175.8 kB / 0.6433 GB, free: 8.281 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004057/0.5434, allocations: 0.9326 MB / 0.6442 GB, free: 7.332 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.5435, allocations: 43.97 kB / 0.6442 GB, free: 7.289 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008285/0.5518, allocations: 6.393 MB / 0.6505 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5518, allocations: 4.125 kB / 0.6505 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007145/0.559, allocations: 2.911 MB / 0.6533 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004025/0.5594, allocations: 139 kB / 0.6534 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002079/0.5596, allocations: 24 kB / 0.6535 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000801/0.5604, allocations: 31.98 kB / 0.6535 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002886/0.5607, allocations: 116.7 kB / 0.6536 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.5608, allocations: 51.97 kB / 0.6536 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001612/0.5624, allocations: 1.326 MB / 0.6549 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5624, allocations: 4 kB / 0.6549 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002994/0.5654, allocations: 0.978 MB / 0.6559 GB, free: 10.89 MB / 0.4981 GB 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.009043/0.5744, allocations: 4.366 MB / 0.6602 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004621/0.5791, allocations: 2.354 MB / 0.6625 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/0.5791, allocations: 11.94 kB / 0.6625 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002062/0.5811, allocations: 1.1 MB / 0.6636 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/0.5825, allocations: 241.5 kB / 0.6638 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0295/0.612, allocations: 16.56 MB / 0.68 GB, free: 1.219 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008475/0.6129, allocations: 0.7296 MB / 0.6807 GB, free: 468 kB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.001172/0.6141, allocations: 339.2 kB / 0.681 GB, free: 128 kB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.6151, allocations: 0.7569 MB / 0.6817 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of SimCode: time 1.032e-06/0.6151, allocations: 0 / 0.6817 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2982/0.9133, allocations: 52.97 MB / 0.7335 GB, free: 178.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.29/15.21, allocations: 5.109 kB / 0.7335 GB, free: 178.4 MB / 0.5606 GB " [Timeout remaining time 645] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Obsolete.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_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.75343745900318] Failed to read output from testmodel.py, exit status != 0: 15.351249907980673 15.362756262 14.944962869 Calling exit ...