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.001536/0.001536, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.001706/0.001706, allocations: 221.7 kB / 22.25 MB, free: 5.215 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.417/1.417, allocations: 230.6 MB / 256 MB, free: 8.008 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.1324/0.1324, allocations: 23.85 MB / 336.3 MB, free: 11.2 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: translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis") translateModel(Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_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.001992/0.001992, allocations: 67.83 kB / 471.7 MB, free: 7.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2967, allocations: 59.85 MB / 0.5191 GB, free: 9.852 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.04491/0.3416, allocations: 30.28 MB / 0.5486 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02924/0.3709, allocations: 22.2 MB / 0.5703 GB, free: 5.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002631/0.3735, allocations: 27.81 kB / 0.5703 GB, free: 5.312 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002044/0.3756, allocations: 0.5715 MB / 0.5709 GB, free: 4.867 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004663/0.3802, allocations: 1.365 MB / 0.5722 GB, free: 3.621 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01072/0.391, allocations: 3.34 MB / 0.5755 GB, free: 268 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004598/0.3955, allocations: 2.406 MB / 0.5778 GB, free: 13.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001861/0.3974, allocations: 1.267 MB / 0.5791 GB, free: 12.53 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.3989, allocations: 1.056 MB / 0.5801 GB, free: 11.47 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001919/0.4008, allocations: 1.23 MB / 0.5813 GB, free: 10.23 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003928/0.4012, allocations: 232 kB / 0.5815 GB, free: 10.01 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007673/0.4089, allocations: 2.371 MB / 0.5838 GB, free: 7.633 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007936/0.4097, allocations: 0.5413 MB / 0.5844 GB, free: 7.09 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001646/0.4113, allocations: 1.132 MB / 0.5855 GB, free: 5.953 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.4232, allocations: 5.027 MB / 0.5904 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4232, allocations: 0 / 0.5904 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4232, allocations: 0 / 0.5904 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.402e-05/0.4233, allocations: 0 / 0.5904 GB, free: 0.9062 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.006068/0.4294, allocations: 2.659 MB / 0.593 GB, free: 14.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.4294, allocations: 12.03 kB / 0.593 GB, free: 14.19 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002032/0.4315, allocations: 0.5067 MB / 0.5935 GB, free: 13.68 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002179/0.4336, allocations: 1.137 MB / 0.5946 GB, free: 12.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002533/0.4339, allocations: 262.9 kB / 0.5949 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003041/0.4342, allocations: 188 kB / 0.595 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0043/0.4385, allocations: 2.69 MB / 0.5977 GB, free: 9.289 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.667e-05/0.4385, allocations: 0 / 0.5977 GB, free: 9.289 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001793/0.4387, allocations: 79.94 kB / 0.5977 GB, free: 9.211 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.443e-05/0.4387, allocations: 48 kB / 0.5978 GB, free: 9.164 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004865/0.4436, allocations: 3.342 MB / 0.601 GB, free: 5.816 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.01344/0.4571, allocations: 8.49 MB / 0.6093 GB, free: 13.04 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.4591, allocations: 1.12 MB / 0.6104 GB, free: 11.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009837/0.4601, allocations: 0.5989 MB / 0.611 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008081/0.4681, allocations: 3.576 MB / 0.6145 GB, free: 7.688 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.392e-05/0.4682, allocations: 47.16 kB / 0.6146 GB, free: 7.633 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009074/0.4691, allocations: 202.8 kB / 0.6147 GB, free: 7.434 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 2.936e-06/0.4691, allocations: 0 / 0.6147 GB, free: 7.434 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02968/0.4988, allocations: 6.924 MB / 0.6215 GB, free: 460 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.782e-05/0.4989, allocations: 115.8 kB / 0.6216 GB, free: 320 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002777/0.5017, allocations: 1.888 MB / 0.6235 GB, free: 14.41 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001444/0.5018, allocations: 45.7 kB / 0.6235 GB, free: 14.36 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008356/0.5026, allocations: 1.037 MB / 0.6245 GB, free: 13.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004948/0.5031, allocations: 440.4 kB / 0.6249 GB, free: 12.87 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007538/0.5039, allocations: 419.4 kB / 0.6253 GB, free: 12.45 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.504, allocations: 305.1 kB / 0.6256 GB, free: 12.15 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001534/0.5056, allocations: 0.8785 MB / 0.6265 GB, free: 11.27 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002259/0.5078, allocations: 1.604 MB / 0.6281 GB, free: 9.32 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003585/0.5114, allocations: 2.36 MB / 0.6304 GB, free: 6.625 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.741e-05/0.5114, allocations: 8 kB / 0.6304 GB, free: 6.617 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.009109/0.5205, allocations: 3.323 MB / 0.6336 GB, free: 3.27 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.549e-05/0.5206, allocations: 19.94 kB / 0.6336 GB, free: 3.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.266e-05/0.5206, allocations: 24 kB / 0.6337 GB, free: 3.227 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00541/0.526, allocations: 1.037 MB / 0.6347 GB, free: 2.176 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001639/0.5277, allocations: 439.3 kB / 0.6351 GB, free: 1.746 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.5383, allocations: 7.161 MB / 0.6421 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.5402, allocations: 99.89 kB / 0.6422 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004152/0.5406, allocations: 116 kB / 0.6423 GB, free: 10 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.00112/0.5417, allocations: 413 kB / 0.6427 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005876/0.5423, allocations: 147 kB / 0.6428 GB, free: 9.441 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007564/0.5499, allocations: 2.176 MB / 0.6449 GB, free: 7.238 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.035e-05/0.5499, allocations: 19.97 kB / 0.645 GB, free: 7.219 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.5499, allocations: 8 kB / 0.645 GB, free: 7.211 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-05/0.5499, allocations: 7.969 kB / 0.645 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01138/0.5613, allocations: 3.9 MB / 0.6488 GB, free: 3.215 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.365e-05/0.5613, allocations: 4 kB / 0.6488 GB, free: 3.211 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008503/0.5622, allocations: 179.7 kB / 0.649 GB, free: 3.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004842/0.567, allocations: 0.921 MB / 0.6499 GB, free: 2.098 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001644/0.5672, allocations: 43.95 kB / 0.6499 GB, free: 2.055 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009225/0.5764, allocations: 6.466 MB / 0.6562 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5764, allocations: 4.031 kB / 0.6562 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008071/0.5845, allocations: 2.9 MB / 0.6591 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004658/0.585, allocations: 147.1 kB / 0.6592 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003431/0.5853, allocations: 24 kB / 0.6592 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.5864, allocations: 31.98 kB / 0.6592 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003211/0.5867, allocations: 124.6 kB / 0.6594 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/0.5868, allocations: 55.95 kB / 0.6594 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00189/0.5887, allocations: 1.322 MB / 0.6607 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5887, allocations: 4 kB / 0.6607 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003498/0.5922, allocations: 0.9742 MB / 0.6617 GB, free: 5.59 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.002455/0.5947, allocations: 1.012 MB / 0.6627 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005442/0.6001, allocations: 2.359 MB / 0.665 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.6001, allocations: 0 / 0.665 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002389/0.6025, allocations: 1.107 MB / 0.666 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.6043, allocations: 239.8 kB / 0.6663 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006766/0.6111, allocations: 3.223 MB / 0.6694 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001338/0.6124, allocations: 1.314 MB / 0.6707 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001456/0.6139, allocations: 339.3 kB / 0.671 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005449/0.6144, allocations: 175.3 kB / 0.6712 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of SimCode: time 1.433e-06/0.6144, allocations: 0 / 0.6712 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of Templates: time 0.06702/0.6814, allocations: 38.5 MB / 0.7088 GB, free: 5.246 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.makefile [Timeout 660] (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 & ./Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.340634388849139] Failed to read output from testmodel.py, exit status != 0: 0.6909127649851143 0.70568309 0.279136901 Calling exit ...