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.001404/0.001404, allocations: 109.1 kB / 18.99 MB, free: 2.609 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.001663/0.001663, allocations: 219.4 kB / 22.3 MB, free: 5.281 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.549/1.549, allocations: 230.6 MB / 256.1 MB, free: 7.809 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.1591/0.1591, allocations: 23.89 MB / 336.4 MB, free: 10.96 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.002196/0.002196, allocations: 67.91 kB / 471.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4194/0.4215, allocations: 59.85 MB / 0.5191 GB, free: 9.746 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.07936/0.5009, allocations: 29.25 MB / 0.5477 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02967/0.5306, allocations: 19.47 MB / 0.5667 GB, free: 8.938 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002383/0.533, allocations: 31.75 kB / 0.5667 GB, free: 8.906 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002021/0.535, allocations: 0.529 MB / 0.5672 GB, free: 8.504 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005402/0.5404, allocations: 1.321 MB / 0.5685 GB, free: 7.266 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01103/0.5514, allocations: 3.336 MB / 0.5718 GB, free: 3.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004401/0.5558, allocations: 2.395 MB / 0.5741 GB, free: 1.504 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001924/0.5577, allocations: 1.247 MB / 0.5754 GB, free: 216 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001559/0.5593, allocations: 1.067 MB / 0.5764 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001897/0.5612, allocations: 1.077 MB / 0.5774 GB, free: 14.06 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003996/0.5616, allocations: 232 kB / 0.5777 GB, free: 13.83 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006675/0.5683, allocations: 2.231 MB / 0.5798 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008452/0.5691, allocations: 0.5336 MB / 0.5804 GB, free: 11.06 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001412/0.5705, allocations: 0.9531 MB / 0.5813 GB, free: 10.11 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01241/0.5829, allocations: 5.015 MB / 0.5862 GB, free: 5.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.5829, allocations: 0 / 0.5862 GB, free: 5.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.5829, allocations: 0 / 0.5862 GB, free: 5.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.875e-05/0.583, allocations: 4 kB / 0.5862 GB, free: 5.066 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.005947/0.589, allocations: 2.659 MB / 0.5888 GB, free: 2.363 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.589, allocations: 8.031 kB / 0.5888 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002166/0.5912, allocations: 0.5067 MB / 0.5893 GB, free: 1.848 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002409/0.5936, allocations: 1.141 MB / 0.5904 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002718/0.5939, allocations: 254.9 kB / 0.5907 GB, free: 408 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003567/0.5942, allocations: 188 kB / 0.5908 GB, free: 220 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004683/0.5989, allocations: 2.712 MB / 0.5935 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.417e-05/0.5989, allocations: 4 kB / 0.5935 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001989/0.5991, allocations: 76 kB / 0.5936 GB, free: 13.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.383e-05/0.5992, allocations: 48 kB / 0.5936 GB, free: 13.31 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005341/0.6045, allocations: 3.322 MB / 0.5968 GB, free: 9.98 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.01372/0.6182, allocations: 7.289 MB / 0.604 GB, free: 2.539 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002074/0.6203, allocations: 1.117 MB / 0.6051 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.6213, allocations: 0.5911 MB / 0.6056 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008084/0.6294, allocations: 3.386 MB / 0.6089 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.105e-05/0.6295, allocations: 51.16 kB / 0.609 GB, free: 13.32 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009483/0.6304, allocations: 190.9 kB / 0.6092 GB, free: 13.14 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 2.905e-06/0.6304, allocations: 0 / 0.6092 GB, free: 13.14 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.02863/0.659, allocations: 6.905 MB / 0.6159 GB, free: 6.176 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.79e-05/0.6591, allocations: 119.8 kB / 0.616 GB, free: 6.035 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002474/0.6616, allocations: 1.835 MB / 0.6178 GB, free: 4.188 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001786/0.6618, allocations: 41.7 kB / 0.6179 GB, free: 4.141 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008402/0.6626, allocations: 1.053 MB / 0.6189 GB, free: 3.074 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004602/0.6631, allocations: 436.5 kB / 0.6193 GB, free: 2.645 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000672/0.6638, allocations: 419.3 kB / 0.6197 GB, free: 2.227 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.6639, allocations: 301.1 kB / 0.62 GB, free: 1.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001482/0.6654, allocations: 0.8746 MB / 0.6208 GB, free: 1.051 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002226/0.6676, allocations: 1.608 MB / 0.6224 GB, free: 15.09 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003488/0.6711, allocations: 2.348 MB / 0.6247 GB, free: 12.41 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.396e-05/0.6711, allocations: 4 kB / 0.6247 GB, free: 12.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008824/0.6799, allocations: 3.319 MB / 0.628 GB, free: 9.062 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.957e-05/0.68, allocations: 16 kB / 0.628 GB, free: 9.047 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.044e-05/0.68, allocations: 24.47 kB / 0.628 GB, free: 9.023 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005045/0.6851, allocations: 1.049 MB / 0.629 GB, free: 7.965 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00164/0.6867, allocations: 431.3 kB / 0.6294 GB, free: 7.543 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.6976, allocations: 7.039 MB / 0.6363 GB, free: 172 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/0.6995, allocations: 99.91 kB / 0.6364 GB, free: 72 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002974/0.6998, allocations: 116 kB / 0.6365 GB, free: 15.95 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.00105/0.7009, allocations: 401.1 kB / 0.6369 GB, free: 15.55 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005104/0.7014, allocations: 150.9 kB / 0.637 GB, free: 15.41 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006927/0.7083, allocations: 2.182 MB / 0.6392 GB, free: 13.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.688e-05/0.7083, allocations: 12 kB / 0.6392 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.7083, allocations: 4 kB / 0.6392 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.7083, allocations: 7.969 kB / 0.6392 GB, free: 13.17 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00986/0.7182, allocations: 3.508 MB / 0.6426 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.7182, allocations: 4 kB / 0.6426 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007988/0.719, allocations: 175.8 kB / 0.6428 GB, free: 9.422 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00466/0.7237, allocations: 0.9248 MB / 0.6437 GB, free: 8.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001698/0.7238, allocations: 55.91 kB / 0.6437 GB, free: 8.426 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009695/0.7335, allocations: 6.332 MB / 0.6499 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.7335, allocations: 8.062 kB / 0.6499 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008239/0.7418, allocations: 2.887 MB / 0.6528 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006493/0.7424, allocations: 123.2 kB / 0.6529 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000538/0.743, allocations: 28.27 kB / 0.6529 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.7442, allocations: 31.98 kB / 0.6529 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003971/0.7446, allocations: 120.7 kB / 0.653 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.7448, allocations: 51.91 kB / 0.6531 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001942/0.7467, allocations: 1.256 MB / 0.6543 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.7467, allocations: 4 kB / 0.6543 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004543/0.7512, allocations: 0.9702 MB / 0.6553 GB, free: 12.24 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.003627/0.7549, allocations: 1.02 MB / 0.6563 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00653/0.7614, allocations: 2.351 MB / 0.6586 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/0.7614, allocations: 4 kB / 0.6586 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002453/0.7639, allocations: 1.103 MB / 0.6596 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.7657, allocations: 226.1 kB / 0.6599 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007406/0.7731, allocations: 3.218 MB / 0.663 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.7742, allocations: 0.7331 MB / 0.6637 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001255/0.7755, allocations: 322.9 kB / 0.664 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005707/0.776, allocations: 180.4 kB / 0.6642 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of SimCode: time 8.12e-07/0.776, allocations: 0 / 0.6642 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of Templates: time 0.06561/0.8416, allocations: 35.82 MB / 0.6992 GB, free: 15.25 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.978425275534391] Failed to read output from testmodel.py, exit status != 0: 0.852440994232893 0.869000485 0.282526269 Calling exit ...