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.001908/0.001908, 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.002291/0.002291, 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.483/1.483, allocations: 230.6 MB / 252.8 MB, free: 8.926 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.1394/0.1394, allocations: 23.85 MB / 332.7 MB, free: 12.33 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.002077/0.002077, allocations: 63.89 kB / 466.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3022, allocations: 59.81 MB / 0.514 GB, free: 9.133 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.04121/0.3434, allocations: 30 MB / 0.5433 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02967/0.3731, allocations: 22.14 MB / 0.5649 GB, free: 6.477 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001643/0.3747, allocations: 31.75 kB / 0.5649 GB, free: 6.445 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001838/0.3766, allocations: 0.5799 MB / 0.5655 GB, free: 5.992 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004344/0.3809, allocations: 1.354 MB / 0.5668 GB, free: 4.844 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009173/0.3901, allocations: 3.302 MB / 0.57 GB, free: 1.785 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003935/0.394, allocations: 2.403 MB / 0.5724 GB, free: 15.37 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001757/0.3958, allocations: 1.301 MB / 0.5736 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.3971, allocations: 1.056 MB / 0.5747 GB, free: 12.96 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001694/0.3988, allocations: 1.23 MB / 0.5759 GB, free: 11.73 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003594/0.3992, allocations: 232 kB / 0.5761 GB, free: 11.5 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006956/0.4061, allocations: 2.367 MB / 0.5784 GB, free: 9.129 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006083/0.4067, allocations: 0.5413 MB / 0.5789 GB, free: 8.586 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001296/0.408, allocations: 1.136 MB / 0.58 GB, free: 7.445 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01032/0.4183, allocations: 5.023 MB / 0.5849 GB, free: 2.402 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.4183, allocations: 0 / 0.5849 GB, free: 2.402 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4183, allocations: 0 / 0.5849 GB, free: 2.402 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.756e-05/0.4184, allocations: 4 kB / 0.5849 GB, free: 2.398 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.00536/0.4237, allocations: 2.745 MB / 0.5876 GB, free: 15.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.4238, allocations: 8.031 kB / 0.5876 GB, free: 15.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002039/0.4258, allocations: 0.5066 MB / 0.5881 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.4279, allocations: 1.205 MB / 0.5893 GB, free: 13.83 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/0.4281, allocations: 203.5 kB / 0.5895 GB, free: 13.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003174/0.4284, allocations: 188 kB / 0.5897 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004377/0.4328, allocations: 2.655 MB / 0.5923 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.032e-05/0.4328, allocations: 7.938 kB / 0.5923 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001979/0.433, allocations: 76 kB / 0.5924 GB, free: 10.63 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.521e-05/0.4331, allocations: 48 kB / 0.5924 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005235/0.4383, allocations: 3.291 MB / 0.5956 GB, free: 7.289 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.01358/0.4519, allocations: 8.524 MB / 0.6039 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002157/0.4541, allocations: 1.279 MB / 0.6052 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.4551, allocations: 0.595 MB / 0.6058 GB, free: 12.54 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/0.4665, allocations: 5.587 MB / 0.6112 GB, free: 6.426 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.345e-05/0.4666, allocations: 47.16 kB / 0.6113 GB, free: 6.371 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009489/0.4675, allocations: 198.8 kB / 0.6115 GB, free: 6.176 MB / 462.1 MB Notification: Performance of pre-optimization done (n=81): time 3.015e-06/0.4675, allocations: 0 / 0.6115 GB, free: 6.176 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.03011/0.4976, allocations: 7.225 MB / 0.6185 GB, free: 14.82 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.879e-05/0.4977, allocations: 115.8 kB / 0.6186 GB, free: 14.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002502/0.5002, allocations: 1.857 MB / 0.6204 GB, free: 12.81 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001803/0.5004, allocations: 45.7 kB / 0.6205 GB, free: 12.76 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008141/0.5012, allocations: 1.041 MB / 0.6215 GB, free: 11.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004618/0.5017, allocations: 440.4 kB / 0.6219 GB, free: 11.27 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006903/0.5024, allocations: 415.3 kB / 0.6223 GB, free: 10.86 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.5025, allocations: 305.1 kB / 0.6226 GB, free: 10.55 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001511/0.504, allocations: 0.8512 MB / 0.6234 GB, free: 9.699 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002167/0.5062, allocations: 1.585 MB / 0.625 GB, free: 7.766 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003468/0.5096, allocations: 2.344 MB / 0.6273 GB, free: 5.086 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.469e-05/0.5096, allocations: 11.94 kB / 0.6273 GB, free: 5.074 MB / 478.1 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008898/0.5185, allocations: 3.288 MB / 0.6305 GB, free: 1.762 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/0.5186, allocations: 16 kB / 0.6305 GB, free: 1.746 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/0.5186, allocations: 24 kB / 0.6305 GB, free: 1.723 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005087/0.5237, allocations: 1.045 MB / 0.6316 GB, free: 0.6641 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/0.5253, allocations: 431.3 kB / 0.632 GB, free: 248 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/0.5365, allocations: 7.469 MB / 0.6393 GB, free: 8.332 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/0.5383, allocations: 99.91 kB / 0.6394 GB, free: 8.234 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003043/0.5386, allocations: 116 kB / 0.6395 GB, free: 8.121 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.000814/0.5395, allocations: 416.9 kB / 0.6399 GB, free: 7.703 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004062/0.5399, allocations: 151 kB / 0.64 GB, free: 7.555 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007282/0.5471, allocations: 2.183 MB / 0.6421 GB, free: 5.344 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/0.5472, allocations: 16 kB / 0.6422 GB, free: 5.328 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.5472, allocations: 0 / 0.6422 GB, free: 5.328 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-05/0.5472, allocations: 7.984 kB / 0.6422 GB, free: 5.32 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.5577, allocations: 3.928 MB / 0.646 GB, free: 1.293 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.5577, allocations: 3.984 kB / 0.646 GB, free: 1.289 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008111/0.5585, allocations: 175.7 kB / 0.6462 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004628/0.5631, allocations: 0.9236 MB / 0.6471 GB, free: 184 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001462/0.5633, allocations: 47.97 kB / 0.6471 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009481/0.5727, allocations: 6.762 MB / 0.6537 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/0.5728, allocations: 12.02 kB / 0.6537 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008171/0.5809, allocations: 2.903 MB / 0.6566 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004523/0.5814, allocations: 212.4 kB / 0.6568 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002196/0.5816, allocations: 24 kB / 0.6568 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009053/0.5825, allocations: 31.98 kB / 0.6568 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003449/0.5829, allocations: 124.6 kB / 0.6569 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.583, allocations: 47.97 kB / 0.657 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00169/0.5847, allocations: 1.306 MB / 0.6583 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.5847, allocations: 0 / 0.6583 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003132/0.5878, allocations: 0.978 MB / 0.6592 GB, free: 3.227 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.002024/0.5898, allocations: 1.008 MB / 0.6602 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005182/0.595, allocations: 2.418 MB / 0.6626 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.595, allocations: 4 kB / 0.6626 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002409/0.5974, allocations: 1.167 MB / 0.6637 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001565/0.599, allocations: 229.1 kB / 0.6639 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006698/0.6057, allocations: 3.239 MB / 0.6671 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.6069, allocations: 1.306 MB / 0.6684 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00128/0.6081, allocations: 339.1 kB / 0.6687 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004549/0.6086, allocations: 179.3 kB / 0.6689 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of SimCode: time 6.71e-07/0.6086, allocations: 0 / 0.6689 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of Templates: time 0.06485/0.6734, allocations: 37.2 MB / 0.7052 GB, free: 4.008 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.382807247340679] Failed to read output from testmodel.py, exit status != 0: 0.681744173169136 0.695544653 0.274169003 Calling exit ...