Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001245/0.001245, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001389/0.001389, allocations: 216.4 kB / 22.25 MB, free: 5.117 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.35/1.35, allocations: 230.6 MB / 256 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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.1275/0.1275, allocations: 23.86 MB / 336.3 MB, free: 11.18 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.MethanElectrosynthesis,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,fileNamePrefix="Chemical_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.001937/0.001937, allocations: 63.91 kB / 471.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2809, allocations: 59.86 MB / 0.5186 GB, free: 9.188 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.MethanElectrosynthesis): time 0.03636/0.3172, allocations: 30.27 MB / 0.5481 GB, free: 9.629 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02741/0.3446, allocations: 22.2 MB / 0.5698 GB, free: 5.184 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001553/0.3462, allocations: 31.75 kB / 0.5699 GB, free: 5.152 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.3477, allocations: 0.5799 MB / 0.5704 GB, free: 4.699 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003451/0.3511, allocations: 1.361 MB / 0.5717 GB, free: 3.539 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00862/0.3597, allocations: 3.334 MB / 0.575 GB, free: 212 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003437/0.3632, allocations: 2.407 MB / 0.5774 GB, free: 13.79 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001572/0.3647, allocations: 1.27 MB / 0.5786 GB, free: 12.47 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001165/0.3659, allocations: 1.06 MB / 0.5796 GB, free: 11.41 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.3675, allocations: 1.218 MB / 0.5808 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003092/0.3678, allocations: 236 kB / 0.581 GB, free: 9.953 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006523/0.3743, allocations: 2.375 MB / 0.5834 GB, free: 7.574 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000505/0.3748, allocations: 0.5336 MB / 0.5839 GB, free: 7.039 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001073/0.3759, allocations: 1.147 MB / 0.585 GB, free: 5.887 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008371/0.3843, allocations: 5.015 MB / 0.5899 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3843, allocations: 0 / 0.5899 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3843, allocations: 0 / 0.5899 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.083e-05/0.3843, allocations: 0 / 0.5899 GB, free: 0.8516 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.004778/0.3891, allocations: 2.675 MB / 0.5925 GB, free: 14.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3891, allocations: 8.031 kB / 0.5925 GB, free: 14.12 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003053/0.3894, allocations: 270.4 kB / 0.5928 GB, free: 13.85 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001802/0.3912, allocations: 0.5145 MB / 0.5933 GB, free: 13.33 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.3932, allocations: 1.133 MB / 0.5944 GB, free: 12.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002145/0.3935, allocations: 250.7 kB / 0.5946 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002853/0.3937, allocations: 192 kB / 0.5948 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003862/0.3976, allocations: 2.69 MB / 0.5974 GB, free: 8.953 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.573e-05/0.3976, allocations: 0 / 0.5974 GB, free: 8.953 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001809/0.3978, allocations: 80 kB / 0.5975 GB, free: 8.875 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.903e-05/0.3979, allocations: 44 kB / 0.5976 GB, free: 8.832 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004856/0.4027, allocations: 3.349 MB / 0.6008 GB, free: 5.477 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.01283/0.4155, allocations: 8.483 MB / 0.6091 GB, free: 12.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/0.4175, allocations: 1.116 MB / 0.6102 GB, free: 11.57 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009617/0.4184, allocations: 0.5988 MB / 0.6108 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007747/0.4262, allocations: 3.588 MB / 0.6143 GB, free: 7.348 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.4262, allocations: 51.09 kB / 0.6143 GB, free: 7.289 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008189/0.427, allocations: 202.8 kB / 0.6145 GB, free: 7.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 2.264e-06/0.427, allocations: 0 / 0.6145 GB, free: 7.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02658/0.4536, allocations: 6.917 MB / 0.6213 GB, free: 116 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.603e-05/0.4537, allocations: 119.9 kB / 0.6214 GB, free: 15.97 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002206/0.4559, allocations: 1.888 MB / 0.6232 GB, free: 14.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.636e-05/0.456, allocations: 45.7 kB / 0.6233 GB, free: 14.02 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007394/0.4567, allocations: 1.037 MB / 0.6243 GB, free: 12.96 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003737/0.4571, allocations: 436.4 kB / 0.6247 GB, free: 12.54 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000597/0.4577, allocations: 415.3 kB / 0.6251 GB, free: 12.12 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.4578, allocations: 305.1 kB / 0.6254 GB, free: 11.82 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/0.4592, allocations: 0.8746 MB / 0.6263 GB, free: 10.94 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001963/0.4611, allocations: 1.604 MB / 0.6278 GB, free: 8.992 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003159/0.4643, allocations: 2.352 MB / 0.6301 GB, free: 6.305 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.4643, allocations: 4 kB / 0.6301 GB, free: 6.301 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008158/0.4725, allocations: 3.331 MB / 0.6334 GB, free: 2.945 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.4725, allocations: 26.94 kB / 0.6334 GB, free: 2.922 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-05/0.4725, allocations: 24 kB / 0.6334 GB, free: 2.898 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004731/0.4773, allocations: 1.042 MB / 0.6344 GB, free: 1.84 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/0.4787, allocations: 431.3 kB / 0.6349 GB, free: 1.418 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.4887, allocations: 7.18 MB / 0.6419 GB, free: 9.863 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.4903, allocations: 95.84 kB / 0.642 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002234/0.4905, allocations: 116 kB / 0.6421 GB, free: 9.656 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.0007266/0.4913, allocations: 409.6 kB / 0.6425 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003506/0.4916, allocations: 155 kB / 0.6426 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006669/0.4983, allocations: 2.172 MB / 0.6447 GB, free: 6.895 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.253e-05/0.4983, allocations: 15.94 kB / 0.6447 GB, free: 6.879 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.4983, allocations: 4 kB / 0.6447 GB, free: 6.875 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.241e-05/0.4983, allocations: 7.984 kB / 0.6448 GB, free: 6.867 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.5084, allocations: 3.904 MB / 0.6486 GB, free: 2.875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.5084, allocations: 4 kB / 0.6486 GB, free: 2.871 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007429/0.5091, allocations: 171.8 kB / 0.6487 GB, free: 2.703 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004284/0.5134, allocations: 0.9271 MB / 0.6496 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/0.5135, allocations: 47.97 kB / 0.6497 GB, free: 1.715 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008438/0.522, allocations: 6.463 MB / 0.656 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.522, allocations: 3.938 kB / 0.656 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007319/0.5293, allocations: 2.896 MB / 0.6588 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003437/0.5296, allocations: 143 kB / 0.659 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002069/0.5298, allocations: 23.94 kB / 0.659 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008322/0.5307, allocations: 35.98 kB / 0.659 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002583/0.5309, allocations: 120.7 kB / 0.6591 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.531, allocations: 51.95 kB / 0.6592 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00154/0.5326, allocations: 1.33 MB / 0.6605 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5326, allocations: 0 / 0.6605 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002802/0.5354, allocations: 0.9702 MB / 0.6614 GB, free: 5.262 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.009089/0.5445, allocations: 4.364 MB / 0.6657 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004514/0.549, allocations: 2.362 MB / 0.668 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.549, allocations: 0 / 0.668 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002058/0.551, allocations: 1.091 MB / 0.6691 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.5523, allocations: 251.5 kB / 0.6693 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02947/0.5818, allocations: 16.57 MB / 0.6855 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009769/0.5828, allocations: 1.306 MB / 0.6868 GB, free: 10.24 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001047/0.5838, allocations: 343.4 kB / 0.6871 GB, free: 9.902 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009814/0.5848, allocations: 0.7531 MB / 0.6878 GB, free: 9.148 MB / 0.5294 GB Notification: Performance of SimCode: time 6.82e-07/0.5848, allocations: 0 / 0.6878 GB, free: 9.148 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2918/0.8765, allocations: 52.74 MB / 0.7393 GB, free: 174.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.57/27.45, allocations: 6.781 kB / 0.7393 GB, free: 174.8 MB / 0.5606 GB " [Timeout remaining time 632] (rm -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.sim & python3 -m fmpy simulate --output-file Chemical_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_Chemical_Obsolete_Examples_ClimateChange_MethanElectrosynthesis.fmu > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 30.042707168999186] Failed to read output from testmodel.py, exit status != 0: 27.591967678999936 27.603619226 27.216779169 Calling exit ...