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.001372/0.001372, allocations: 108 kB / 16.45 MB, free: 6.453 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.001498/0.001498, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.546/1.546, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.1447/0.1447, allocations: 23.88 MB / 332.7 MB, free: 12.32 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: translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") [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.002197/0.002197, allocations: 70.39 kB / 466.5 MB, free: 9.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3015, allocations: 59.83 MB / 0.514 GB, free: 9.391 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.0409/0.3424, allocations: 30.26 MB / 0.5436 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02948/0.3719, allocations: 22.15 MB / 0.5652 GB, free: 6.336 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001588/0.3735, allocations: 27.81 kB / 0.5652 GB, free: 6.309 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001643/0.3751, allocations: 0.5835 MB / 0.5658 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004329/0.3795, allocations: 1.35 MB / 0.5671 GB, free: 4.707 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009149/0.3886, allocations: 3.302 MB / 0.5704 GB, free: 1.602 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003755/0.3924, allocations: 2.399 MB / 0.5727 GB, free: 15.19 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001684/0.394, allocations: 1.297 MB / 0.574 GB, free: 13.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001253/0.3953, allocations: 1.056 MB / 0.575 GB, free: 12.79 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001568/0.3969, allocations: 1.23 MB / 0.5762 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003316/0.3972, allocations: 232 kB / 0.5764 GB, free: 11.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006621/0.4038, allocations: 2.375 MB / 0.5787 GB, free: 8.945 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005757/0.4044, allocations: 0.5375 MB / 0.5793 GB, free: 8.406 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00121/0.4056, allocations: 1.132 MB / 0.5804 GB, free: 7.27 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008847/0.4145, allocations: 5.035 MB / 0.5853 GB, free: 2.215 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.4145, allocations: 3.938 kB / 0.5853 GB, free: 2.211 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4145, allocations: 0 / 0.5853 GB, free: 2.211 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.269e-05/0.4145, allocations: 0 / 0.5853 GB, free: 2.211 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.005176/0.4197, allocations: 2.732 MB / 0.588 GB, free: 15.42 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.4197, allocations: 15.97 kB / 0.588 GB, free: 15.4 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002028/0.4217, allocations: 0.5025 MB / 0.5885 GB, free: 14.9 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002043/0.4238, allocations: 1.201 MB / 0.5896 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001971/0.424, allocations: 202 kB / 0.5898 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003262/0.4243, allocations: 196 kB / 0.59 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004309/0.4286, allocations: 2.655 MB / 0.5926 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.366e-05/0.4286, allocations: 4 kB / 0.5926 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002009/0.4288, allocations: 76 kB / 0.5927 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-05/0.4289, allocations: 48 kB / 0.5927 GB, free: 10.41 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005172/0.4341, allocations: 3.287 MB / 0.5959 GB, free: 7.113 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.01359/0.4476, allocations: 8.54 MB / 0.6043 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002168/0.4498, allocations: 1.267 MB / 0.6055 GB, free: 12.96 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.4509, allocations: 0.595 MB / 0.6061 GB, free: 12.36 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009074/0.4599, allocations: 5.595 MB / 0.6116 GB, free: 6.238 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.46, allocations: 47.16 kB / 0.6116 GB, free: 6.184 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008958/0.4609, allocations: 194.8 kB / 0.6118 GB, free: 5.992 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 2.544e-06/0.4609, allocations: 4 kB / 0.6118 GB, free: 5.988 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02904/0.4899, allocations: 7.218 MB / 0.6188 GB, free: 14.64 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.694e-05/0.49, allocations: 119.9 kB / 0.619 GB, free: 14.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002395/0.4924, allocations: 1.849 MB / 0.6208 GB, free: 12.63 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.4925, allocations: 49.69 kB / 0.6208 GB, free: 12.58 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008017/0.4933, allocations: 1.041 MB / 0.6218 GB, free: 11.52 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004102/0.4937, allocations: 436.4 kB / 0.6222 GB, free: 11.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006678/0.4944, allocations: 415.3 kB / 0.6226 GB, free: 10.68 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4945, allocations: 309.1 kB / 0.6229 GB, free: 10.38 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001438/0.496, allocations: 0.8551 MB / 0.6238 GB, free: 9.516 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002154/0.4981, allocations: 1.592 MB / 0.6253 GB, free: 7.574 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003473/0.5016, allocations: 2.333 MB / 0.6276 GB, free: 4.906 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/0.5016, allocations: 8 kB / 0.6276 GB, free: 4.898 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008648/0.5103, allocations: 3.284 MB / 0.6308 GB, free: 1.59 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.619e-05/0.5103, allocations: 19.28 kB / 0.6308 GB, free: 1.574 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.666e-05/0.5103, allocations: 24 kB / 0.6309 GB, free: 1.551 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00511/0.5154, allocations: 1.053 MB / 0.6319 GB, free: 492 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001617/0.5171, allocations: 427.3 kB / 0.6323 GB, free: 64 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/0.5283, allocations: 7.479 MB / 0.6396 GB, free: 8.145 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.5301, allocations: 95.84 kB / 0.6397 GB, free: 8.051 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002782/0.5304, allocations: 120 kB / 0.6398 GB, free: 7.934 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.000824/0.5312, allocations: 409.1 kB / 0.6402 GB, free: 7.523 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004003/0.5316, allocations: 151 kB / 0.6403 GB, free: 7.375 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00702/0.5386, allocations: 2.183 MB / 0.6425 GB, free: 5.16 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.5386, allocations: 15.94 kB / 0.6425 GB, free: 5.145 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.5386, allocations: 4 kB / 0.6425 GB, free: 5.141 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.5386, allocations: 3.984 kB / 0.6425 GB, free: 5.137 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.5488, allocations: 3.928 MB / 0.6463 GB, free: 1.109 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.5488, allocations: 208 / 0.6463 GB, free: 1.109 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008061/0.5496, allocations: 179.7 kB / 0.6465 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00469/0.5543, allocations: 0.9318 MB / 0.6474 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/0.5544, allocations: 43.92 kB / 0.6475 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009416/0.5639, allocations: 6.77 MB / 0.6541 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.5639, allocations: 8 kB / 0.6541 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007974/0.5718, allocations: 2.896 MB / 0.6569 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004361/0.5723, allocations: 216.1 kB / 0.6571 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/0.5725, allocations: 27.94 kB / 0.6571 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009137/0.5734, allocations: 31.98 kB / 0.6572 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003245/0.5737, allocations: 121 kB / 0.6573 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.5739, allocations: 47.97 kB / 0.6573 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001795/0.5757, allocations: 1.302 MB / 0.6586 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5757, allocations: 3.938 kB / 0.6586 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00334/0.579, allocations: 0.9703 MB / 0.6595 GB, free: 3.047 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.002036/0.581, allocations: 1.012 MB / 0.6605 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005165/0.5862, allocations: 2.41 MB / 0.6629 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.5862, allocations: 0 / 0.6629 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00247/0.5887, allocations: 1.174 MB / 0.664 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.5903, allocations: 252 kB / 0.6643 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006282/0.5966, allocations: 3.227 MB / 0.6674 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/0.5977, allocations: 1.31 MB / 0.6687 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001198/0.5989, allocations: 327.2 kB / 0.669 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004394/0.5993, allocations: 191.3 kB / 0.6692 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of SimCode: time 1.272e-06/0.5993, allocations: 0 / 0.6692 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of Templates: time 0.06155/0.6609, allocations: 37.19 MB / 0.7055 GB, free: 3.836 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.makefile [Timeout 660] (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 & ./Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.222530242986977] Failed to read output from testmodel.py, exit status != 0: 0.6701410296373069 0.684596729 0.26712196600000004 Calling exit ...