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.001727/0.001727, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002075/0.002075, allocations: 211.9 kB / 22.99 MB, free: 4.984 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.468/1.468, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.1434/0.1434, allocations: 23.88 MB / 337 MB, free: 11.07 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.002123/0.002123, allocations: 67.89 kB / 472.4 MB, free: 7.023 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.3001, allocations: 59.86 MB / 0.5198 GB, free: 9.75 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.07605/0.3761, allocations: 29.12 MB / 0.5482 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02773/0.4038, allocations: 19.47 MB / 0.5672 GB, free: 9.07 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001714/0.4056, allocations: 27.81 kB / 0.5672 GB, free: 9.043 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.4071, allocations: 0.5212 MB / 0.5677 GB, free: 8.648 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004226/0.4114, allocations: 1.322 MB / 0.569 GB, free: 7.418 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009056/0.4204, allocations: 3.336 MB / 0.5723 GB, free: 4.062 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003426/0.4238, allocations: 2.399 MB / 0.5746 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001555/0.4254, allocations: 1.274 MB / 0.5759 GB, free: 336 kB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.4266, allocations: 1.06 MB / 0.5769 GB, free: 15.26 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001483/0.4281, allocations: 1.23 MB / 0.5781 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003255/0.4284, allocations: 240 kB / 0.5783 GB, free: 13.79 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005561/0.4339, allocations: 2.278 MB / 0.5806 GB, free: 11.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005213/0.4345, allocations: 0.5336 MB / 0.5811 GB, free: 10.98 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.4355, allocations: 0.9609 MB / 0.582 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009195/0.4447, allocations: 5.011 MB / 0.5869 GB, free: 4.984 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4447, allocations: 0 / 0.5869 GB, free: 4.984 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4447, allocations: 0 / 0.5869 GB, free: 4.984 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.323e-05/0.4448, allocations: 0 / 0.5869 GB, free: 4.984 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.005401/0.4502, allocations: 2.655 MB / 0.5895 GB, free: 2.285 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.4502, allocations: 12.03 kB / 0.5895 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002126/0.4523, allocations: 0.5066 MB / 0.59 GB, free: 1.766 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002343/0.4547, allocations: 1.133 MB / 0.5911 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002838/0.455, allocations: 262.9 kB / 0.5914 GB, free: 324 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000337/0.4553, allocations: 188 kB / 0.5915 GB, free: 136 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004511/0.4598, allocations: 2.716 MB / 0.5942 GB, free: 13.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.962e-05/0.4599, allocations: 4 kB / 0.5942 GB, free: 13.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002081/0.4601, allocations: 84 kB / 0.5943 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.045e-05/0.4601, allocations: 44 kB / 0.5943 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005281/0.4654, allocations: 3.318 MB / 0.5976 GB, free: 9.895 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.0131/0.4785, allocations: 7.293 MB / 0.6047 GB, free: 2.449 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.4805, allocations: 1.105 MB / 0.6058 GB, free: 1.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/0.4816, allocations: 0.5911 MB / 0.6063 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008199/0.4898, allocations: 3.384 MB / 0.6096 GB, free: 13.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.4898, allocations: 47.16 kB / 0.6097 GB, free: 13.24 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009477/0.4907, allocations: 187 kB / 0.6099 GB, free: 13.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 2.525e-06/0.4908, allocations: 0 / 0.6099 GB, free: 13.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.03088/0.5216, allocations: 6.92 MB / 0.6166 GB, free: 6.086 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/0.5217, allocations: 115.8 kB / 0.6167 GB, free: 5.949 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002236/0.5239, allocations: 1.831 MB / 0.6185 GB, free: 4.105 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.5241, allocations: 45.7 kB / 0.6186 GB, free: 4.055 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007869/0.5248, allocations: 1.049 MB / 0.6196 GB, free: 2.992 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000422/0.5253, allocations: 432.4 kB / 0.62 GB, free: 2.566 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006645/0.5259, allocations: 419.3 kB / 0.6204 GB, free: 2.148 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5261, allocations: 301.1 kB / 0.6207 GB, free: 1.852 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.5275, allocations: 0.8824 MB / 0.6216 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002115/0.5296, allocations: 1.604 MB / 0.6231 GB, free: 15.02 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003357/0.533, allocations: 2.352 MB / 0.6254 GB, free: 12.33 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/0.533, allocations: 8 kB / 0.6254 GB, free: 12.32 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008938/0.5419, allocations: 3.315 MB / 0.6287 GB, free: 8.98 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/0.5419, allocations: 16 kB / 0.6287 GB, free: 8.965 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.093e-05/0.542, allocations: 24 kB / 0.6287 GB, free: 8.941 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005364/0.5473, allocations: 1.038 MB / 0.6297 GB, free: 7.887 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001535/0.5489, allocations: 431.3 kB / 0.6301 GB, free: 7.465 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/0.5597, allocations: 7.057 MB / 0.637 GB, free: 72 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/0.5614, allocations: 87.89 kB / 0.6371 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002307/0.5616, allocations: 119.9 kB / 0.6372 GB, free: 15.87 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.0007893/0.5624, allocations: 405.1 kB / 0.6376 GB, free: 15.46 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000348/0.5627, allocations: 151.1 kB / 0.6377 GB, free: 15.31 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007355/0.5701, allocations: 2.178 MB / 0.6399 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.5701, allocations: 12 kB / 0.6399 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.5701, allocations: 0 / 0.6399 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.5701, allocations: 7.984 kB / 0.6399 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/0.5802, allocations: 3.508 MB / 0.6433 GB, free: 9.516 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.5803, allocations: 160 / 0.6433 GB, free: 9.516 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008103/0.5811, allocations: 175.8 kB / 0.6435 GB, free: 9.344 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004866/0.5859, allocations: 0.9325 MB / 0.6444 GB, free: 8.395 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.586, allocations: 39.97 kB / 0.6444 GB, free: 8.355 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009007/0.5951, allocations: 6.346 MB / 0.6506 GB, free: 1.684 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.5951, allocations: 3.938 kB / 0.6506 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007979/0.603, allocations: 2.883 MB / 0.6535 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003512/0.6034, allocations: 135.1 kB / 0.6536 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002115/0.6036, allocations: 28 kB / 0.6536 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009236/0.6045, allocations: 31.98 kB / 0.6536 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002969/0.6048, allocations: 116.7 kB / 0.6538 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.6049, allocations: 55.97 kB / 0.6538 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001528/0.6065, allocations: 1.244 MB / 0.655 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.6065, allocations: 0 / 0.655 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003136/0.6096, allocations: 0.9703 MB / 0.656 GB, free: 12.16 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.001954/0.6116, allocations: 1.025 MB / 0.657 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004788/0.6164, allocations: 2.355 MB / 0.6593 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.6164, allocations: 0 / 0.6593 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002179/0.6185, allocations: 1.107 MB / 0.6603 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.6198, allocations: 228 kB / 0.6606 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005766/0.6256, allocations: 3.221 MB / 0.6637 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008382/0.6265, allocations: 0.7331 MB / 0.6644 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001037/0.6275, allocations: 318.7 kB / 0.6647 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004245/0.6279, allocations: 183.3 kB / 0.6649 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of SimCode: time 6.41e-07/0.6279, allocations: 0 / 0.6649 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of Templates: time 0.06122/0.6891, allocations: 38.83 MB / 0.7028 GB, free: 12.15 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 -s gbode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.ClimateChange.MethanElectrosynthesis.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.547280676008086] Failed to read output from testmodel.py, exit status != 0: 0.6980373179976596 0.7235631840000001 0.273928832 Calling exit ...