Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001531/0.001531, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001859/0.001859, allocations: 216.9 kB / 22.25 MB, free: 5.105 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.392/1.392, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1466/0.1466, allocations: 23.92 MB / 336.3 MB, free: 11.03 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_master_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.00276/0.00276, allocations: 71.91 kB / 471.2 MB, free: 7.473 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3356, allocations: 59.88 MB / 0.5186 GB, free: 9.535 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.07253/0.4081, allocations: 29.19 MB / 0.5471 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02665/0.4347, allocations: 19.47 MB / 0.5661 GB, free: 8.895 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001955/0.4367, allocations: 27.81 kB / 0.5662 GB, free: 8.867 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001864/0.4386, allocations: 0.5324 MB / 0.5667 GB, free: 8.461 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004694/0.4433, allocations: 1.319 MB / 0.568 GB, free: 7.32 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01015/0.4534, allocations: 3.344 MB / 0.5712 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003999/0.4574, allocations: 2.395 MB / 0.5736 GB, free: 1.547 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001815/0.4592, allocations: 1.278 MB / 0.5748 GB, free: 228 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001406/0.4606, allocations: 1.06 MB / 0.5759 GB, free: 15.16 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001688/0.4623, allocations: 1.226 MB / 0.577 GB, free: 13.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003835/0.4627, allocations: 232 kB / 0.5773 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005959/0.4687, allocations: 2.282 MB / 0.5795 GB, free: 11.42 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006171/0.4693, allocations: 0.5336 MB / 0.58 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001124/0.4704, allocations: 0.9531 MB / 0.5809 GB, free: 9.926 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009642/0.48, allocations: 5.027 MB / 0.5859 GB, free: 4.879 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.48, allocations: 3.938 kB / 0.5859 GB, free: 4.875 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.48, allocations: 0 / 0.5859 GB, free: 4.875 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.029e-05/0.4801, allocations: 0 / 0.5859 GB, free: 4.875 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.004883/0.485, allocations: 2.647 MB / 0.5884 GB, free: 2.184 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.485, allocations: 8.031 kB / 0.5885 GB, free: 2.176 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003166/0.4853, allocations: 274.4 kB / 0.5887 GB, free: 1.898 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001873/0.4872, allocations: 0.5064 MB / 0.5892 GB, free: 1.391 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002108/0.4893, allocations: 1.137 MB / 0.5903 GB, free: 224 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000234/0.4895, allocations: 258.8 kB / 0.5906 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003006/0.4898, allocations: 188 kB / 0.5907 GB, free: 15.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00418/0.494, allocations: 2.715 MB / 0.5934 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.15e-05/0.4941, allocations: 4 kB / 0.5934 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001838/0.4943, allocations: 76 kB / 0.5935 GB, free: 12.89 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-05/0.4943, allocations: 48 kB / 0.5935 GB, free: 12.85 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00491/0.4992, allocations: 3.318 MB / 0.5968 GB, free: 9.523 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.01315/0.5124, allocations: 7.523 MB / 0.6041 GB, free: 1.836 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/0.5143, allocations: 1.105 MB / 0.6052 GB, free: 0.707 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009339/0.5152, allocations: 0.5911 MB / 0.6058 GB, free: 104 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007605/0.5228, allocations: 3.393 MB / 0.6091 GB, free: 12.68 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.302e-05/0.5229, allocations: 51.16 kB / 0.6091 GB, free: 12.62 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009063/0.5238, allocations: 206.8 kB / 0.6093 GB, free: 12.42 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.417e-06/0.5238, allocations: 0 / 0.6093 GB, free: 12.42 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02648/0.5503, allocations: 6.909 MB / 0.6161 GB, free: 5.453 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.388e-05/0.5504, allocations: 115.8 kB / 0.6162 GB, free: 5.316 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.5528, allocations: 1.946 MB / 0.6181 GB, free: 3.352 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00023/0.5531, allocations: 45.7 kB / 0.6181 GB, free: 3.301 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007871/0.5538, allocations: 1.041 MB / 0.6191 GB, free: 2.246 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004689/0.5543, allocations: 432.4 kB / 0.6196 GB, free: 1.82 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006487/0.555, allocations: 415.3 kB / 0.62 GB, free: 1.406 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.5551, allocations: 305.1 kB / 0.6202 GB, free: 1.105 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.5565, allocations: 0.8707 MB / 0.6211 GB, free: 236 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002102/0.5586, allocations: 1.608 MB / 0.6227 GB, free: 14.27 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003369/0.562, allocations: 2.36 MB / 0.625 GB, free: 11.58 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.027e-05/0.562, allocations: 11.94 kB / 0.625 GB, free: 11.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008206/0.5702, allocations: 3.324 MB / 0.6282 GB, free: 8.223 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.5702, allocations: 12 kB / 0.6282 GB, free: 8.211 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.522e-05/0.5703, allocations: 27.94 kB / 0.6283 GB, free: 8.184 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004518/0.5748, allocations: 1.03 MB / 0.6293 GB, free: 7.137 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001547/0.5763, allocations: 439.3 kB / 0.6297 GB, free: 6.707 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/0.5865, allocations: 7.133 MB / 0.6367 GB, free: 15.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/0.5882, allocations: 95.91 kB / 0.6367 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003129/0.5885, allocations: 120 kB / 0.6369 GB, free: 14.99 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.0008277/0.5893, allocations: 409 kB / 0.6372 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004145/0.5898, allocations: 155.1 kB / 0.6374 GB, free: 14.43 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006319/0.5961, allocations: 2.172 MB / 0.6395 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.14e-05/0.5961, allocations: 19.94 kB / 0.6395 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.5961, allocations: 0 / 0.6395 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.113e-05/0.5961, allocations: 11.98 kB / 0.6395 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009699/0.6058, allocations: 3.697 MB / 0.6432 GB, free: 8.414 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.6058, allocations: 0 / 0.6432 GB, free: 8.414 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007694/0.6066, allocations: 167.8 kB / 0.6433 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004122/0.6107, allocations: 0.9365 MB / 0.6442 GB, free: 7.297 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001626/0.6109, allocations: 43.97 kB / 0.6443 GB, free: 7.254 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00837/0.6193, allocations: 6.417 MB / 0.6505 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.6193, allocations: 4.031 kB / 0.6505 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007199/0.6265, allocations: 2.896 MB / 0.6534 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004661/0.6269, allocations: 139 kB / 0.6535 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000263/0.6272, allocations: 24 kB / 0.6535 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008446/0.628, allocations: 31.98 kB / 0.6536 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000301/0.6283, allocations: 124.7 kB / 0.6537 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001175/0.6285, allocations: 51.97 kB / 0.6537 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001662/0.6301, allocations: 1.326 MB / 0.655 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.6301, allocations: 0 / 0.655 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003332/0.6334, allocations: 0.9741 MB / 0.656 GB, free: 10.85 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.009492/0.6429, allocations: 4.36 MB / 0.6602 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005043/0.648, allocations: 2.363 MB / 0.6625 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.648, allocations: 0 / 0.6625 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002285/0.6503, allocations: 1.099 MB / 0.6636 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00163/0.6519, allocations: 252.1 kB / 0.6639 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03031/0.6822, allocations: 16.58 MB / 0.68 GB, free: 1.156 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008364/0.6831, allocations: 0.7218 MB / 0.6807 GB, free: 412 kB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001117/0.6842, allocations: 331.4 kB / 0.6811 GB, free: 80 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/0.6852, allocations: 0.757 MB / 0.6818 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of SimCode: time 9.21e-07/0.6852, allocations: 0 / 0.6818 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3186/1.004, allocations: 52.96 MB / 0.7335 GB, free: 178.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/15.59, allocations: 5.922 kB / 0.7335 GB, free: 178.4 MB / 0.5606 GB " [Timeout remaining time 644] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & python3 -m fmpy simulate --output-file Chemical_master_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_master_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.407453560008435] Failed to read output from testmodel.py, exit status != 0: 15.74554029700812 15.763314684000001 15.279259495 Calling exit ...