Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.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.001483/0.001483, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001675/0.001675, allocations: 216.9 kB / 22.26 MB, free: 5.082 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.36/1.36, allocations: 230.6 MB / 256 MB, free: 8.023 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.1283/0.1283, allocations: 23.89 MB / 336.3 MB, free: 11.28 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.ElectrolysisMethanation,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation",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.002/0.002, allocations: 59.91 kB / 471.2 MB, free: 7.664 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2766, allocations: 59.87 MB / 0.5187 GB, free: 9.527 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.ElectrolysisMethanation): time 0.03895/0.3156, allocations: 31.94 MB / 0.5499 GB, free: 8.195 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03555/0.3511, allocations: 29.09 MB / 0.5783 GB, free: 13.02 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.3529, allocations: 39.69 kB / 0.5783 GB, free: 12.98 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001891/0.3547, allocations: 0.6901 MB / 0.579 GB, free: 12.29 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00635/0.3611, allocations: 2.262 MB / 0.5812 GB, free: 10.01 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01037/0.3715, allocations: 3.993 MB / 0.5851 GB, free: 5.992 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004747/0.3762, allocations: 3.085 MB / 0.5881 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002439/0.3787, allocations: 1.605 MB / 0.5897 GB, free: 1.242 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001998/0.3806, allocations: 1.477 MB / 0.5911 GB, free: 15.76 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002391/0.383, allocations: 1.689 MB / 0.5928 GB, free: 14.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005031/0.3835, allocations: 300 kB / 0.593 GB, free: 13.77 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009407/0.393, allocations: 3.179 MB / 0.5962 GB, free: 10.59 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007942/0.3937, allocations: 0.701 MB / 0.5968 GB, free: 9.887 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001635/0.3954, allocations: 1.435 MB / 0.5982 GB, free: 8.445 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0125/0.4079, allocations: 6.576 MB / 0.6047 GB, free: 1.844 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.4079, allocations: 0 / 0.6047 GB, free: 1.844 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.4079, allocations: 0 / 0.6047 GB, free: 1.844 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.777e-05/0.4079, allocations: 3.938 kB / 0.6047 GB, free: 1.84 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 609 * Number of variables: 609 Notification: Performance of Generate backend data structure: time 0.006387/0.4143, allocations: 3.323 MB / 0.6079 GB, free: 14.46 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.4144, allocations: 8.031 kB / 0.6079 GB, free: 14.46 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003962/0.4148, allocations: 337.7 kB / 0.6082 GB, free: 14.11 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002257/0.417, allocations: 0.5764 MB / 0.6088 GB, free: 13.54 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002587/0.4196, allocations: 1.364 MB / 0.6101 GB, free: 12.13 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002814/0.4199, allocations: 343.1 kB / 0.6105 GB, free: 11.76 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004143/0.4203, allocations: 247.9 kB / 0.6107 GB, free: 11.52 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004992/0.4253, allocations: 3.057 MB / 0.6137 GB, free: 8.352 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.62e-05/0.4253, allocations: 7.922 kB / 0.6137 GB, free: 8.344 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002377/0.4256, allocations: 104 kB / 0.6138 GB, free: 8.242 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.796e-05/0.4256, allocations: 56 kB / 0.6138 GB, free: 8.188 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005896/0.4315, allocations: 3.646 MB / 0.6174 GB, free: 4.539 MB / 462.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.01684/0.4484, allocations: 10.44 MB / 0.6276 GB, free: 9.719 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002922/0.4513, allocations: 1.787 MB / 0.6293 GB, free: 7.922 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001613/0.4529, allocations: 1.024 MB / 0.6303 GB, free: 6.887 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01117/0.4641, allocations: 5.477 MB / 0.6357 GB, free: 1.371 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/0.4641, allocations: 47.81 kB / 0.6357 GB, free: 1.316 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001246/0.4653, allocations: 306.5 kB / 0.636 GB, free: 1.016 MB / 478.1 MB Notification: Performance of pre-optimization done (n=134): time 4.017e-06/0.4653, allocations: 0 / 0.636 GB, free: 1.016 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03497/0.5003, allocations: 9.53 MB / 0.6453 GB, free: 7.426 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.759e-05/0.5004, allocations: 120.8 kB / 0.6455 GB, free: 7.281 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/0.5022, allocations: 1.474 MB / 0.6469 GB, free: 5.797 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001498/0.5024, allocations: 57.7 kB / 0.6469 GB, free: 5.734 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008302/0.5032, allocations: 1.186 MB / 0.6481 GB, free: 4.535 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005734/0.5038, allocations: 0.6664 MB / 0.6488 GB, free: 3.863 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007358/0.5045, allocations: 0.5131 MB / 0.6493 GB, free: 3.344 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.5046, allocations: 305.1 kB / 0.6495 GB, free: 3.043 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.5062, allocations: 0.9462 MB / 0.6505 GB, free: 2.094 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002363/0.5085, allocations: 1.909 MB / 0.6523 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004162/0.5127, allocations: 2.996 MB / 0.6553 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.517e-05/0.5127, allocations: 11.94 kB / 0.6553 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01035/0.5231, allocations: 3.905 MB / 0.6591 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.684e-05/0.5231, allocations: 19.98 kB / 0.6591 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.733e-05/0.5231, allocations: 32 kB / 0.6591 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005408/0.5285, allocations: 1.186 MB / 0.6603 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/0.5306, allocations: 0.585 MB / 0.6609 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.5409, allocations: 7.202 MB / 0.6679 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001854/0.5428, allocations: 115.9 kB / 0.668 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002908/0.543, allocations: 156 kB / 0.6682 GB, free: 14.71 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * 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 (305): * Single equations (assignments): 300 * 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 {(3,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,18), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009348/0.544, allocations: 493.3 kB / 0.6686 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004227/0.5444, allocations: 186.8 kB / 0.6688 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009582/0.554, allocations: 3.237 MB / 0.672 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/0.554, allocations: 20 kB / 0.672 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.554, allocations: 4 kB / 0.672 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.526e-05/0.554, allocations: 12 kB / 0.672 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01332/0.5674, allocations: 5.409 MB / 0.6773 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.467e-05/0.5674, allocations: 4 kB / 0.6773 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/0.5687, allocations: 303.9 kB / 0.6776 GB, free: 4.922 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004909/0.5736, allocations: 1.044 MB / 0.6786 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002087/0.5738, allocations: 75.89 kB / 0.6787 GB, free: 3.789 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00859/0.5824, allocations: 6.491 MB / 0.685 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.5824, allocations: 4.141 kB / 0.685 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01025/0.5926, allocations: 4.136 MB / 0.689 GB, free: 8.727 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004075/0.593, allocations: 162.8 kB / 0.6892 GB, free: 8.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000292/0.5933, allocations: 39.98 kB / 0.6892 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.5944, allocations: 47.98 kB / 0.6893 GB, free: 8.48 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004012/0.5948, allocations: 189.5 kB / 0.6895 GB, free: 8.293 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/0.595, allocations: 79.95 kB / 0.6895 GB, free: 8.215 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001241/0.5962, allocations: 0.9663 MB / 0.6905 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.5962, allocations: 0 / 0.6905 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00371/0.5999, allocations: 1.262 MB / 0.6917 GB, free: 5.984 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (cathode.temperature,anode.temperature,solution1.temperature,H.logn,H2O.logn,CH4.logn,CO2.logn,H2.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 (156): * Single equations (assignments): 151 * 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 {(3,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,19), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01281/0.6127, allocations: 5.906 MB / 0.6975 GB, free: 4 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005646/0.6184, allocations: 2.842 MB / 0.7003 GB, free: 13.12 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.169e-06/0.6184, allocations: 0 / 0.7003 GB, free: 13.12 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002774/0.6212, allocations: 1.46 MB / 0.7017 GB, free: 11.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/0.6228, allocations: 312.1 kB / 0.702 GB, free: 11.32 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03664/0.6595, allocations: 19.18 MB / 0.7207 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/0.6606, allocations: 1.482 MB / 0.7222 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001526/0.6622, allocations: 451.2 kB / 0.7226 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001396/0.6636, allocations: 1.017 MB / 0.7236 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of SimCode: time 9.52e-07/0.6636, allocations: 0 / 0.7236 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2967/0.9602, allocations: 66.97 MB / 0.789 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.64/34.6, allocations: 0 / 0.789 GB, free: 141.7 MB / 0.5606 GB " [Timeout remaining time 625] (rm -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.sim & python3 -m fmpy simulate --output-file Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation_res.csv --start-time 0 --stop-time 0.0001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-08 Chemical_master_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation.fmu > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 37.24350923699967] Failed to read output from testmodel.py, exit status != 0: 34.74855274899892 34.757230098 34.347188231 Calling exit ...