Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001207/0.001207, 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.001349/0.001349, allocations: 216.5 kB / 22.24 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.334/1.334, allocations: 230.6 MB / 256 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 179] 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.1269/0.1269, allocations: 23.88 MB / 336.3 MB, free: 10.98 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.ElectrolysisMethanation,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation,fileNamePrefix="Chemical_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.001954/0.001954, allocations: 72.12 kB / 471.1 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2821, allocations: 59.87 MB / 0.5185 GB, free: 9.23 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.ElectrolysisMethanation): time 0.07385/0.3559, allocations: 30.61 MB / 0.5484 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03494/0.3909, allocations: 25.49 MB / 0.5733 GB, free: 1.66 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00203/0.3929, allocations: 35.75 kB / 0.5734 GB, free: 1.625 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002134/0.395, allocations: 0.6357 MB / 0.574 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006873/0.4019, allocations: 2.2 MB / 0.5761 GB, free: 14.77 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01037/0.4123, allocations: 3.996 MB / 0.58 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004457/0.4167, allocations: 3.085 MB / 0.5831 GB, free: 7.648 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002415/0.4191, allocations: 1.616 MB / 0.5846 GB, free: 5.988 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002435/0.4216, allocations: 1.481 MB / 0.5861 GB, free: 4.504 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002563/0.4241, allocations: 1.682 MB / 0.5877 GB, free: 2.816 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004915/0.4246, allocations: 304 kB / 0.588 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007385/0.432, allocations: 3.066 MB / 0.591 GB, free: 15.45 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007982/0.4328, allocations: 0.6971 MB / 0.5917 GB, free: 14.75 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00146/0.4343, allocations: 1.214 MB / 0.5929 GB, free: 13.53 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0126/0.4469, allocations: 6.556 MB / 0.5993 GB, free: 6.949 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.4469, allocations: 0 / 0.5993 GB, free: 6.949 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4469, allocations: 0 / 0.5993 GB, free: 6.949 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.646e-05/0.4469, allocations: 0 / 0.5993 GB, free: 6.949 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.006155/0.4531, allocations: 3.323 MB / 0.6025 GB, free: 3.574 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.4531, allocations: 12.03 kB / 0.6025 GB, free: 3.562 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003846/0.4535, allocations: 333.6 kB / 0.6028 GB, free: 3.227 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002228/0.4557, allocations: 0.5764 MB / 0.6034 GB, free: 2.648 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002815/0.4585, allocations: 1.36 MB / 0.6047 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003067/0.4589, allocations: 347.1 kB / 0.6051 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005053/0.4594, allocations: 243.9 kB / 0.6053 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005184/0.4645, allocations: 3.086 MB / 0.6083 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.53e-05/0.4646, allocations: 3.938 kB / 0.6083 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002389/0.4648, allocations: 100 kB / 0.6084 GB, free: 13.33 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.64e-05/0.4649, allocations: 56 kB / 0.6085 GB, free: 13.27 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005491/0.4704, allocations: 3.611 MB / 0.612 GB, free: 9.66 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.01584/0.4862, allocations: 9.037 MB / 0.6208 GB, free: 448 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002884/0.4891, allocations: 1.772 MB / 0.6225 GB, free: 14.65 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/0.4906, allocations: 1.027 MB / 0.6236 GB, free: 13.61 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01109/0.5017, allocations: 5.2 MB / 0.6286 GB, free: 8.375 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.487e-05/0.5018, allocations: 47.88 kB / 0.6287 GB, free: 8.32 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001225/0.503, allocations: 298.5 kB / 0.629 GB, free: 8.027 MB / 478.1 MB Notification: Performance of pre-optimization done (n=134): time 3.857e-06/0.503, allocations: 0 / 0.629 GB, free: 8.027 MB / 478.1 MB Notification: Performance of matching and sorting (n=181): time 0.03277/0.5358, allocations: 9.534 MB / 0.6383 GB, free: 14.43 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.021e-05/0.5359, allocations: 124.8 kB / 0.6384 GB, free: 14.29 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001924/0.5378, allocations: 1.536 MB / 0.6399 GB, free: 12.74 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002546/0.538, allocations: 57.7 kB / 0.6399 GB, free: 12.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008687/0.5389, allocations: 1.186 MB / 0.6411 GB, free: 11.48 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006931/0.5396, allocations: 0.6663 MB / 0.6418 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007658/0.5404, allocations: 0.517 MB / 0.6423 GB, free: 10.28 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.5405, allocations: 305.1 kB / 0.6425 GB, free: 9.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001661/0.5422, allocations: 0.9462 MB / 0.6435 GB, free: 9.031 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002474/0.5446, allocations: 1.906 MB / 0.6453 GB, free: 6.688 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004357/0.549, allocations: 3.003 MB / 0.6483 GB, free: 3.25 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.029e-05/0.549, allocations: 12 kB / 0.6483 GB, free: 3.238 MB / 494.1 MB Notification: Performance of matching and sorting (n=342) (initialization): time 0.01008/0.5591, allocations: 3.89 MB / 0.6521 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.047e-05/0.5591, allocations: 20 kB / 0.6521 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.993e-05/0.5592, allocations: 39.98 kB / 0.6521 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005089/0.5643, allocations: 1.173 MB / 0.6533 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/0.5666, allocations: 0.5889 MB / 0.6539 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/0.5767, allocations: 7.155 MB / 0.6608 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001943/0.5787, allocations: 119.8 kB / 0.661 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003039/0.579, allocations: 155.9 kB / 0.6611 GB, free: 5.703 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.000913/0.5799, allocations: 480.9 kB / 0.6616 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004304/0.5803, allocations: 186.8 kB / 0.6617 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009245/0.5896, allocations: 3.249 MB / 0.6649 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/0.5896, allocations: 20.11 kB / 0.6649 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.5896, allocations: 7.938 kB / 0.6649 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.941e-05/0.5896, allocations: 7.969 kB / 0.6649 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01301/0.6026, allocations: 5.109 MB / 0.6699 GB, free: 12.52 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.6026, allocations: 0 / 0.6699 GB, free: 12.52 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.6039, allocations: 307.6 kB / 0.6702 GB, free: 12.22 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004714/0.6086, allocations: 1.045 MB / 0.6713 GB, free: 11.16 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003231/0.6089, allocations: 71.89 kB / 0.6713 GB, free: 11.09 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008497/0.6174, allocations: 6.44 MB / 0.6776 GB, free: 4.277 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.6174, allocations: 8.219 kB / 0.6776 GB, free: 4.27 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009997/0.6274, allocations: 4.132 MB / 0.6817 GB, free: 76 kB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005108/0.6279, allocations: 166.9 kB / 0.6818 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002632/0.6282, allocations: 39.94 kB / 0.6818 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000994/0.6292, allocations: 43.98 kB / 0.6819 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003939/0.6296, allocations: 185.4 kB / 0.6821 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/0.6298, allocations: 87.94 kB / 0.6822 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001249/0.631, allocations: 0.9586 MB / 0.6831 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.631, allocations: 0 / 0.6831 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00379/0.6348, allocations: 1.263 MB / 0.6843 GB, free: 13.34 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.01202/0.6468, allocations: 5.911 MB / 0.6901 GB, free: 7.348 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00576/0.6526, allocations: 2.826 MB / 0.6929 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.6526, allocations: 0 / 0.6929 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002873/0.6555, allocations: 1.468 MB / 0.6943 GB, free: 2.977 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/0.6571, allocations: 316.3 kB / 0.6946 GB, free: 2.672 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03607/0.6932, allocations: 19.18 MB / 0.7133 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009715/0.6941, allocations: 0.9106 MB / 0.7142 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001548/0.6957, allocations: 466.5 kB / 0.7147 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001352/0.697, allocations: 1.02 MB / 0.7156 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of SimCode: time 6.52e-07/0.697, allocations: 0 / 0.7156 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2957/0.9928, allocations: 67.04 MB / 0.7811 GB, free: 146 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.96/15.95, allocations: 10.75 kB / 0.7811 GB, free: 146 MB / 0.5606 GB " [Timeout remaining time 644] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.sim & python3 -m fmpy simulate --output-file Chemical_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_Chemical_Obsolete_Examples_ClimateChange_ElectrolysisMethanation.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.ElectrolysisMethanation.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.50218679200043] Failed to read output from testmodel.py, exit status != 0: 16.103792401001556 16.113637133 15.664438698 Calling exit ...