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.001497/0.001497, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001609/0.001609, allocations: 215.1 kB / 22.25 MB, free: 5.262 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.485/1.485, allocations: 230.6 MB / 256 MB, free: 7.777 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.1366/0.1366, allocations: 23.99 MB / 336.4 MB, free: 10.83 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.002346/0.002346, allocations: 63.89 kB / 471.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3178, allocations: 59.89 MB / 0.5187 GB, free: 9.496 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.07741/0.3952, allocations: 30.69 MB / 0.5487 GB, free: 9.074 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03667/0.4319, allocations: 25.51 MB / 0.5736 GB, free: 1.449 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002417/0.4343, allocations: 35.75 kB / 0.5737 GB, free: 1.414 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002272/0.4366, allocations: 0.6278 MB / 0.5743 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00739/0.4439, allocations: 2.2 MB / 0.5764 GB, free: 14.56 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01212/0.4561, allocations: 3.997 MB / 0.5803 GB, free: 10.54 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004928/0.461, allocations: 3.081 MB / 0.5833 GB, free: 7.449 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002621/0.4636, allocations: 1.585 MB / 0.5849 GB, free: 5.82 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002434/0.466, allocations: 1.481 MB / 0.5863 GB, free: 4.336 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002589/0.4686, allocations: 1.494 MB / 0.5878 GB, free: 2.836 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007462/0.4694, allocations: 296 kB / 0.5881 GB, free: 2.547 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009509/0.4789, allocations: 2.995 MB / 0.591 GB, free: 15.55 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001637/0.4805, allocations: 0.6971 MB / 0.5917 GB, free: 14.85 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002516/0.483, allocations: 1.214 MB / 0.5929 GB, free: 13.63 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01608/0.4991, allocations: 6.556 MB / 0.5993 GB, free: 7.047 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.4991, allocations: 0 / 0.5993 GB, free: 7.047 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4991, allocations: 0 / 0.5993 GB, free: 7.047 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001016/0.4992, allocations: 0 / 0.5993 GB, free: 7.047 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.007952/0.5072, allocations: 3.334 MB / 0.6025 GB, free: 3.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.5072, allocations: 8.031 kB / 0.6025 GB, free: 3.652 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004859/0.5077, allocations: 333.7 kB / 0.6028 GB, free: 3.316 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002478/0.5102, allocations: 0.5725 MB / 0.6034 GB, free: 2.742 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003028/0.5132, allocations: 1.352 MB / 0.6047 GB, free: 1.352 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003549/0.5136, allocations: 351.1 kB / 0.6051 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005677/0.5141, allocations: 244 kB / 0.6053 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00582/0.52, allocations: 3.09 MB / 0.6083 GB, free: 13.53 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.576e-05/0.52, allocations: 4 kB / 0.6083 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002668/0.5203, allocations: 96 kB / 0.6084 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.787e-05/0.5204, allocations: 60 kB / 0.6085 GB, free: 13.37 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006961/0.5273, allocations: 3.607 MB / 0.612 GB, free: 9.762 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.01967/0.547, allocations: 9.041 MB / 0.6208 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003243/0.5502, allocations: 1.776 MB / 0.6225 GB, free: 14.75 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001832/0.5521, allocations: 1.024 MB / 0.6235 GB, free: 13.71 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01234/0.5644, allocations: 5.189 MB / 0.6286 GB, free: 8.484 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.456e-05/0.5645, allocations: 51.88 kB / 0.6287 GB, free: 8.426 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001378/0.5658, allocations: 302.5 kB / 0.6289 GB, free: 8.129 MB / 478.1 MB Notification: Performance of pre-optimization done (n=134): time 5.771e-06/0.5658, allocations: 0 / 0.6289 GB, free: 8.129 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03706/0.6029, allocations: 9.533 MB / 0.6383 GB, free: 14.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.007e-05/0.603, allocations: 124.8 kB / 0.6384 GB, free: 14.39 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002088/0.6051, allocations: 1.532 MB / 0.6399 GB, free: 12.84 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003388/0.6054, allocations: 57.7 kB / 0.6399 GB, free: 12.78 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009154/0.6063, allocations: 1.186 MB / 0.6411 GB, free: 11.58 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007859/0.6071, allocations: 0.6585 MB / 0.6417 GB, free: 10.92 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008188/0.6079, allocations: 0.5248 MB / 0.6422 GB, free: 10.39 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.6081, allocations: 309.1 kB / 0.6425 GB, free: 10.08 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.6098, allocations: 0.9462 MB / 0.6435 GB, free: 9.133 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002535/0.6123, allocations: 1.898 MB / 0.6453 GB, free: 6.797 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00471/0.617, allocations: 3.007 MB / 0.6482 GB, free: 3.355 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.792e-05/0.6171, allocations: 8 kB / 0.6483 GB, free: 3.348 MB / 494.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01087/0.6279, allocations: 3.901 MB / 0.6521 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.75e-05/0.628, allocations: 19.98 kB / 0.6521 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.011e-05/0.628, allocations: 32 kB / 0.6521 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005296/0.6333, allocations: 1.173 MB / 0.6533 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/0.6355, allocations: 0.5811 MB / 0.6538 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/0.6459, allocations: 7.159 MB / 0.6608 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0021/0.648, allocations: 111.8 kB / 0.6609 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003355/0.6483, allocations: 160 kB / 0.6611 GB, free: 5.816 MB / 0.4981 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.000963/0.6493, allocations: 492.9 kB / 0.6615 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004469/0.6498, allocations: 186.8 kB / 0.6617 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009495/0.6593, allocations: 3.233 MB / 0.6649 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.576e-05/0.6593, allocations: 20 kB / 0.6649 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.6593, allocations: 8 kB / 0.6649 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.169e-05/0.6593, allocations: 7.969 kB / 0.6649 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01356/0.6729, allocations: 5.117 MB / 0.6699 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/0.6729, allocations: 4 kB / 0.6699 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.6743, allocations: 307.6 kB / 0.6702 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004934/0.6792, allocations: 1.048 MB / 0.6712 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003588/0.6796, allocations: 75.89 kB / 0.6713 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009007/0.6886, allocations: 6.433 MB / 0.6776 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.6886, allocations: 7.938 kB / 0.6776 GB, free: 4.375 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01027/0.6988, allocations: 4.124 MB / 0.6816 GB, free: 192 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005003/0.6993, allocations: 170.7 kB / 0.6818 GB, free: 20 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003243/0.6997, allocations: 44.16 kB / 0.6818 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/0.7008, allocations: 44.27 kB / 0.6819 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004072/0.7012, allocations: 189.5 kB / 0.6821 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001727/0.7013, allocations: 79.95 kB / 0.6821 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001303/0.7026, allocations: 0.9663 MB / 0.6831 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7026, allocations: 0 / 0.6831 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003748/0.7064, allocations: 1.263 MB / 0.6843 GB, free: 13.43 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.0134/0.7198, allocations: 5.922 MB / 0.6901 GB, free: 7.438 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006337/0.7261, allocations: 2.825 MB / 0.6928 GB, free: 4.574 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.7261, allocations: 0 / 0.6928 GB, free: 4.574 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003013/0.7291, allocations: 1.469 MB / 0.6943 GB, free: 3.066 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.731, allocations: 315.5 kB / 0.6946 GB, free: 2.766 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04007/0.7711, allocations: 19.17 MB / 0.7133 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.7724, allocations: 0.9106 MB / 0.7142 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001804/0.7742, allocations: 454.5 kB / 0.7146 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/0.7757, allocations: 1.017 MB / 0.7156 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of SimCode: time 9.81e-07/0.7757, allocations: 0 / 0.7156 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.379/1.155, allocations: 66.24 MB / 0.7803 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.14/17.29, allocations: 15.58 kB / 0.7803 GB, free: 146.9 MB / 0.5606 GB " [Timeout remaining time 643] (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 os._exit(0), Time elapsed: 20.19284572871402] Failed to read output from testmodel.py, exit status != 0: 17.45482229301706 17.471503487 16.968686775 Calling exit ...