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.001516/0.001516, 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.001656/0.001656, allocations: 215.2 kB / 22.25 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.352/1.352, 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.1294/0.1294, allocations: 23.89 MB / 336.3 MB, free: 11.17 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.001982/0.001982, allocations: 78.69 kB / 471.2 MB, free: 7.641 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2775, allocations: 59.86 MB / 0.5187 GB, free: 9.633 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.0371/0.3146, allocations: 30.27 MB / 0.5482 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02722/0.3418, allocations: 22.2 MB / 0.5699 GB, free: 5.281 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001396/0.3432, allocations: 31.75 kB / 0.5699 GB, free: 5.25 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001544/0.3448, allocations: 0.5758 MB / 0.5705 GB, free: 4.801 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003453/0.3482, allocations: 1.364 MB / 0.5718 GB, free: 3.625 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008164/0.3564, allocations: 3.34 MB / 0.5751 GB, free: 272 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003521/0.3599, allocations: 2.395 MB / 0.5774 GB, free: 13.86 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.3615, allocations: 1.266 MB / 0.5787 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.3626, allocations: 1.06 MB / 0.5797 GB, free: 11.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001509/0.3641, allocations: 1.226 MB / 0.5809 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002917/0.3644, allocations: 236 kB / 0.5811 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00614/0.3705, allocations: 2.367 MB / 0.5834 GB, free: 7.648 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004913/0.371, allocations: 0.5413 MB / 0.584 GB, free: 7.105 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001047/0.3721, allocations: 1.136 MB / 0.5851 GB, free: 5.965 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008912/0.381, allocations: 5.023 MB / 0.59 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.381, allocations: 0 / 0.59 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.381, allocations: 0 / 0.59 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.307e-05/0.381, allocations: 0 / 0.59 GB, free: 0.9219 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.004624/0.3856, allocations: 2.671 MB / 0.5926 GB, free: 14.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.3857, allocations: 12.03 kB / 0.5926 GB, free: 14.19 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000302/0.386, allocations: 274.4 kB / 0.5929 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001791/0.3878, allocations: 0.5064 MB / 0.5933 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002001/0.3898, allocations: 1.145 MB / 0.5945 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002289/0.39, allocations: 254.7 kB / 0.5947 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002842/0.3903, allocations: 188 kB / 0.5949 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00397/0.3943, allocations: 2.687 MB / 0.5975 GB, free: 9.02 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.811e-05/0.3943, allocations: 3.938 kB / 0.5975 GB, free: 9.016 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001752/0.3945, allocations: 80 kB / 0.5976 GB, free: 8.938 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.822e-05/0.3945, allocations: 44 kB / 0.5976 GB, free: 8.895 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004743/0.3993, allocations: 3.342 MB / 0.6009 GB, free: 5.547 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.0125/0.4118, allocations: 8.479 MB / 0.6092 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001949/0.4137, allocations: 1.12 MB / 0.6103 GB, free: 11.64 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009627/0.4147, allocations: 0.595 MB / 0.6109 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007506/0.4222, allocations: 3.592 MB / 0.6144 GB, free: 7.418 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.751e-05/0.4222, allocations: 47.16 kB / 0.6144 GB, free: 7.363 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007783/0.423, allocations: 202.8 kB / 0.6146 GB, free: 7.164 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 2.184e-06/0.423, allocations: 0 / 0.6146 GB, free: 7.164 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02765/0.4507, allocations: 6.917 MB / 0.6214 GB, free: 192 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.445e-05/0.4507, allocations: 115.8 kB / 0.6215 GB, free: 52 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0024/0.4531, allocations: 1.888 MB / 0.6233 GB, free: 14.14 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001781/0.4533, allocations: 45.7 kB / 0.6234 GB, free: 14.09 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007638/0.4541, allocations: 1.037 MB / 0.6244 GB, free: 13.04 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004026/0.4545, allocations: 436.5 kB / 0.6248 GB, free: 12.61 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006045/0.4551, allocations: 419.3 kB / 0.6252 GB, free: 12.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.4552, allocations: 301.1 kB / 0.6255 GB, free: 11.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.4566, allocations: 0.8746 MB / 0.6263 GB, free: 11.02 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001963/0.4585, allocations: 1.604 MB / 0.6279 GB, free: 9.07 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003209/0.4617, allocations: 2.364 MB / 0.6302 GB, free: 6.371 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.4617, allocations: 4 kB / 0.6302 GB, free: 6.367 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008299/0.47, allocations: 3.327 MB / 0.6335 GB, free: 3.016 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/0.4701, allocations: 16 kB / 0.6335 GB, free: 3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.565e-05/0.4701, allocations: 31.88 kB / 0.6335 GB, free: 2.969 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004875/0.475, allocations: 1.033 MB / 0.6345 GB, free: 1.922 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.4765, allocations: 435.3 kB / 0.6349 GB, free: 1.496 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/0.4866, allocations: 7.185 MB / 0.6419 GB, free: 9.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/0.4882, allocations: 91.91 kB / 0.642 GB, free: 9.844 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002395/0.4885, allocations: 120 kB / 0.6421 GB, free: 9.727 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.000769/0.4892, allocations: 409.6 kB / 0.6425 GB, free: 9.316 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003462/0.4896, allocations: 151 kB / 0.6427 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006747/0.4963, allocations: 2.175 MB / 0.6448 GB, free: 6.969 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/0.4964, allocations: 15.94 kB / 0.6448 GB, free: 6.953 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.4964, allocations: 4 kB / 0.6448 GB, free: 6.949 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.4964, allocations: 3.984 kB / 0.6448 GB, free: 6.945 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00951/0.5059, allocations: 3.916 MB / 0.6486 GB, free: 2.941 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.5059, allocations: 4 kB / 0.6486 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007562/0.5066, allocations: 171.8 kB / 0.6488 GB, free: 2.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004382/0.511, allocations: 0.9274 MB / 0.6497 GB, free: 1.828 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/0.5112, allocations: 47.97 kB / 0.6498 GB, free: 1.781 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008484/0.5196, allocations: 6.462 MB / 0.6561 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5196, allocations: 0 / 0.6561 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007755/0.5274, allocations: 2.907 MB / 0.6589 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003311/0.5277, allocations: 139 kB / 0.659 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001974/0.5279, allocations: 24 kB / 0.6591 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008673/0.5288, allocations: 32.11 kB / 0.6591 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002738/0.5291, allocations: 120.7 kB / 0.6592 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.5292, allocations: 51.97 kB / 0.6593 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0016/0.5308, allocations: 1.334 MB / 0.6606 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.5308, allocations: 0 / 0.6606 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002834/0.5336, allocations: 0.9702 MB / 0.6615 GB, free: 5.328 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.009281/0.5429, allocations: 4.364 MB / 0.6658 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004514/0.5474, allocations: 2.355 MB / 0.6681 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.5474, allocations: 0.875 kB / 0.6681 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002066/0.5495, allocations: 1.098 MB / 0.6691 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.5508, allocations: 255.5 kB / 0.6694 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02926/0.58, allocations: 16.56 MB / 0.6856 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009959/0.581, allocations: 1.31 MB / 0.6868 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001016/0.582, allocations: 331 kB / 0.6872 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009935/0.583, allocations: 0.7648 MB / 0.6879 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of SimCode: time 7.01e-07/0.583, allocations: 0 / 0.6879 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2943/0.8774, allocations: 52.75 MB / 0.7394 GB, free: 175.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.42/27.3, allocations: 7.891 kB / 0.7394 GB, free: 175.1 MB / 0.5606 GB " [Timeout remaining time 633] (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 sys.exit(0), Time elapsed: 29.929957709995506] Failed to read output from testmodel.py, exit status != 0: 27.441906043997733 27.454191735 27.0705478 Calling exit ...