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.001831/0.001831, allocations: 99.75 kB / 18.94 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.002203/0.002203, allocations: 217.3 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.36/1.36, allocations: 230.6 MB / 256 MB, free: 7.793 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.1331/0.1331, allocations: 23.92 MB / 336.4 MB, free: 10.92 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.001881/0.001881, allocations: 63.91 kB / 471.2 MB, free: 7.434 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3017, allocations: 59.89 MB / 0.5186 GB, free: 9.492 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.07395/0.3757, allocations: 30.61 MB / 0.5485 GB, free: 9.277 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03411/0.4098, allocations: 25.48 MB / 0.5734 GB, free: 1.723 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002119/0.4119, allocations: 39.69 kB / 0.5734 GB, free: 1.684 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001869/0.4138, allocations: 0.6279 MB / 0.574 GB, free: 1.051 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006805/0.4206, allocations: 2.208 MB / 0.5762 GB, free: 14.83 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01141/0.432, allocations: 4 MB / 0.5801 GB, free: 10.8 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005248/0.4372, allocations: 3.082 MB / 0.5831 GB, free: 7.707 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00234/0.4396, allocations: 1.613 MB / 0.5847 GB, free: 6.051 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/0.4415, allocations: 1.484 MB / 0.5861 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002154/0.4437, allocations: 1.693 MB / 0.5878 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004495/0.4441, allocations: 296 kB / 0.5881 GB, free: 2.574 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007971/0.4521, allocations: 3.062 MB / 0.5911 GB, free: 15.51 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007425/0.4528, allocations: 0.6971 MB / 0.5918 GB, free: 14.81 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.4542, allocations: 1.21 MB / 0.5929 GB, free: 13.59 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/0.4665, allocations: 6.56 MB / 0.5993 GB, free: 7.008 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4665, allocations: 0 / 0.5993 GB, free: 7.008 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4665, allocations: 4 kB / 0.5993 GB, free: 7.004 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.272e-05/0.4666, allocations: 4 kB / 0.5993 GB, free: 7 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.005952/0.4725, allocations: 3.323 MB / 0.6026 GB, free: 3.625 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.4726, allocations: 8.031 kB / 0.6026 GB, free: 3.617 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003762/0.4729, allocations: 329.7 kB / 0.6029 GB, free: 3.285 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002188/0.4751, allocations: 0.5804 MB / 0.6035 GB, free: 2.703 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002484/0.4776, allocations: 1.364 MB / 0.6048 GB, free: 1.301 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002791/0.4779, allocations: 347.1 kB / 0.6051 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000383/0.4783, allocations: 244 kB / 0.6054 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004647/0.4829, allocations: 3.09 MB / 0.6084 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.73e-05/0.483, allocations: 3.938 kB / 0.6084 GB, free: 13.47 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002216/0.4832, allocations: 96 kB / 0.6085 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.882e-05/0.4832, allocations: 64 kB / 0.6086 GB, free: 13.32 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005399/0.4886, allocations: 3.603 MB / 0.6121 GB, free: 9.711 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.01539/0.504, allocations: 9.037 MB / 0.6209 GB, free: 500 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002868/0.5069, allocations: 1.776 MB / 0.6226 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001652/0.5086, allocations: 1.024 MB / 0.6236 GB, free: 13.66 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01119/0.5197, allocations: 5.192 MB / 0.6287 GB, free: 8.434 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/0.5198, allocations: 47.88 kB / 0.6287 GB, free: 8.379 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001255/0.521, allocations: 298.5 kB / 0.629 GB, free: 8.086 MB / 478.1 MB Notification: Performance of pre-optimization done (n=134): time 3.837e-06/0.521, allocations: 0 / 0.629 GB, free: 8.086 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03177/0.5528, allocations: 9.534 MB / 0.6383 GB, free: 14.49 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.52e-05/0.5529, allocations: 124.8 kB / 0.6385 GB, free: 14.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001927/0.5548, allocations: 1.536 MB / 0.64 GB, free: 12.8 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002166/0.5551, allocations: 53.7 kB / 0.64 GB, free: 12.74 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008899/0.5559, allocations: 1.186 MB / 0.6412 GB, free: 11.54 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006629/0.5566, allocations: 0.6624 MB / 0.6418 GB, free: 10.87 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007727/0.5574, allocations: 0.517 MB / 0.6423 GB, free: 10.35 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.5575, allocations: 305.1 kB / 0.6426 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/0.5591, allocations: 0.9539 MB / 0.6435 GB, free: 9.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00242/0.5615, allocations: 1.898 MB / 0.6454 GB, free: 6.754 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004145/0.5657, allocations: 3.004 MB / 0.6483 GB, free: 3.316 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.585e-05/0.5657, allocations: 12 kB / 0.6483 GB, free: 3.305 MB / 494.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.009629/0.5753, allocations: 3.905 MB / 0.6522 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.599e-05/0.5753, allocations: 23.98 kB / 0.6522 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.148e-05/0.5754, allocations: 28 kB / 0.6522 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004952/0.5803, allocations: 1.181 MB / 0.6534 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002099/0.5824, allocations: 0.585 MB / 0.6539 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009766/0.5922, allocations: 7.149 MB / 0.6609 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00203/0.5942, allocations: 115.9 kB / 0.661 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002725/0.5945, allocations: 163.9 kB / 0.6612 GB, free: 5.766 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.0009535/0.5955, allocations: 484.8 kB / 0.6616 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004269/0.5959, allocations: 190.8 kB / 0.6618 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008798/0.6047, allocations: 3.25 MB / 0.665 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.6047, allocations: 16 kB / 0.665 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.936e-06/0.6047, allocations: 4 kB / 0.665 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-05/0.6047, allocations: 11.97 kB / 0.665 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01226/0.617, allocations: 5.109 MB / 0.67 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.617, allocations: 4 kB / 0.67 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.6182, allocations: 307.9 kB / 0.6703 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004402/0.6226, allocations: 1.046 MB / 0.6713 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001855/0.6228, allocations: 71.89 kB / 0.6714 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00817/0.631, allocations: 6.436 MB / 0.6777 GB, free: 4.328 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.631, allocations: 4.031 kB / 0.6777 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009727/0.6407, allocations: 4.132 MB / 0.6817 GB, free: 132 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005848/0.6413, allocations: 166.9 kB / 0.6819 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000245/0.6416, allocations: 39.94 kB / 0.6819 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009853/0.6425, allocations: 39.98 kB / 0.682 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004083/0.6429, allocations: 197.3 kB / 0.6821 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/0.6431, allocations: 79.95 kB / 0.6822 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001252/0.6444, allocations: 0.9586 MB / 0.6832 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.6444, allocations: 288 / 0.6832 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003792/0.6482, allocations: 1.263 MB / 0.6844 GB, free: 13.39 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.01201/0.6602, allocations: 5.917 MB / 0.6902 GB, free: 7.398 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005497/0.6657, allocations: 2.838 MB / 0.6929 GB, free: 4.523 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.6657, allocations: 4 kB / 0.6929 GB, free: 4.52 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002697/0.6684, allocations: 1.46 MB / 0.6944 GB, free: 3.02 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/0.6701, allocations: 311.4 kB / 0.6947 GB, free: 2.723 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03489/0.705, allocations: 19.17 MB / 0.7134 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000994/0.706, allocations: 0.9106 MB / 0.7143 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001458/0.7074, allocations: 462.8 kB / 0.7147 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001331/0.7088, allocations: 1.014 MB / 0.7157 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of SimCode: time 1.002e-06/0.7088, allocations: 3.938 kB / 0.7157 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3246/1.033, allocations: 67.05 MB / 0.7812 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.23/16.26, allocations: 4 kB / 0.7812 GB, free: 146.4 MB / 0.5606 GB " [Timeout remaining time 644] (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: 18.964796328014927] Failed to read output from testmodel.py, exit status != 0: 16.419274746993324 16.437768977 15.967516792 Calling exit ...